An organization configures an Azure Policy assignment at a management group scope. The policy specifies that only virtual machines of the 'Standard_D2s_v3' size can be deployed, using the Deny effect. The subscription governed by this management group already contains several running virtual machines of the 'Standard_F4s' size. A developer who holds the Owner role for the subscription attempts to deploy a new virtual machine of the 'Standard_F4s' size.
Which of the following describes the status of the existing virtual machines and the outcome of the developer's deployment attempt?
- AThe existing virtual machines continue to run and remain compliant, and the developer's deployment is successful because the Owner role bypasses the policy.
- The existing virtual machines continue to run but are marked as non-compliant, while the developer's attempt to deploy the new virtual machine is blocked.Cevap
- CThe existing virtual machines are automatically shut down to enforce compliance, and the developer's deployment attempt is blocked.
- DThe existing virtual machines are automatically resized to 'Standard_D2s_v3', while the developer's deployment is successful because the policy only audits existing resources.
Cevap
The correct answer is the option stating that existing virtual machines continue to run but are marked as non-compliant, while the developer's attempt to deploy the new virtual machine is blocked.
Azure Policy evaluations do not retroactively alter, shut down, or delete existing resources that are already deployed when a new policy is assigned. Instead, these existing resources are evaluated and reported as non-compliant in the compliance dashboard. For new resources, the 'Deny' policy effect actively blocks deployment requests, even if the user initiating the deployment has high-level permissions like the Owner role. RBAC controls who has access, while Azure Policy controls resource properties.
Adım Adım Çözüm
Anahtar Kavram
Azure Policy evaluation behavior for existing resources versus new deployments, and its relationship with Azure RBAC.
Tahmini Süre:2m 0s