Template1's variables specify "location": "westeurope", and the resources section currently deploys the VM to that location. To deploy the virtual machine to West US using Template1, what should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Change the location value in the resources section to westus.
Why this is the answer
Azure Resource Manager (ARM) templates define resources and their properties. While variables can store reusable values like locations, the resources section directly specifies the properties for each resource being deployed. To change the deployment location of a virtual machine, you must modify its location property within the resources array. Changing a variable's value would only affect where that variable is used, not necessarily the resource's final deployment location if the resource's location property is hardcoded or references a different variable. Choosing West US at deployment time is not an option when directly modifying an ARM template; deployment parameters are used for runtime changes, but the question implies a template modification.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed