Azure Policy Initiative
An Azure Policy initiative is a group of policy definitions assigned together as one unit to enforce a compliance standard. It gives one compliance score instead of many separate policy states.
Azure Policy Initiative
An initiative, also called a policy set definition, bundles related policies such as "require encryption", "deny public storage", and "require tags" so they are assigned, tracked, and reported together. Microsoft ships built-in initiatives for common baselines, including ISO 27001 and PCI DSS, and you can author custom ones. Each policy in the set has an effect such as Audit, Deny, Modify, or DeployIfNotExists.
How Do You Roll Out an Initiative Safely?
Start with the Audit effect to see what would break, fix the findings, then switch the critical policies to Deny. Assigning Deny first can block deployment pipelines with confusing ARM errors.
compliance"]:::app B -->|fix findings| C["Switch to Deny"]:::bad C -->|monitor| D["Compliance score"]:::cloud classDef tool fill:#326CE5,color:#FFFFFF classDef app fill:#EDE9FE,color:#1E293B classDef bad fill:#FFEDD5,color:#1E293B classDef cloud fill:#D1FAE5,color:#1E293B
How Do You Create and Assign One?
az policy set-definition create --name pci-baseline-initiative \ --display-name "PCI baseline" \ --definitions @initiative-definitions.json az policy assignment create --name pci-baseline-prod \ --policy-set-definition pci-baseline-initiative \ --scope /subscriptions/<sub-id>Why It Matters in Production
A payments company like Razorpay can bundle a dozen PCI-related policies into one initiative and assign it at a management group, so auditors read one compliance percentage and new subscriptions inherit the rules automatically.
TipAssign at a management group rather than per subscription so every new subscription is covered from day one.
Common MistakeTreating a Deny assignment as retroactive. Policy blocks new or updated resources, while existing non-compliant resources are only flagged until you remediate them.
Frequently Asked Questions
What is the difference between a policy and an initiative?
A policy is one rule with one effect. An initiative groups many policies so they can be assigned and reported as a single standard.
Does an initiative fix existing non-compliant resources?
Only policies with Modify or DeployIfNotExists effects can remediate, and you must create a remediation task that uses a managed identity. Audit and Deny policies never change existing resources.
Why did my pipeline fail with a policy error?
A Deny policy in an assigned initiative rejected the resource. The ARM error includes the policy assignment name, which tells you which rule was violated.