An organization wants to implement governance across its Azure subscriptions. The administrator plans to use Azure Policy to restrict allowed virtual machine SKUs to 'Standard_D2s_v3' and audit resources that do not have a 'Department' tag. Which of the following statements regarding the implementation and behavior of these policies are correct? (Select TWO)
- Assigning a policy definition with the 'Deny' effect blocks the creation of virtual machines that use SKUs other than 'Standard_D2s_v3'.Cevap
- Assigning a policy definition with the 'Audit' effect allows resources without the 'Department' tag to be deployed but marks them as non-compliant.Cevap
- CUsing the 'Disabled' effect on the SKU policy automatically remediates existing non-compliant virtual machines.
- DA single policy assignment using the 'Deny' effect automatically deletes any existing virtual machines that do not match the 'Standard_D2s_v3' SKU.
Cevap
The correct statements are that assigning a policy definition with the 'Deny' effect blocks the creation of virtual machines using unapproved SKUs, and assigning a policy definition with the 'Audit' effect allows resources without the mandatory tag to be deployed but marks them as non-compliant.
The correct statements are that the 'Deny' effect blocks the creation of resources that violate policy definitions (such as virtual machines using unallowed SKUs), and the 'Audit' effect allows resources to deploy but marks them as non-compliant for visibility.
Adım Adım Çözüm
Anahtar Kavram
Azure Policy effects control the compliance behavior when resources are evaluated against policy rules.