Azure Policy Baselines Cheat Sheet

Baseline policies, initiatives, and enforcement modes

Last Updated: November 21, 2025

Focus Areas

Focus
Batch policies into initiatives for common frameworks
Use audit mode before blocking new resources

Commands & Queries

az policy assignment list
List policy assignments
az policy initiative create --name Baseline --definitions defs.json
Create an initiative
az policy state trigger-scan --resource-group rg
Re-evaluate compliance

Summary

Ship baseline initiatives, document exemptions, and escalate noncompliance.

💡 Pro Tip: Audit compliance before switching enforcement to deny mode.
← Back to DevOps & Cloud | Browse all categories | View all cheat sheets