A company has an Azure resource group named RG-Core that is located in the East Asia region. A developer needs to deploy a new virtual machine in the West US region. Which action should the developer take to deploy the virtual machine?
- ACreate a new resource group in the West US region and nest it inside RG-Core, then deploy the virtual machine there.
- BDeploy the virtual machine into RG-Core, which automatically forces the virtual machine's location to be East Asia.
- Deploy the virtual machine directly into RG-Core and specify the West US region as the location for the virtual machine.Answer
- DChange the region of RG-Core to West US before deploying the virtual machine, because a resource group's location must match the resource's location.
Answer
Deploy the virtual machine directly into RG-Core and specify the West US region as the location for the virtual machine.
The correct action is to deploy the virtual machine directly into the existing resource group while setting the virtual machine's region to the desired target region. Azure resources are not required to be in the same region as the resource group that contains them; the resource group's region only specifies where its metadata is stored.
Step-by-Step Solution
Key Concept
Azure resource groups serve as logical containers for resources, but the resources themselves can reside in any Azure region, independent of the resource group's location. Resource groups cannot be nested.
Estimated Time:45s