An IT administrator assigns an Azure Policy definition to a subscription. The policy is configured with a 'Deny' effect to prevent the creation of storage accounts that allow public network access. The subscription already contains five storage accounts that allow public network access.
What is the result of assigning this policy on the five existing storage accounts?
- AThe existing storage accounts will be automatically modified to disable public network access to conform to the policy.
- BThe existing storage accounts will be automatically deleted to prevent security non-compliance.
- The existing storage accounts will remain active and unmodified, but they will be reported as non-compliant in the Azure Policy compliance dashboard.Cevap
- DThe existing storage accounts will have their Azure RBAC roles revoked, preventing users from accessing them.
Cevap
The existing storage accounts will remain active and unmodified, but they will be reported as non-compliant in the Azure Policy compliance dashboard.
The correct answer states that the existing storage accounts will remain active and unmodified, but they will be reported as non-compliant in the Azure Policy compliance dashboard. When a new policy definition is assigned to a scope, Azure Policy scans all existing resources within that scope. If any existing resources do not meet the policy criteria, they are flagged as non-compliant in compliance reporting. The policy does not retroactively modify, stop, or delete pre-existing resources, even if the policy uses the 'Deny' effect.
Adım Adım Çözüm
Anahtar Kavram
Azure Policy evaluation of existing resources
Tahmini Süre:1m 0s