Complete the code to define the ARM template schema.
{
"$schema": "[1]",
"contentVersion": "1.0.0.0",
"resources": []
}The ARM template schema URL defines the structure and validation rules. The 2015-01-01 version is the base schema for ARM templates.
Complete the code to specify the ARM template content version.
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "[1]",
"resources": []
}The contentVersion is a string that represents the version of the template content. It usually follows a numeric format like 1.0.0.0.
Fix the error in the ARM template by completing the missing key for resources.
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"[1]": []
}The 'resources' key is required to define the Azure resources to deploy in the ARM template.
Fill both blanks to define parameters and variables sections in the ARM template.
{
"[1]": {
"location": {
"type": "string",
"defaultValue": "eastus"
}
},
"[2]": {
"storageAccountName": "mystorageaccount"
}
}'parameters' define inputs to the template, and 'variables' define reusable values inside the template.
Fill both blanks to define an output that returns the storage account name.
{
"outputs": {
"storageAccountNameOutput": {
"type": "string",
"value": "[[1]('[2]')]"
}
}
}The output uses the reference function to get the property value. The syntax is reference('resourceName').