liveBook · Manning

Policy effect

As explained in Azure Security

A policy effect is the outcome Azure Policy applies when evaluating a resource against a policy definition.

A policy effect determines what Azure Policy does when a resource matches a policy rule. Each policy definition has one effect, and Azure Policy evaluates applicable assignments before Azure Resource Manager processes the request. section 10.2.3

Common effects turn governance requirements into different operational outcomes:

  • Audit permits the resource but assesses it and reports compliance or noncompliance. section 10.2.3
  • Deny blocks creation of a resource that fails the policy; provide a noncompliance message so users understand the reason. section 10.2.3
  • Modify applies missing configuration through auto-remediation, such as adding required tags during deployment. section 10.2.3

Move an allowed-SKU policy from observation to enforcement

Assign an allowed virtual machine SKU policy with Azure CLI and begin with Audit to observe evaluation results. After confirming that legitimate deployments are not affected, switch to Deny to block disallowed SKUs and manage costs. Use a Waiver exemption for an approved resource group when noncompliance is accepted. section 10.2.2 section 10.2.3

How Azure Security covers it

How deep it goes
Defines effect selection and request ordering, then details Audit, Deny, and Modify without enumerating every available effect.
Examples
Uses allowed virtual machine SKUs, required tags, noncompliance messages, and resource-group exemptions as operational examples.
What it assumes
Assumes policy rules, definitions, assignments, and resource deployments; explains effect behavior without requiring prior effect knowledge.
What you can do after
Operate/configure Azure Policy by observing compliance, preventing noncompliant deployments, or applying missing configuration.
How it connects
Links policy definitions and assignments with Azure Resource Manager, resource providers, exemptions, and auto-remediation.

Also explained in

Compare how 2 books explain policy effect →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Azure Security. The section links point to the parts of the book it draws on.