In an ARM template, what is the main purpose of parameters?
Think about what you want to change each time you deploy the template.
Parameters allow you to pass different values when deploying the template, making it reusable and flexible.
Which option correctly defines a variable named storageAccountName that concatenates 'stor' with a parameter uniqueString?
Remember the correct syntax to reference parameters inside variables uses parameters('name') or parameters['name'].
Option C uses the correct syntax to access a parameter inside a variable definition in ARM templates.
You have a main ARM template that calls a nested template. Which statement is true about passing parameters and using variables in the nested template?
Think about how data flows between templates during deployment.
Parameters must be passed explicitly to nested templates. Variables are local and cannot be shared directly.
Which parameter type should you use in an ARM template to securely accept a password without exposing it in deployment logs?
Consider how ARM templates handle sensitive data.
The secureString type encrypts the value and prevents it from appearing in logs.
Given this ARM template snippet, what will be the value of the output finalName after deployment?
{
"parameters": {
"prefix": { "type": "string", "defaultValue": "app" }
},
"variables": {
"name": "[concat(parameters('prefix'), 'svc')]"
},
"outputs": {
"finalName": {
"type": "string",
"value": "[variables('name')]"
}
}
}Variables can use functions to combine parameter values.
The variable name concatenates the parameter prefix value 'app' with 'svc', resulting in 'appsvc'.