Valid AZ-104 Dumps shared by ExamDiscuss.com for Helping Passing AZ-104 Exam! ExamDiscuss.com now offer the newest AZ-104 exam dumps, the ExamDiscuss.com AZ-104 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com AZ-104 dumps with Test Engine here:
You have an Azure Resource Manager that is used to deploy an Azure virtual machine. Template1 contains the following text: The variables section in Template1 contains the following text: "location": "westeurope" The resources section in Template1 contains the following text: You need to deploy the virtual machine to the West US location by using Template1. What should you do?
Correct Answer: A
You can change the location in resources. Parameters used to define the value of some variables to be able to use in different places in the template resources. Resources are used only for complicated expressions. In any case, RM will only deploy from resources. In case the value is not mentioned directly, then it will check parameters if it is specified in the resources. Based on this question, the value of location is defined directly in resources. so you change the resources location value. Use location parameter. To allow flexibility when deploying your template, use a parameter to specify the location for resources. Set the default value of the parameter to resourceGroup().location. Reference: https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/resource-location?tabs=azure- powershell https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-syntax#resources