Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 40 additions & 39 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 61 additions & 9 deletions sdk/consumption/arm-consumption/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,67 @@
# Release History

## 9.2.1 (Unreleased)

## 10.0.0 (2025-05-12)
### Features Added

### Breaking Changes

### Bugs Fixed
- Added operation LotsOperations.listByCustomer
- Added operation PriceSheet.beginDownloadByBillingAccountPeriod
- Added operation PriceSheet.beginDownloadByBillingAccountPeriodAndWait
- Added Interface LotsListByCustomerNextOptionalParams
- Added Interface LotsListByCustomerOptionalParams
- Added Interface ModernReservationRecommendationProperties
- Added Interface ModernSharedScopeReservationRecommendationProperties
- Added Interface ModernSingleScopeReservationRecommendationProperties
- Added Interface OperationStatus
- Added Interface PriceSheetDownloadByBillingAccountPeriodHeaders
- Added Interface PriceSheetDownloadByBillingAccountPeriodOptionalParams
- Added Interface SavingsPlan
- Added Type Alias LotsListByCustomerNextResponse
- Added Type Alias LotsListByCustomerResponse
- Added Type Alias ModernReservationRecommendationPropertiesUnion
- Added Type Alias OperationStatusType
- Added Type Alias OrganizationType
- Added Type Alias PriceSheetDownloadByBillingAccountPeriodResponse
- Interface Balance has a new optional parameter overageRefund
- Interface CreditSummary has a new optional parameter eTagPropertiesETag
- Interface CreditSummary has a new optional parameter isEstimatedBalance
- Interface EventSummary has a new optional parameter billingAccountDisplayName
- Interface EventSummary has a new optional parameter billingAccountId
- Interface EventSummary has a new optional parameter chargesInLotCurrency
- Interface EventSummary has a new optional parameter closedBalanceInLotCurrency
- Interface EventSummary has a new optional parameter isEstimatedBalance
- Interface LegacyChargeSummary has a new optional parameter azureMarketplaceCharges
- Interface LegacyReservationRecommendation has a new optional parameter lastUsageDate
- Interface LegacyReservationRecommendation has a new optional parameter totalHours
- Interface LegacyReservationRecommendationProperties has a new optional parameter lastUsageDate
- Interface LegacyReservationRecommendationProperties has a new optional parameter totalHours
- Interface LegacyUsageDetail has a new optional parameter benefitId
- Interface LegacyUsageDetail has a new optional parameter benefitName
- Interface LotSummary has a new optional parameter isEstimatedBalance
- Interface LotSummary has a new optional parameter organizationType
- Interface LotSummary has a new optional parameter usedAmount
- Interface ModernChargeSummary has a new optional parameter subscriptionId
- Interface ModernReservationRecommendation has a new optional parameter lastUsageDate
- Interface ModernReservationRecommendation has a new optional parameter resourceType
- Interface ModernReservationRecommendation has a new optional parameter totalHours
- Interface PriceSheetProperties has a new optional parameter savingsPlan
- Interface ReservationRecommendationDetailsGetOptionalParams has a new optional parameter filter
- Interface ReservationTransactionsListOptionalParams has a new optional parameter previewMarkupPercentage
- Interface ReservationTransactionsListOptionalParams has a new optional parameter useMarkupIfPartner
- Added Enum KnownOperationStatusType
- Added Enum KnownOrganizationType
- Enum KnownEventType has a new value CreditExpired
- Enum KnownTerm has a new value P1M

### Other Changes
### Breaking Changes

- Operation ReservationRecommendationDetails.get has a new signature
- Class ConsumptionManagementClient has a new signature
- Interface BudgetFilter no longer has parameter not
- Interface LegacyChargeSummary no longer has parameter marketplaceCharges
- Parameter scope of interface ModernReservationRecommendation is now required


## 9.2.0 (2023-01-03)

### Features Added
Expand Down Expand Up @@ -75,7 +127,7 @@

## 9.0.1 (2022-04-11)

### Features Added
**features**

- bug fix

Expand All @@ -87,4 +139,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka.

To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).

To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
2 changes: 1 addition & 1 deletion sdk/consumption/arm-consumption/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
8 changes: 2 additions & 6 deletions sdk/consumption/arm-consumption/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ npm install @azure/identity
```

You will also need to **register a new AAD application and grant access to Azure ConsumptionManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.

For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).

Expand All @@ -64,16 +63,14 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
import { InteractiveBrowserCredential } from "@azure/identity";
import { ConsumptionManagementClient } from "@azure/arm-consumption";

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const credential = new InteractiveBrowserCredential({
tenantId: "<YOUR_TENANT_ID>",
clientId: "<YOUR_CLIENT_ID>",
});
clientId: "<YOUR_CLIENT_ID>"
});
const client = new ConsumptionManagementClient(credential, subscriptionId);
```

### JavaScript Bundle

To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).

## Key concepts
Expand Down Expand Up @@ -109,7 +106,6 @@ If you'd like to contribute to this library, please read the [contributing guide
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)



[azure_cli]: https://learn.microsoft.com/cli/azure
[azure_sub]: https://azure.microsoft.com/free/
[azure_sub]: https://azure.microsoft.com/free/
Expand Down
10 changes: 5 additions & 5 deletions sdk/consumption/arm-consumption/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "d600759c3516b61a7c353bc8682bccbab85a6f65",
"readme": "specification\\consumption\\resource-manager\\readme.md",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\consumption\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.5.20221215.1 --generate-sample=true",
"commit": "b2a6fabe6eb292817a8bcfc4581b4f25e7161582",
"readme": "specification/consumption/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/consumption/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.5.4",
"use": "@autorest/typescript@6.0.0-rc.5.20221215.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.27",
"use": "@autorest/typescript@^6.0.12"
}
2 changes: 1 addition & 1 deletion sdk/consumption/arm-consumption/api-extractor.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
}
}
}
}
}
Loading