An administrator with the Owner role on an Azure subscription attempts to deploy a new virtual machine to the East US region. However, an Azure Policy definition with a Deny effect is assigned to the subscription, restricting all resource deployments to the West US region. What is the outcome of this deployment attempt?
- AThe deployment succeeds because the Owner role grants administrative permissions that bypass Azure Policy restrictions.
- BThe deployment succeeds, but the virtual machine is automatically relocated to the West US region to comply with the policy.
- The deployment is blocked because Azure Policy restrictions are enforced regardless of the user's role-based access control (RBAC) privileges.Answer
- DThe deployment succeeds, but the virtual machine is flagged as non-compliant in the Azure Policy dashboard.
Answer
The deployment is blocked because Azure Policy restrictions are enforced regardless of the user's role-based access control (RBAC) privileges.
Azure Policy evaluations occur at the Azure Resource Manager level before any resource is created. A Deny policy blocks non-compliant deployment requests immediately, and this enforcement applies to all users, including those assigned the Owner role. RBAC roles determine who has access, but Azure Policy defines the compliance boundaries of the resources.
Step-by-Step Solution
Key Concept
Interaction between Azure Policy and Role-Based Access Control (RBAC)