An administrator assigns an Azure Policy definition with the Deny effect to a resource group to prevent the creation of virtual machines that lack a 'CostCenter' tag. A user who holds the Owner role for the Azure subscription attempts to deploy a new virtual machine without this tag to the resource group. What is the result of this deployment attempt?
- The deployment is blocked, and the virtual machine is not created.Cevap
- BThe deployment succeeds because the Owner role grants permissions that override Azure Policy restrictions.
- CThe deployment succeeds, but the virtual machine is automatically deleted during the next compliance evaluation.
- DThe deployment succeeds, and the missing 'CostCenter' tag is automatically added to the virtual machine.
Cevap
The deployment is blocked, and the virtual machine is not created.
The correct option is that the deployment is blocked and the virtual machine is not created. Azure Policy evaluates resource creation requests before they are deployed. When a resource does not meet the policy criteria and the policy is configured with the Deny effect, the deployment is stopped immediately at the API level, preventing the resource from ever being created.
Adım Adım Çözüm
Anahtar Kavram
Azure Policy Deny Effect Enforcement
Tahmini Süre:45s