Your organization uses the following Azure resource hierarchy:
* A Management Group named Corp-MG.
* Two subscriptions under Corp-MG named Prod-Sub and Dev-Sub.
* Prod-Sub contains two resource groups: RG-Core and RG-Data.
* Dev-Sub contains a resource group named RG-Dev.
The following Azure Policy configurations are in place:
| Scope | Assignment / Policy Detail | Effect | Allowed/Required Values | Exclusions |
|---|---|---|---|---|
| Corp-MG | Initiative Gov-Initiative containing: - VM SKU restriction policy - Resource tag enforcement policy | Deny Deny | - Standard_D2s_v3, Standard_D4s_v3 - Tag Environment must exist | None |
| Prod-Sub | Policy Region-Restriction | Deny | East US, West US | RG-Data |
You need to identify which resource deployment attempts will succeed.
Which two deployment attempts will complete successfully? (Select two.)
- A Standard_D2s_v3 virtual machine deployed to RG-Data in North Europe with the tag Environment set to Production.Answer
- A Standard_D4s_v3 virtual machine deployed to RG-Core in East US with the tag Environment set to Production.Answer
- CA Standard_D2s_v3 virtual machine deployed to RG-Core in North Europe with the tag Environment set to Production.
- DA Standard_B2s virtual machine deployed to RG-Data in West US with the tag Environment set to Production.
- EA Standard_D4s_v3 virtual machine deployed to RG-Dev in West US without any tags.
Answer
The two successful deployments are: (1) A Standard_D2s_v3 virtual machine deployed to RG-Data in North Europe with the tag Environment set to Production, and (2) A Standard_D4s_v3 virtual machine deployed to RG-Core in East US with the tag Environment set to Production.
The correct deployments are those that satisfy the management group VM SKU and tag requirements, while also respecting the subscription region limits or qualifying for their exclusions. Specifically, the Standard_D2s_v3 VM deployed to RG-Data in North Europe with the Environment tag succeeds because the VM SKU and tags are valid, and RG-Data is excluded from the region restrictions. The Standard_D4s_v3 VM in RG-Core (East US) succeeds because its SKU, region, and tags are all within the allowed limits.
Step-by-Step Solution
Key Concept
Azure Policy evaluation logic takes into account hierarchical inheritance (from Management Groups down to Resource Groups) and respects explicit exclusions configured on individual policy assignments.