Azure Governance
Cheat sheet · https://pcornel.dk/topic.php?topic=6298
Answer
Azure governance is the set of controls that keep a growing Azure estate secure, compliant and manageable: a management group hierarchy, Azure RBAC for who can do what, Azure Policy for what may be deployed and how, tags for ownership and cost, and locks against accidental deletion.
Remember
Assign RBAC and policy at the highest sensible scope; they inherit downward. Azure RBAC (resources) is separate from Entra roles (directory). Policy effects: deny blocks, audit reports, modify/append change, deployIfNotExists remediates. Locks (CanNotDelete, ReadOnly) override permissions.
First checks
az role assignment list --assignee <principal> --all -o table— what a principal can do and where.az policy assignment list --scope <scope> -o table— assigned policies.az policy state summarize --resource-group <rg>— compliance summary.az lock list -g <rg> -o table— locks.az tag list/az resource list --tag owner=<x>— tags.
Verify in this order
management group → subscription → resource group → resource; at each scope: RBAC role assignments, policy/initiative assignments (effects), locks; inheritance downward; compliance evaluation and remediation
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6298