Microsoft.Subscription aliases

Bicep resource definition

The aliases resource type is an extension resource, which means you can apply it to another resource.

Use the scope property on this resource to set the scope for this resource. See Set scope on extension resources in Bicep.

Valid deployment scopes for the aliases resource are:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Subscription/aliases resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Subscription/aliases@2021-10-01' = {
  name: 'string'
  scope: tenant()
  properties: {
    additionalProperties: {
      managementGroupId: 'string'
      subscriptionOwnerId: 'string'
      subscriptionTenantId: 'string'
      tags: {}
    }
    billingScope: 'string'
    displayName: 'string'
    resellerId: 'string'
    subscriptionId: 'string'
    workload: 'string'
  }
}

Property values

aliases

Name Description Value
name The resource name string (required)
scope Use when creating an extension resource at a scope that is different than the deployment scope. For Bicep: tenant().
properties Put alias request properties. PutAliasRequestPropertiesOrSubscriptionAliasResponse...

PutAliasRequestPropertiesOrSubscriptionAliasResponseProperties

Name Description Value
additionalProperties Put alias request additional properties. PutAliasRequestAdditionalProperties
billingScope Billing scope of the subscription.
For CustomerLed and FieldLed - /billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}
For PartnerLed - /billingAccounts/{billingAccountName}/customers/{customerName}
For Legacy EA - /billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}
string
displayName The friendly name of the subscription. string
resellerId Reseller Id string
subscriptionId This parameter can be used to create alias for existing subscription Id string
workload The workload type of the subscription. It can be either Production or DevTest. 'DevTest'
'Production'

PutAliasRequestAdditionalProperties

Name Description Value
managementGroupId Management group Id for the subscription. string
subscriptionOwnerId Owner Id of the subscription string
subscriptionTenantId Tenant Id of the subscription string
tags Tags for the subscription object

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Create a subscription under an EA account

Deploy to Azure
This template is a management group template that will create a subscription via an alias. It can be used for an Enterprise Agreement billing mode only. The official documentation shows modifications needed for other types of accounts.
Create a subscription, resourceGroup and storageAccount

Deploy to Azure
This template is a management group template that will create a subscription, a resourceGroup and a storageAccount in the same template. It can be used for an Enterprise Agreement billing mode only. The official documentation shows modifications needed for other types of accounts.

ARM template resource definition

The aliases resource type is an extension resource, which means you can apply it to another resource.

Use the scope property on this resource to set the scope for this resource. See Set scope on extension resources in ARM templates.

Valid deployment scopes for the aliases resource are:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Subscription/aliases resource, add the following JSON to your template.

{
  "type": "Microsoft.Subscription/aliases",
  "apiVersion": "2021-10-01",
  "name": "string",
  "scope": "/",
  "properties": {
    "additionalProperties": {
      "managementGroupId": "string",
      "subscriptionOwnerId": "string",
      "subscriptionTenantId": "string",
      "tags": {}
    },
    "billingScope": "string",
    "displayName": "string",
    "resellerId": "string",
    "subscriptionId": "string",
    "workload": "string"
  }
}

Property values

aliases

Name Description Value
type The resource type 'Microsoft.Subscription/aliases'
apiVersion The resource api version '2021-10-01'
name The resource name string (required)
scope Use when creating an extension resource at a scope that is different than the deployment scope. For JSON: /.
properties Put alias request properties. PutAliasRequestPropertiesOrSubscriptionAliasResponse...

PutAliasRequestPropertiesOrSubscriptionAliasResponseProperties

Name Description Value
additionalProperties Put alias request additional properties. PutAliasRequestAdditionalProperties
billingScope Billing scope of the subscription.
For CustomerLed and FieldLed - /billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}
For PartnerLed - /billingAccounts/{billingAccountName}/customers/{customerName}
For Legacy EA - /billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}
string
displayName The friendly name of the subscription. string
resellerId Reseller Id string
subscriptionId This parameter can be used to create alias for existing subscription Id string
workload The workload type of the subscription. It can be either Production or DevTest. 'DevTest'
'Production'

PutAliasRequestAdditionalProperties

Name Description Value
managementGroupId Management group Id for the subscription. string
subscriptionOwnerId Owner Id of the subscription string
subscriptionTenantId Tenant Id of the subscription string
tags Tags for the subscription object

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Create a subscription under an EA account

Deploy to Azure
This template is a management group template that will create a subscription via an alias. It can be used for an Enterprise Agreement billing mode only. The official documentation shows modifications needed for other types of accounts.
Create a subscription, resourceGroup and storageAccount

Deploy to Azure
This template is a management group template that will create a subscription, a resourceGroup and a storageAccount in the same template. It can be used for an Enterprise Agreement billing mode only. The official documentation shows modifications needed for other types of accounts.

Terraform (AzAPI provider) resource definition

The aliases resource type is an extension resource, which means you can apply it to another resource.

Use the parent_id property on this resource to set the scope for this resource.

Valid deployment scopes for the aliases resource are:

  • Tenants

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Subscription/aliases resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Subscription/aliases@2021-10-01"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      additionalProperties = {
        managementGroupId = "string"
        subscriptionOwnerId = "string"
        subscriptionTenantId = "string"
        tags = {}
      }
      billingScope = "string"
      displayName = "string"
      resellerId = "string"
      subscriptionId = "string"
      workload = "string"
    }
  })
}

Property values

aliases

Name Description Value
type The resource type "Microsoft.Subscription/aliases@2021-10-01"
name The resource name string (required)
parent_id The ID of the resource to apply this extension resource to. string (required)
properties Put alias request properties. PutAliasRequestPropertiesOrSubscriptionAliasResponse...

PutAliasRequestPropertiesOrSubscriptionAliasResponseProperties

Name Description Value
additionalProperties Put alias request additional properties. PutAliasRequestAdditionalProperties
billingScope Billing scope of the subscription.
For CustomerLed and FieldLed - /billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}
For PartnerLed - /billingAccounts/{billingAccountName}/customers/{customerName}
For Legacy EA - /billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}
string
displayName The friendly name of the subscription. string
resellerId Reseller Id string
subscriptionId This parameter can be used to create alias for existing subscription Id string
workload The workload type of the subscription. It can be either Production or DevTest. "DevTest"
"Production"

PutAliasRequestAdditionalProperties

Name Description Value
managementGroupId Management group Id for the subscription. string
subscriptionOwnerId Owner Id of the subscription string
subscriptionTenantId Tenant Id of the subscription string
tags Tags for the subscription object