Using

Azure Policy

Last reviewed

A core component of every good Azure landing zone. Assign at management group level, so one standard covers everything with no exceptions.

Assign at the management group

  • Management group level wherever possible: people with fewer privileges get access at subscription scope, and the policies still limit them.
  • Resources are cleanly separated in a good landing zone, so a policy can work over the complete scope, with no exceptions and no narrower assignment.
  • In bigger enterprise environments, staging, test and dev subscriptions inherit the same policies from a management group above. New resources get developed with the production policies in mind.
az policy assignment create --name <assignment> \
  --policy-set-definition <initiative-id> \
  --scope /providers/Microsoft.Management/managementGroups/<group>

Be careful with deny

  • Deny for the non-negotiables, audit for everything else.
  • If workflows are still manual and not everything is infrastructure as code, a deny policy, such as blocking resources without a specific tag, becomes a burden.
  • Many deployments in Azure, marketplace ones for example, don't let you set every value the policy needs.
  • I don't disable and re-enable policies to fit a workflow; a modify or deployIfNotExists policy fixes the resource instead.

History

  • 1 Sep 2026 Reviewed. No change.