A company implements a governance rule requiring that all virtual machines in an Azure subscription must use a specific size SKU. Ten virtual machines of different sizes are already running in the subscription when a new Azure Policy is assigned with a Deny effect for non-allowed sizes. What is the state of the ten existing virtual machines after the policy is applied?
- AThey are automatically shut down to prevent non-compliant resource utilization.
- BThey are automatically resized to the allowed size SKU by Azure Policy.
- They continue to run without interruption but are flagged as non-compliant in the compliance dashboard.Cevap
- DThey are excluded from the policy evaluation, and the users who created them have their Azure Role-Based Access Control (RBAC) roles modified to prevent further edits.
Cevap
They continue to run without interruption but are flagged as non-compliant in the compliance dashboard.
When a new Azure Policy is assigned, existing resources are evaluated during compliance scans. If they do not match the policy criteria, they are flagged as non-compliant in the dashboard, but they continue to run without interruption. The Deny effect only blocks the creation of new non-compliant resources or updates to existing resources that would make them non-compliant.
Adım Adım Çözüm
Anahtar Kavram
Azure Policy evaluation of existing resources
Tahmini Süre:1m 0s