ARM Templates
Syntax or Structure of ARM Templates
- Refer Here for official docs from Microsoft
- Structure is
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "",
"apiProfile": "",
"parameters": { },
"variables": { },
"functions": [ ],
"resources": [ ],
"outputs": { }
}
- variables section will define calculated fields in template.
- parameters section will define user inputs to template
- Resources section will be used to define the resources in azure you want to create.
- schema section defines kind of deployment. For every deployment we have a fixed value
- contentVersion is the version of your template. Its user defined value
- Required sections are
- $schema
- contentVersion
- resources
ARM Template for Storage Account Creation
mkdir hello-arm
new-item main.json
- Open VSCode and Install Extension for ARM Template as shown below

- Lets try to build basic skeleton for ARM Template with Resource Group Deployment for
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion" : "0.0.1",
"resources": []
}
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "0.0.0.1",
"resources": [
{
"name": "qtstoragearmdemo",
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2019-04-01",
"sku":{
"name": "Standard_LRS"
},
"kind":"StorageV2",
"location":"Central US",
"properties":{
"accessTier":"Hot"
}
}
]
}
- Lets Deploy this template as mentioned in the docs over here
Like this:
Like Loading...