To enforce configuration standards, a security team configures an Azure Policy definition with a Deny effect on a target resource group. Is the following statement true or false? Any pre-existing resources within the resource group that violate this policy will be automatically deleted by Azure Policy to maintain compliance.
Answer: Answer
Answer
The statement is false. Azure Policy does not automatically delete existing resources that are non-compliant; it only flags them as non-compliant in the portal.
The correct answer is false because Azure Policy does not take destructive actions like deleting or stopping existing resources when a new policy definition is assigned. Instead, it identifies them as non-compliant in compliance reports, allowing administrators to perform remediation manually or via a remediation task for policies configured with remediation effects.
Step-by-Step Solution
Key Concept
Azure Policy evaluation of pre-existing resources and the preventative nature of the Deny effect.