Complete the code to define a parameter named 'location' in an ARM template.
"parameters": { "location": { "type": "[1]" } }
The 'location' parameter should be of type string because it represents a region name.
Complete the code to define a variable named 'storageAccountName' that concatenates 'storage' and a unique string.
"variables": { "storageAccountName": "concat('storage', [1])" }
The uniqueString(resourceGroup().id) function generates a unique string based on the resource group ID, ensuring the storage account name is unique.
Fix the error in the variable definition that tries to get the first element of a parameter array named 'vmSizes'.
"variables": { "firstVmSize": "[1](parameters('vmSizes'), 0)" }
The index() function is used in ARM templates to get an element at a specific position from an array.
Fill both blanks to define a parameter 'adminUsername' with a default value and a variable 'adminUser' that references it.
"parameters": { "adminUsername": { "type": "[1]", "defaultValue": "azureuser" } }, "variables": { "adminUser": "[2]('adminUsername')" }
The parameter type should be string. To reference a parameter inside variables, use the parameters() function.
Fill all three blanks to define a variable 'fullName' that combines 'firstName' and 'lastName' parameters with a space.
"variables": { "fullName": "concat([1]('firstName'), [2], [3]('lastName'))" }
Use the parameters() function to get both 'firstName' and 'lastName'. Insert a space string ' ' between them using concat().