A development team is setting up a testing environment in Azure. They have created a resource group named Dev-Testing-RG in the East US region. They now need to provision a virtual machine in the West US region and want to keep it in the Dev-Testing-RG resource group. How does Azure handle the location constraints for this setup?
- AThe virtual machine must be deployed in the East US region to match the location of the Dev-Testing-RG resource group.
- BThe virtual machine must be placed in a new resource group that is nested inside the Dev-Testing-RG resource group.
- The virtual machine can be deployed in the West US region and associated with the Dev-Testing-RG resource group.Answer
- DThe virtual machine can be deployed in the West US region within the Dev-Testing-RG resource group, and it will automatically inherit all tags applied to Dev-Testing-RG.
Answer
The virtual machine can be deployed in the West US region and associated with the Dev-Testing-RG resource group.
The correct option states that the virtual machine can be deployed in the West US region and associated with the Dev-Testing-RG resource group. This is because Azure resource groups can contain resources from different geographical regions; the resource group's location only determines where its own deployment metadata is stored.
Step-by-Step Solution
Key Concept
Azure resource groups hold resources, but the resources do not need to share the same region as the resource group, nor can resource groups be nested or automatically pass tags down to resources.
Estimated Time:45s