Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@
# PRLabel: %Mgmt
/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/ @qiaozha @MaryGao @JialinHuang803

# PRLabel: %Mgmt
# PRLabel: %Mgmt %mgmt-review-needed
/sdk/billing/arm-billing/ @qiaozha @MaryGao @JialinHuang803

# PRLabel: %Mgmt
Expand Down
31 changes: 20 additions & 11 deletions pnpm-lock.yaml

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

114 changes: 103 additions & 11 deletions sdk/billing/arm-billing/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,113 @@
# Release History

## 5.0.2 (Unreleased)
## 6.0.0-beta.1 (2026-05-21)
Compared with version 5.0.0

### Features Added
- Added operation AssociatedTenantsOperations.createOrUpdate
- Added operation AssociatedTenantsOperations.delete
- Added operation BillingAccountsOperations.addPaymentTerms
- Added operation BillingAccountsOperations.cancelPaymentTerms
- Added operation BillingAccountsOperations.update
- Added operation BillingProfilesOperations.createOrUpdate
- Added operation BillingProfilesOperations.delete
- Added operation BillingRequestsOperations.createOrUpdate
- Added operation BillingRoleAssignmentsOperations.createByBillingAccount
- Added operation BillingRoleAssignmentsOperations.createByBillingProfile
- Added operation BillingRoleAssignmentsOperations.createByCustomer
- Added operation BillingRoleAssignmentsOperations.createByInvoiceSection
- Added operation BillingRoleAssignmentsOperations.createOrUpdateByBillingAccount
- Added operation BillingRoleAssignmentsOperations.createOrUpdateByDepartment
- Added operation BillingRoleAssignmentsOperations.createOrUpdateByEnrollmentAccount
- Added operation BillingRoleAssignmentsOperations.resolveByBillingAccount
- Added operation BillingRoleAssignmentsOperations.resolveByBillingProfile
- Added operation BillingRoleAssignmentsOperations.resolveByCustomer
- Added operation BillingRoleAssignmentsOperations.resolveByInvoiceSection
- Added operation BillingSubscriptionsOperations.cancel
- Added operation BillingSubscriptionsOperations.delete
- Added operation BillingSubscriptionsOperations.merge
- Added operation BillingSubscriptionsOperations.move
- Added operation BillingSubscriptionsOperations.split
- Added operation BillingSubscriptionsOperations.update
- Added operation BillingSubscriptionsAliasesOperations.createOrUpdate
- Added operation InvoicesOperations.amend
- Added operation InvoicesOperations.downloadByBillingAccount
- Added operation InvoicesOperations.downloadByBillingSubscription
- Added operation InvoicesOperations.downloadDocumentsByBillingAccount
- Added operation InvoicesOperations.downloadDocumentsByBillingSubscription
- Added operation InvoicesOperations.downloadSummaryByBillingAccount
- Added operation InvoiceSectionsOperations.createOrUpdate
- Added operation InvoiceSectionsOperations.delete
- Added operation PoliciesOperations.createOrUpdateByBillingAccount
- Added operation PoliciesOperations.createOrUpdateByBillingProfile
- Added operation PoliciesOperations.createOrUpdateByCustomer
- Added operation PoliciesOperations.createOrUpdateByCustomerAtBillingAccount
- Added operation ProductsOperations.move
- Added operation ReservationsOperations.updateByBillingAccount
- Added operation SavingsPlansOperations.updateByBillingAccount
- Added operation TransactionsOperations.transactionsDownloadByInvoice
- Added Interface AcceptTransferProperties
- Added Interface EnrollmentAccountSubscriptionDetails
- Added Interface ExtendedStatusInfoProperties
- Added Interface InitiateTransferProperties
- Added Interface PagedAsyncIterableIterator
- Added Interface PageSettings
- Added Interface PartnerInitiateTransferProperties
- Added Interface PartnerTransferProperties
- Added Interface PatchProperties
- Added Interface PatchPropertiesRenewProperties
- Added Interface PaymentMethodLinkProperties
- Added Interface PurchaseRequestProperties
- Added Interface RecipientTransferProperties
- Added Interface ReservationOrderProperty
- Added Interface ReservationProperty
- Added Interface ReservationPropertyUtilization
- Added Interface ReservationPurchaseRequestProperties
- Added Interface ReservationPurchaseRequestPropertiesReservedResourceProperties
- Added Interface RestorePollerOptions
- Added Interface SavingsPlanModelProperties
- Added Interface SavingsPlanOrderModelProperties
- Added Interface SimplePollerLike
- Added Interface TransferProperties
- Added Interface ValidateTransferResponseProperties
- Interface BillingSubscription has a new optional parameter enrollmentAccountSubscriptionDetails
- Interface BillingSubscriptionAlias has a new optional parameter enrollmentAccountSubscriptionDetails
- Interface BillingSubscriptionPatch has a new optional parameter enrollmentAccountSubscriptionDetails
- Interface Patch has a new optional parameter renewProperties
- Interface Reservation has a new optional parameter utilization
- Interface ReservationPurchaseRequest has a new optional parameter instanceFlexibility
- Interface ReservationPurchaseRequest has a new optional parameter reservedResourceProperties
- Added Type Alias AzureSupportedClouds
- Added Enum AzureClouds
- Added Enum KnownVersions

