Skip to content

Commit 0fb4e63

Browse files
Merge pull request #273445 from bandersmsft/programatically-create-mca-sub
MCM - Update programatically-create-mca-sub for Rahul Singh
2 parents 77765f4 + b11a267 commit 0fb4e63

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

articles/cost-management-billing/manage/programmatically-create-subscription-microsoft-customer-agreement.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.custom: devx-track-azurepowershell, devx-track-azurecli, devx-track-arm-templ
1313

1414
# Programmatically create Azure subscriptions for a Microsoft Customer Agreement with the latest APIs
1515

16-
This article helps you programmatically create Azure subscriptions for a Microsoft Customer Agreement using the most recent API versions. If you are still using the older preview version, see [Programmatically create Azure subscriptions with legacy APIs](programmatically-create-subscription-preview.md).
16+
This article helps you programmatically create Azure subscriptions for a Microsoft Customer Agreement using the most recent API versions. If you're still using the older preview version, see [Programmatically create Azure subscriptions with legacy APIs](programmatically-create-subscription-preview.md).
1717

1818
In this article, you learn how to create subscriptions programmatically using Azure Resource Manager.
1919

@@ -77,7 +77,7 @@ Use the `displayName` property to identify the billing account for which you wan
7777
```azurepowershell
7878
Get-AzBillingAccount
7979
```
80-
You will get back a list of all billing accounts that you have access to
80+
You'll get back a list of all billing accounts that you have access to
8181

8282
```json
8383
Name : 5e98e158-xxxx-xxxx-xxxx-xxxxxxxxxxxx:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx_xxxx-xx-xx
@@ -95,7 +95,7 @@ Use the `displayName` property to identify the billing account for which you wan
9595
```azurecli
9696
az billing account list
9797
```
98-
You will get back a list of all billing accounts that you have access to
98+
You'll get back a list of all billing accounts that you have access to.
9999

100100
```json
101101
[
@@ -120,7 +120,7 @@ You will get back a list of all billing accounts that you have access to
120120
]
121121
```
122122

123-
Use the `displayName` property to identify the billing account for which you want to create subscriptions. Ensure, the agreementType of the account is *MicrosoftCustomerAgreement*. Copy the `name` of the account. For example, to create a subscription for the `Contoso` billing account, copy `5e98e158-xxxx-xxxx-xxxx-xxxxxxxxxxxx:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx_xxxx-xx-xx`. Paste the value somewhere so that you can use it in the next step.
123+
Use the `displayName` property to identify the billing account for which you want to create subscriptions. Ensure, the agreementType of the account is *MicrosoftCustomerAgreement*. Copy the `name` of the account. For example, to create a subscription for the `Contoso` billing account, copy `5e98e158-xxxx-xxxx-xxxx-xxxxxxxxxxxx:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx_xxxx-xx-xx`. Paste the value somewhere so that you can use it in the next step.
124124

125125
---
126126

@@ -218,7 +218,7 @@ Use the `id` property to identify the invoice section for which you want to crea
218218
Get-AzBillingProfile -BillingAccountName 5e98e158-xxxx-xxxx-xxxx-xxxxxxxxxxxx:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx_xxxx-xx-xx
219219
```
220220

221-
You will get the list of billing profiles under this account as part of the response.
221+
You'll get the list of billing profiles under this account as part of the response.
222222

223223
```json
224224
Name : AW4F-xxxx-xxx-xxx
@@ -240,28 +240,28 @@ Country : US
240240
PostalCode : 98052
241241
```
242242

243-
Note the `name` of the billing profile from the above response. The next step is to get the invoice section that you have access to underneath this billing profile. You will need the `name` of the billing account and billing profile
243+
Note the `name` of the billing profile from the above response. The next step is to get the invoice section that you have access to underneath this billing profile. You'll need the `name` of the billing account and billing profile.
244244

245245
```azurepowershell
246246
Get-AzInvoiceSection -BillingAccountName 5e98e158-xxxx-xxxx-xxxx-xxxxxxxxxxxx:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx_xxxx-xx-xx -BillingProfileName AW4F-xxxx-xxx-xxx
247247
```
248248

249-
You will get the invoice section returned
249+
You'll get the invoice section returned.
250250

251251
```json
252252
Name : SH3V-xxxx-xxx-xxx
253253
DisplayName : Development
254254
```
255255

256-
The `name` above is the Invoice section name you need to create a subscription under. Construct your billing scope using the format `/providers/Microsoft.Billing/billingAccounts/<BillingAccountName>/billingProfiles/<BillingProfileName>/invoiceSections/<InvoiceSectionName>`. In this example, this value will equate to `"/providers/Microsoft.Billing/billingAccounts/5e98e158-xxxx-xxxx-xxxx-xxxxxxxxxxxx:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx_xxxx-xx-xx/billingProfiles/AW4F-xxxx-xxx-xxx/invoiceSections/SH3V-xxxx-xxx-xxx"`.
256+
The `name` above is the Invoice section name you need to create a subscription under. Construct your billing scope using the format `/providers/Microsoft.Billing/billingAccounts/<BillingAccountName>/billingProfiles/<BillingProfileName>/invoiceSections/<InvoiceSectionName>`. In this example, this value equates to `"/providers/Microsoft.Billing/billingAccounts/5e98e158-xxxx-xxxx-xxxx-xxxxxxxxxxxx:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx_xxxx-xx-xx/billingProfiles/AW4F-xxxx-xxx-xxx/invoiceSections/SH3V-xxxx-xxx-xxx"`.
257257

258258
### [Azure CLI](#tab/azure-cli)
259259

260260
```azurecli
261261
az billing profile list --account-name "5e98e158-xxxx-xxxx-xxxx-xxxxxxxxxxxx:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx_xxxx-xx-xx" --expand "InvoiceSections"
262262
```
263263

264-
This API will return the list of billing profiles and invoice sections under the provided billing account.
264+
This API returns the list of billing profiles and invoice sections under the provided billing account.
265265

266266
```json
267267
[
@@ -336,7 +336,7 @@ The following example creates a subscription named *Dev Team subscription* for t
336336
### [REST](#tab/rest)
337337

338338
```json
339-
PUT https://management.azure.com/providers/Microsoft.Subscription/aliases/sampleAlias?api-version=2021-10-01
339+
PUT https://management.azure.com/providers/Microsoft.Subscription/aliases/{{guid}}?api-version=2021-10-01
340340
```
341341

342342
### Request body

0 commit comments

Comments
 (0)