An administrator creates an Azure resource group named RG-Prod in the West US region. The administrator needs to deploy a virtual machine to run an application. Which of the following statements is correct regarding the location of the resource group and the location of the virtual machine?
- AThe virtual machine must be deployed in the West US region because resources are required to share the same location as their containing resource group.
- The virtual machine can be deployed in any available Azure region, regardless of the West US location of the resource group.Answer
- CThe virtual machine must be deployed in a nested resource group inside RG-Prod that matches the target region.
- DThe virtual machine will automatically inherit the tags and location of RG-Prod, preventing it from being deployed in a different region.
Answer
The virtual machine can be deployed in any available Azure region, regardless of the West US location of the resource group.
In Azure, resources within a resource group do not need to share the same location as the resource group itself. The location of the resource group determines where its metadata is stored, but the actual resources can be deployed to any available region to support multi-region setups.
Step-by-Step Solution
Key Concept
Resource Group Location Independence
Estimated Time:45s