Azure RBAC vs Azure Policy Explained
Role-Based Access Control (RBAC) and Azure Policy are both governance tools, and both appear frequently on the exam, which is exactly why they get confused. The cleanest way to separate them: RBAC controls who can do what; Azure Policy controls what is allowed to exist and how it must be configured.
RBAC assigns permissions to users, groups, or applications at a specific scope — management group, subscription, resource group, or individual resource. A role like Virtual Machine Contributor grants specific actions (like starting or stopping VMs) without granting unrelated permissions like managing networking or billing. This is about identity and access — who is allowed to act.
Azure Policy defines rules about resource configuration and compliance, independent of who is trying to make the change. A policy might require every storage account to have encryption enabled, or deny deployment of resources outside an approved list of regions. This applies to everyone, including users who technically have RBAC permission to deploy — Policy can still block the deployment if it violates the rule.
A useful example that separates the two clearly: an engineer with full RBAC permissions to deploy virtual machines might still have their deployment blocked by Azure Policy if they try to deploy in a region the organisation hasn't approved. RBAC said they could act; Policy said the specific action wasn't compliant.
Policies can also be bundled into initiatives — a group of related policy definitions managed and assigned together, useful for enforcing a broader compliance standard made up of many individual rules.
The exam typically tests this by describing a governance requirement and asking which tool enforces it. If the requirement is about restricting who can perform an action, it points to RBAC. If it's about restricting what configurations are allowed regardless of who is deploying, it points to Azure Policy.
Three governance tools compared
| Tool | Question it answers | Example |
|---|---|---|
| Azure RBAC | Who can do what, and where? | The network team can manage virtual networks but cannot create virtual machines |
| Azure Policy | What is allowed to exist, and how must it be configured? | Resources can be created only in Australia East and Australia Southeast |
| Resource locks | Can this resource be changed or deleted at all? | A production database cannot be deleted by anyone until the lock is removed |
Scope and inheritance
All three tools are applied at a scope: a management group, a subscription, a resource group or a single resource. A setting applied at a higher scope is inherited by everything below it. A role assigned at subscription level applies to every resource group in that subscription, and a policy assigned to a management group applies to every subscription under it.
RBAC uses roles. The three built-in roles you are most likely to meet are Owner, which has full access and can grant access to others; Contributor, which can create and manage resources but cannot grant access; and Reader, which can view resources but not change them.
What Azure Policy does to resources that already exist
When a policy is assigned, existing resources are evaluated, and any that break the rule are reported as non-compliant. They are not deleted. New resources that would break a deny policy are blocked. An initiative is a group of policy definitions that are assigned together, for example all the rules needed for one compliance standard.
Traps to watch for
- Having the Owner role does not let you ignore Azure Policy.
- A resource lock applies to everyone, including Owners, until it is removed.
- RBAC does not check how a resource is configured. Azure Policy does not decide who can sign in.
- Tags can be required by policy, but tags themselves do not restrict anything.
An organisation wants to ensure that no one — regardless of their permission level — can deploy a storage account without encryption enabled. Which Azure governance tool enforces this?
Ready to test yourself on the full syllabus?