Azure Resource Manager templates also help in defining tags for each resource. They can be used to assign multiple tags to each resource, as follows:
{ "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "resources": [ { "apiVersion": "2016-01-01", "type": "Microsoft.Storage/storageAccounts", "name": "[concat('storage', uniqueString(resourceGroup().id))]", "location": "[resourceGroup().location]", "tags": { "Dept": "Finance", "Environment": "Production" }, "sku": { "name": "Standard_LRS" }, "kind": "Storage", "properties": { } } ] }
In the previous example, a couple of tags, Dept and Environment, are added to a Storage account resource using Azure Resource Manager templates.