An administrator plans to deploy a new solution consisting of an Azure Virtual Machine in the East US region and an Azure SQL Database in the West US region. Both resources must share the same lifecycle, and they must both be labeled with the tag 'Environment: Production' for billing analysis. The administrator creates a resource group named App-Prod-RG in the East US region and applies the 'Environment: Production' tag to it.
Which of the following is the correct configuration and behavior for deploying these resources?
- Deploy both the virtual machine and the database into App-Prod-RG, and manually apply the 'Environment: Production' tag to both resources.Cevap
- BDeploy both resources into App-Prod-RG, and the virtual machine and database will automatically inherit the 'Environment: Production' tag.
- CCreate App-Prod-RG in East US, then nest a secondary resource group inside it in West US for the database to ensure the tag is inherited.
- DDeploy both resources into App-Prod-RG, but the database must be redeployed to the East US region to match the resource group's location.
Cevap
Deploy both the virtual machine and the database into App-Prod-RG, and manually apply the 'Environment: Production' tag to both resources.
The correct option is correct because Azure resources can reside in a different region than their containing resource group, and resource group tags are not inherited by the resources inside them.
Adım Adım Çözüm
Anahtar Kavram
Azure resource groups are logical containers that can hold resources from different regions, cannot be nested, and do not pass down their tags to contained resources through inheritance.