Use it when setting up subscriptions (landing zones), granting access, enforcing standards such as allowed regions or required tags, and when a deployment is denied or access fails.
Azure Governance
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.
1. At which scope is the role or policy assigned?
2. Is the action blocked by RBAC (AuthorizationFailed), policy (RequestDisallowedByPolicy) or a lock (ScopeLocked)?
3. Is the resource compliant and who owns it (tags)?
management group → subscription → resource group → resource; at each scope: RBAC role assignments, policy/initiative assignments (effects), locks; inheritance downward; compliance evaluation and remediation
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
az lock list --resource-group rg-app --output tableVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Read-only Verification Verify boundary
# What can a principal do, and where?
az role assignment list --assignee anna@example.com --all --query "[].{role:roleDefinitionName, scope:scope}" --output table
# Policies assigned at a subscription and compliance summary for a resource group
az policy assignment list --scope /subscriptions/<sub-id> --query "[].{name:displayName, enforcement:enforcementMode}" --output table
az policy state summarize --resource-group rg-app --query "results.{nonCompliantResources:nonCompliantResources, nonCompliantPolicies:nonCompliantPolicies}"
# Non-compliant resources and the policy that flags them
az policy state list --resource-group rg-app --filter "complianceState eq 'NonCompliant'" \
--query "[].{resource:resourceId, policy:policyDefinitionName}" --output table
# Locks and tags
az lock list --resource-group rg-app --output table
az group show --name rg-app --query tags
Step 2 Common mistakes Narrow the fault
- Owner role for everyone "to get things done".
- Assigning roles to individual users on individual resources.
- Policies only in audit mode forever.
- ReadOnly locks that break normal operations.
- No owner/environment tags, making cost and incident ownership unclear.
Step 3 Troubleshooting Narrow the fault
AuthorizationFailed. No role grants the action at that scope; check inherited assignments with --all. Remember role assignments can take minutes to propagate and tokens may need a refresh.
RequestDisallowedByPolicy. The error names the policy assignment; fix the deployment (region, SKU, tags) or request an exemption.
ScopeLocked. A lock on the resource, resource group or subscription blocks the operation; remove it deliberately for maintenance and re-apply.
Policy shows non-compliant after deployment. Evaluation runs periodically; existing resources need remediation tasks for deployIfNotExists/modify.
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.
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.
ReferenceWhat it is2 sections · depth on demand
Direct Answer
Azure governance combines four controls that all inherit down the hierarchy (management groups → subscriptions → resource groups → resources). Azure RBAC assigns roles (Owner, Contributor, Reader, or specific roles) to users, groups and managed identities at a scope. Azure Policy evaluates resources against rules and can deny, audit, modify or deploy missing settings. Tags record owner, environment and cost centre. Resource locks (CanNotDelete, ReadOnly) protect critical resources even from people with permissions. A landing zone packages these into a ready-made subscription design.
Scope and canonical references
- Hierarchy: Microsoft Azure.
- Directory roles and just-in-time access: Microsoft Entra ID, Privileged Identity Management (PIM).
- RBAC as a concept: Role-Based Access Control.
- Cost governance: Cloud Cost Management.
- Security posture and controls: Cloud Security.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Azure RBAC
| Built-in role | Can |
|---|---|
| Owner | Everything, including granting access |
| Contributor | Create and manage resources, not grant access |
| Reader | View |
| User Access Administrator | Manage role assignments |
| Service-specific roles | e.g. Virtual Machine Contributor, Storage Blob Data Reader |
An assignment = principal + role + scope. Assign to groups, use custom roles sparingly, and put privileged roles behind PIM. Azure RBAC is separate from Entra ID directory roles (Global Administrator etc.), although a Global Administrator can elevate to manage all subscriptions.
Azure Policy
A policy definition is a rule (if conditions → effect); an initiative groups definitions (for example a regulatory baseline). Assignments apply them at a scope, with exclusions and parameters.
| Effect | Behaviour |
|---|---|
| deny | Block create/update that matches |
| denyAction | Block specific actions such as delete |
| audit / auditIfNotExists | Report non-compliance |
| append / modify | Add or change properties (e.g. tags) at deployment |
| deployIfNotExists | Deploy a missing related resource (e.g. diagnostic settings); needs a managed identity and remediation for existing resources |
| disabled | Turn off |
| manual | Attestation-based compliance |
Typical baseline: allowed regions, required tags, no public IPs on NICs in certain subscriptions, diagnostic settings to Log Analytics, storage without public blob access.
Tags and locks
Tags (key/value) are not inherited automatically — use policy (modify/append) to inherit from resource groups or require them. Locks: CanNotDelete allows changes but not deletion; ReadOnly blocks changes too (and can break operations that use POST, such as listing storage keys).
Landing zones
Microsoft's Cloud Adoption Framework landing zones define management groups (platform, landing zones, sandbox, decommissioned), platform subscriptions (identity, management, connectivity), and policies/RBAC applied at each level, so new workloads start compliant.
Other providers
| Azure | AWS | Google Cloud |
|---|---|---|
| Management groups | Organizations OUs | Folders |
| Subscription | Account | Project |
| Azure RBAC | IAM policies and roles | IAM roles and bindings |
| Azure Policy (deny) | Service control policies (SCPs) | Organization policies |
| Azure Policy (audit) | AWS Config rules | Security Command Center / policy analyzer |
| Tags | Tags | Labels and tags |
| Activity Log | CloudTrail | Cloud Audit Logs |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Deep reference
Healthy vs suspicious evidence
Output interpretation
Policy compliance (az policy state summarize) reports non-compliant resources per assignment; a sudden jump usually follows a new assignment or a policy definition change, not new resources.
Policy effect in errors: RequestDisallowedByPolicy names the assignment and definition — the deny happened before the resource was created.
Role assignments (az role assignment list --all): look for Owner/Contributor at subscription or management group scope held by users rather than groups, and for assignments to deleted principals (principalName empty).
Locks (az lock list): CanNotDelete or ReadOnly explains why a delete or even a configuration change fails for an otherwise authorized user.
Design & tradeoffs
Design decisions
Guardrails before workloads: a management group hierarchy, baseline policies (allowed regions, required tags, diagnostic settings, no public IPs where not needed) and RBAC by group form a landing zone.
Audit, then deny: start new policies with Audit to measure impact, then move to Deny or DeployIfNotExists once exceptions are handled.
Privileged access: use Privileged Identity Management for Owner/Contributor and keep standing assignments minimal.
Cost governance: budgets with alerts per subscription and tags for cost allocation.