Subscription Level Deployment Schema


Not so long ago in Azure we only had resource group level deployment but a couple of months ago subscription level deployments were implemented. On resource group level we deploy resources like Azure VMs, Service Apps, Azure SQL databases, etc and on subscription level we deploy policy definitions and assignments, resource groups (yes they are resource as well), custom RBAC roles, etc. Because of that it the schema in the ARM templates for resource group and subscription level deployments is different. This is something I haven’t thought about it around the excitement of this new deployment method but my good friend Kristian Nese tipped me. So here are the schemas you should use depending on your deployment:

  • Resource Group level deployment –
    https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#
    
  • Subscription level deployment –
    https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#
    

Keep in mind that if from subscription level deployment you have started nested or linked template deployment to resource group, the linked or nested template will have resource group level deployment schema.

I hope this tip will be helpful for you.

One thought on “Subscription Level Deployment Schema

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.