Azure Policy & Blueprints: AZ-500 Compliance Enforcement
Azure Policy enforces governance rules across subscriptions. The AZ-500 exam tests policy effects (deny, audit, modify, deployIfNotExists), initiative assignments, and the difference between Policy and Blueprints.
What Is Azure Policy?
Azure Policy evaluates resources against rules (policy definitions) and enforces compliance. Policies do not retroactively fix non-compliant resources: they prevent future violations (Deny effect) or report existing ones (Audit effect).
Policy Effects
| Effect | Behavior |
|---|---|
| Deny | Blocks the resource creation/update if non-compliant |
| Audit | Allows the operation but marks the resource as non-compliant |
| Modify | Adds/replaces/removes a property on the resource automatically |
| DeployIfNotExists | Deploys a related resource if it does not exist (for example, deploy Log Analytics agent) |
| AuditIfNotExists | Audits if a related resource is missing |
| Disabled | Policy is defined but not enforced |
Initiatives (Policy Sets)
An Initiative is a collection of policy definitions grouped for a common goal. Example: the "Azure Security Benchmark" initiative contains 200-plus policies that together implement the ASB framework.
Assign an initiative to a management group, subscription, or resource group: all child resources inherit the assignment.
Exemptions and Exclusions
- Exclusion scope: Exclude a specific resource group or resource from a policy assignment entirely
- Exemption: Mark a specific resource as "waived" or "mitigated" with an expiry date
Azure Blueprints
Blueprints bundle role assignments, policy assignments, ARM templates, and resource groups into a single deployable package. They enforce governance at subscription creation time. Exam trap: Blueprints are being deprecated in favour of Deployment Stacks. The exam may still test Blueprints: know they exist and that they combine Policy plus RBAC plus templates.
Get weekly security insights
Cloud security, zero trust, and identity guides — straight to your inbox.
Microsoft Cloud Solution Architect
Cloud Solution Architect with deep expertise in Microsoft Azure and a strong background in systems and IT infrastructure. Passionate about cloud technologies, security best practices, and helping organizations modernize their infrastructure.
Questions & Answers
Related Articles
Need Help with Your Security?
Our team of security experts can help you implement the strategies discussed in this article.
Contact Us