You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Programmatically create Azure Enterprise Agreement subscriptions with the latest APIs
15
15
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).
17
17
18
18
In this article, you learn how to create subscriptions programmatically using Azure Resource Manager.
19
19
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/).
@@ -101,7 +101,7 @@ The values for a billing scope and `id` are the same thing. The `id` for your en
101
101
102
102
### [PowerShell](#tab/azure-powershell)
103
103
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.
105
105
106
106
### [Azure CLI](#tab/azure-cli)
107
107
@@ -111,7 +111,7 @@ Request to list all enrollment accounts you have access to:
111
111
> az billing account list
112
112
```
113
113
114
-
Response lists all enrollment accounts you have access to
114
+
Response lists all enrollment accounts you have access to:
115
115
116
116
```json
117
117
[
@@ -170,7 +170,7 @@ The values for a billing scope and `id` are the same thing. The `id` for your en
170
170
171
171
The following example creates a subscription named *Dev Team Subscription* in the enrollment account selected in the previous step.
172
172
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:
174
174
175
175
- Use alphanumeric characters and hyphens
176
176
- 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
242
242
243
243
### [PowerShell](#tab/azure-powershell)
244
244
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).
246
246
247
247
Run the following [New-AzSubscriptionAlias](/powershell/module/az.subscription/get-azsubscriptionalias) command, using the billing scope `"/providers/Microsoft.Billing/BillingAccounts/1234567/enrollmentAccounts/7654321"`.
248
248
@@ -290,9 +290,9 @@ You get the subscriptionId as part of the response from the command.
290
290
291
291
---
292
292
293
-
## Create subscriptions in a different enrollment
293
+
## Create subscriptions in a different tenant
294
294
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.
296
296
297
297
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).
## Limitations of Azure Enterprise subscription creation API
469
469
470
470
- 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.
473
473
474
474
## Next steps
475
475
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).
477
477
* 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).
478
478
* To change the management group for a subscription, see [Move subscriptions](../../governance/management-groups/manage.md#move-subscriptions).
479
479
* For advanced subscription creation scenarios using REST API, see [Alias - Create](/rest/api/subscription/2021-10-01/alias/create).
0 commit comments