Azure Resource Manager Flashcards
ARM Templates: $schema element
Required!
Location of the JSON schema file that describes the version of the template language
ARM Templates: contentVersion element
Required.
Version of the template (e.g., 1.0.0.0),
ARM Templates: parameters element
Not required
Values that are provided when deployment is executed to customize resource deployment
"parameters": { "" : { "type" : "", "defaultValue": "", "allowedValues": [ "" ], "minValue": , "maxValue": , "minLength": , "maxLength": , "metadata": { "description": "" } } }
e.g. (parameters for a VMS password and username) "parameters": { "adminUsername": { "type": "string", "metadata": { "description": "Username for the Virtual Machine." } }, "adminPassword": { "type": "securestring", "metadata": { "description": "Password for the Virtual Machine." } } }
ARM Templates: variables (element)
Not Required.
Values that are used as JSON fragments in the template to simplify template language expressions
ARM Templates: functions (element)
Not required.
User-defined functions that are available within the template
ARM Templates: resources (element)
Required
Resource types that are deployed or updated in a resource group
ARM Templates: outputs (element)
Not Required,
Values that are returned after deployment.
Using parameters (defined in the parameters element) in the resources element
parameters(‘param_name’)
"resources": [ { ... "sku": { "name": "[parameters('storageAccountType')]" }, ... } ]
Outputs element example.
"outputs": { "": { "condition": "", "type": "", "value": "", "copy": { "count": , "input": } } }
"outputs": { "storageEndpoint": { "type": "object", "value": "[reference('learntemplatestorage123').primaryEndpoints]" } }