Microsoft.Subscription aliases

The aliases resource type can be deployed to: Tenants.

To learn about tenant deployments, see Bicep or ARM template

Template format

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

resource symbolicname 'Microsoft.Subscription/aliases@2020-09-01' = {
  name: 'string'
  scope: 'string'
  properties: {
    billingScope: 'string'
    displayName: 'string'
    resellerId: 'string'
    subscriptionId: 'string'
    workload: 'string'
  }
}

Property values

aliases

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.Subscription/aliases'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2020-09-01'
name The resource name string (required)
scope Use when creating the resource at a scope that is different than the deployment scope.

For Bicep, set this property to a valid scope object. See Set scope for extension resources in Bicep.

For JSON, see Setting scope on extension resources.
string
properties Put subscription creation result properties. PutAliasRequestProperties (required)

PutAliasRequestProperties

Name Description Value
billingScope string
displayName string
resellerId string
subscriptionId Newly created subscription Id. string
workload 'DevTest'
'Production'

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.