### Breaking Changes
- Operation AssociatedTenants.beginDeleteAndWait has a new signature
- Operation BillingProfiles.beginDeleteAndWait has a new signature
- Operation BillingSubscriptions.beginCancelAndWait has a new signature
- Operation BillingSubscriptions.beginDeleteAndWait has a new signature
- Operation Invoices.beginAmendAndWait has a new signature
- Operation InvoiceSections.beginDeleteAndWait has a new signature
- Removed Interface ExternalReference
- Removed Interface ReservationList
- Removed Interface ReservationOrderList
- Removed Interface SavingsPlanModelList
- Removed Interface SavingsPlanOrderModelList
- Removed Interface TransferItemQueryParameter
- Interface BillingSubscription no longer has parameter enrollmentAccountStartDate
- Interface BillingSubscription no longer has parameter subscriptionEnrollmentAccountStatus
- Interface BillingSubscriptionAlias no longer has parameter enrollmentAccountStartDate
- Interface BillingSubscriptionAlias no longer has parameter subscriptionEnrollmentAccountStatus
- Interface BillingSubscriptionPatch no longer has parameter enrollmentAccountStartDate
- Interface BillingSubscriptionPatch no longer has parameter subscriptionEnrollmentAccountStatus
- Interface Patch no longer has parameter purchaseProperties
- Interface Reservation no longer has parameter aggregates
- Interface Reservation no longer has parameter trend
- Interface ReservationPurchaseRequest no longer has parameter instanceFlexibilityPropertiesInstanceFlexibility
- Interface ReservationPurchaseRequest no longer has parameter instanceFlexibilityPropertiesReservedResourcePropertiesInstanceFlexibility
- Parameter value of interface BillingRoleAssignmentListResult is now required

### Bugs Fixed

### Other Changes

## 5.0.1 (2025-08-22)

### Other Changes

- Other fixes


## 5.0.0 (2024-09-04)

### Features Added
Expand Down
2 changes: 1 addition & 1 deletion sdk/billing/arm-billing/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.
25 changes: 11 additions & 14 deletions sdk/billing/arm-billing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure BillingManagement client.

Billing Client
Documentation for Microsoft.Billing.

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/billing/arm-billing) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-billing) |
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-billing) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
Key links:

- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/billing/arm-billing)
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-billing)
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-billing?view=azure-node-preview)
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/billing/arm-billing/samples)

## Getting started

Expand Down Expand Up @@ -35,7 +37,7 @@ npm install @azure/arm-billing
To create a client object to access the Azure BillingManagement API, you will need the `endpoint` of your Azure BillingManagement resource and a `credential`. The Azure BillingManagement client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure BillingManagement resource in the [Azure Portal][azure_portal].

You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).

To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:

Expand All @@ -44,7 +46,6 @@ npm install @azure/identity
```

You will also need to **register a new AAD application and grant access to Azure BillingManagement** 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 +65,16 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
import { InteractiveBrowserCredential } from "@azure/identity";
import { BillingManagementClient } from "@azure/arm-billing";

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

### JavaScript Bundle

### 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 All @@ -98,7 +99,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur

## Next steps

Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/billing/arm-billing/samples) directory for detailed examples on how to use this library.

## Contributing

Expand All @@ -108,10 +109,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/
[azure_portal]: https://portal.azure.com
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
Expand Down
8 changes: 0 additions & 8 deletions sdk/billing/arm-billing/_meta.json

This file was deleted.

4 changes: 1 addition & 3 deletions sdk/billing/arm-billing/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
{
"extends": "../../../api-extractor-base.json"
}
{ "extends": "../../../api-extractor-base.json" }
2 changes: 1 addition & 1 deletion sdk/billing/arm-billing/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "js",
"TagPrefix": "js/billing/arm-billing",
"Tag": "js/billing/arm-billing_f0861b8724"
"Tag": "js/billing/arm-billing_7f03b626e1"
}
4 changes: 1 addition & 3 deletions sdk/billing/arm-billing/config/tsconfig.samples.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"extends": "../../../../eng/tsconfigs/samples.json",
"compilerOptions": {
"paths": {
"@azure/arm-billing": [
"../dist/esm"
]
"@azure/arm-billing": ["../dist/esm"]
}
}
}
4 changes: 1 addition & 3 deletions sdk/billing/arm-billing/config/tsconfig.src.browser.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"extends": "../../../../eng/tsconfigs/src.browser.json",
"include": [
"../src/index.ts"
]
"include": ["../src/index.ts"]
}
4 changes: 1 addition & 3 deletions sdk/billing/arm-billing/config/tsconfig.src.cjs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"extends": "../../../../eng/tsconfigs/src.cjs.json",
"include": [
"../src/index.ts"
]
"include": ["../src/index.ts"]
}
4 changes: 1 addition & 3 deletions sdk/billing/arm-billing/config/tsconfig.src.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"extends": "../../../../eng/tsconfigs/src.esm.json",
"include": [
"../src/index.ts"
]
"include": ["../src/index.ts"]
}
10 changes: 10 additions & 0 deletions sdk/billing/arm-billing/config/tsconfig.test.browser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../../../eng/tsconfigs/test.browser.json",
"compilerOptions": {
"paths": {
"@azure/arm-billing": ["../src/index.ts"],
"@azure/arm-billing/*": ["../src/*"],
"$internal/*": ["../src/*"]
}
}
}
9 changes: 8 additions & 1 deletion sdk/billing/arm-billing/config/tsconfig.test.node.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{
"extends": "../../../../eng/tsconfigs/test.node.json"
"extends": "../../../../eng/tsconfigs/test.node.json",
"compilerOptions": {
"paths": {
"@azure/arm-billing": ["../src/index.ts"],
"@azure/arm-billing/*": ["../src/*"],
"$internal/*": ["../src/*"]
}
}
}
Loading
Loading