storageAccountName with type string.location with type string.storageAccountKind with value StorageV2.storageAccountSku with value Standard_LRS.storageAccountName with type string.location with type string.storageAccountKind with value StorageV2.storageAccountSku with value Standard_LRS.parameters section in the ARM template JSON with two parameters: storageAccountName of type string and location of type string.Parameters let you pass values when deploying the template. Use the exact names storageAccountName and location with type string.
variables section with two variables: storageAccountKind set to StorageV2 and storageAccountSku set to Standard_LRS.Variables hold values you want to reuse inside the template. Use the exact variable names and values.
Microsoft.Storage/storageAccounts with name from parameters('storageAccountName'), location from parameters('location'), kind from variables('storageAccountKind'), and sku name from variables('storageAccountSku'). Use API version 2021-04-01.Use the parameters() and variables() functions to reference values inside the resource definition.
outputs section with an output named storageAccountId that returns the resource ID of the storage account using resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName')).Outputs let you get information from the deployed resources. Use the resourceId function with the exact syntax shown.
What is the main purpose of parameters in an ARM template?
Which of the following is the correct syntax to declare a variable named storageAccountName in an ARM template?
{
"variables": {
"storageAccountName": "myStorage"
}
}Given this ARM template snippet, what will be the value of variables('fullName')?
{
"parameters": {
"firstName": { "type": "string", "defaultValue": "John" },
"lastName": { "type": "string", "defaultValue": "Doe" }
},
"variables": {
"fullName": "[concat(parameters('firstName'), ' ', parameters('lastName'))]"
}
}Identify the error in this ARM template snippet:
{
"parameters": {
"location": { "type": "string" }
},
"variables": {
"region": "parameters('location')"
}
}You want to create an ARM template that deploys a storage account with a name based on a parameter prefix and a variable uniqueString. Which is the best way to combine them in the template?
{
"parameters": {
"prefix": { "type": "string" }
},
"variables": {
"uniqueString": "[uniqueString(resourceGroup().id)]"
},
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"name": "???",
"apiVersion": "2022-09-01",
"location": "[resourceGroup().location]"
}
]
}Choose the correct expression to use for the storage account name property.
Pass the test and this pattern moves unknown