Skip to content

Commit f9ec5d9

Browse files
Merge pull request #272972 from bandersmsft/ghissue117868
MCM - Update programatically create ea sub for ghissue 117868
2 parents 5986f29 + 767a30f commit f9ec5d9

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ author: bandersmsft
55
ms.service: cost-management-billing
66
ms.subservice: billing
77
ms.topic: how-to
8-
ms.date: 02/16/2024
8+
ms.date: 04/22/2024
99
ms.reviewer: sapnakeshari
1010
ms.author: banders
1111
ms.custom: devx-track-azurepowershell, devx-track-azurecli, devx-track-arm-template, devx-track-bicep
1212
---
1313

1414
# Programmatically create Azure Enterprise Agreement subscriptions with the latest APIs
1515

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

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

20-
When you create an Azure subscription programmatically, that subscription is governed by the agreement under which you obtained Azure services from Microsoft or an authorized reseller. For more information, see [Microsoft Azure Legal Information](https://azure.microsoft.com/support/legal/).
20+
When you create an Azure subscription programmatically, it falls under the terms of the agreement where you receive Azure services from Microsoft or a certified seller. For more information, see [Microsoft Azure Legal Information](https://azure.microsoft.com/support/legal/).
2121

2222
[!INCLUDE [updated-for-az](../../../includes/updated-for-az.md)]
2323

@@ -101,7 +101,7 @@ The values for a billing scope and `id` are the same thing. The `id` for your en
101101

102102
### [PowerShell](#tab/azure-powershell)
103103

104-
Please use either Azure CLI or REST API to get this value.
104+
Use either Azure CLI or REST API to get this value.
105105

106106
### [Azure CLI](#tab/azure-cli)
107107

@@ -111,7 +111,7 @@ Request to list all enrollment accounts you have access to:
111111
> az billing account list
112112
```
113113

114-
Response lists all enrollment accounts you have access to
114+
Response lists all enrollment accounts you have access to:
115115

116116
```json
117117
[
@@ -170,7 +170,7 @@ The values for a billing scope and `id` are the same thing. The `id` for your en
170170

171171
The following example creates a subscription named *Dev Team Subscription* in the enrollment account selected in the previous step.
172172

173-
Using one of the following methods, you'll create a subscription alias name. We recommend that when you create the alias name, you:
173+
Using one of the following methods, you create a subscription alias name. We recommend that when you create the alias name, you:
174174

175175
- Use alphanumeric characters and hyphens
176176
- Start with a letter and end with an alphanumeric character
@@ -242,7 +242,7 @@ An in-progress status is returned as an `Accepted` state under `provisioningStat
242242

243243
### [PowerShell](#tab/azure-powershell)
244244

245-
To install the version of the module that contains the `New-AzSubscriptionAlias` cmdlet, in below example run `Install-Module Az.Subscription -RequiredVersion 0.9.0`. To install version 0.9.0 of PowerShellGet, see [Get PowerShellGet Module](/powershell/gallery/powershellget/install-powershellget).
245+
To install the version of the module that contains the `New-AzSubscriptionAlias` cmdlet, in the following example run `Install-Module Az.Subscription -RequiredVersion 0.9.0`. To install version 0.9.0 of PowerShellGet, see [Get PowerShellGet Module](/powershell/gallery/powershellget/install-powershellget).
246246

247247
Run the following [New-AzSubscriptionAlias](/powershell/module/az.subscription/get-azsubscriptionalias) command, using the billing scope `"/providers/Microsoft.Billing/BillingAccounts/1234567/enrollmentAccounts/7654321"`.
248248

@@ -290,9 +290,9 @@ You get the subscriptionId as part of the response from the command.
290290

291291
---
292292

293-
## Create subscriptions in a different enrollment
293+
## Create subscriptions in a different tenant
294294

295-
Using the subscription [Alias](/rest/api/subscription/2021-10-01/alias/create) REST API, you can use the `subscriptionTenantId` parameter in the request body. Your service principal must get the token from the home tenant to create the subscription. After you create the service principal, you get the token from `subscriptionTenantId` and accept the transfer using the [Accept Ownership](/rest/api/subscription/2021-10-01/subscription/accept-ownership) API.
295+
Using the subscription [Alias](/rest/api/subscription/2021-10-01/alias/create) REST API, you can create a subscription in a different tenant using the `subscriptionTenantId` parameter in the request body. Your Azure Service Principal (SPN) must get a token from its home tenant to create the subscription. After you create the subscription, you must get a token from the target tenant to accept the transfer using the [Accept Ownership](/rest/api/subscription/2021-10-01/subscription/accept-ownership) API.
296296

297297
For more information about creating EA subscriptions in another tenant, see [Create subscription in other tenant and view transfer requests](direct-ea-administration.md#create-subscription-in-other-tenant-and-view-transfer-requests).
298298

@@ -468,12 +468,12 @@ resource subToMG 'Microsoft.Management/managementGroups/subscriptions@2020-05-01
468468
## Limitations of Azure Enterprise subscription creation API
469469

470470
- Only Azure Enterprise subscriptions are created using the API.
471-
- There's a limit of 5000 subscriptions per enrollment account. After that, more subscriptions for the account can only be created in the Azure portal. To create more subscriptions through the API, create another enrollment account. Canceled, deleted, and transferred subscriptions count toward the 5000 limit.
472-
- Users who aren't Account Owners, but were added to an enrollment account via Azure RBAC, can't create subscriptions in the Azure portal.
471+
- There's a limit of 5,000 subscriptions per enrollment account. After that, more subscriptions for the account can only be created in the Azure portal. To create more subscriptions through the API, create another enrollment account. Canceled, deleted, and transferred subscriptions count toward the 5000 limit.
472+
- Users who aren't Account Owners, but were added to an enrollment account via Azure role-based access control, can't create subscriptions in the Azure portal.
473473

474474
## Next steps
475475

476-
* Now that you've created a subscription, you can grant that ability to other users and service principals. For more information, see [Grant access to create Azure Enterprise subscriptions (preview)](grant-access-to-create-subscription.md).
476+
* Now that you created a subscription, you can grant that ability to other users and service principals. For more information, see [Grant access to create Azure Enterprise subscriptions (preview)](grant-access-to-create-subscription.md).
477477
* For more information about managing large numbers of subscriptions using management groups, see [Organize your resources with Azure management groups](../../governance/management-groups/overview.md).
478478
* To change the management group for a subscription, see [Move subscriptions](../../governance/management-groups/manage.md#move-subscriptions).
479479
* For advanced subscription creation scenarios using REST API, see [Alias - Create](/rest/api/subscription/2021-10-01/alias/create).

0 commit comments

Comments
 (0)