Compare
Azure RBAC vs Azure Policy vs Resource Locks
30-second answer
RBAC controls who can do what. Azure Policy controls what resources and settings are allowed, whoever creates them. Resource locks stop anyone, even owners, from deleting or changing a resource.
Simulate it »Side by side
↔ Swipe the table to see every column.
| Azure RBAC | Azure Policy | Resource locks | |
|---|---|---|---|
| Question it answers | Who can do what, where? | Is this resource allowed / compliant? | Can this be deleted or changed at all? |
| Example | Ben = VM Contributor on rg-shop | Only West Europe and North Europe allowed | CanNotDelete on the production RG |
| Applies to | Users, groups, apps, identities | Resources and their properties | Everyone, including Owners |
| Default | Deny (no access unless granted) | Allow (unless a policy says otherwise) | No lock |
| Inherited down the hierarchy | ✅ | ✅ | ✅ |
| Also reports existing problems | — | ✅ compliance view + remediation | — |
Prices are illustrative pay-as-you-go list prices converted at approximate rates, for "price feel" only. Check the Azure pricing calculator for real quotes.
Which one should I pick?
RBAC
Pick it when you are deciding people’s permissions.
Azure Policy
Pick it when you are enforcing organisation rules (regions, tags, SKUs).
Resource locks
Pick it when you want to protect critical resources from accidental deletion.
Simulate it
Search for <strong>Policy</strong>.
👆 Click the glowing item in the portal to continue
Read the steps as text
- Search for Policy.
- Type policy in the search bar and pick Policy under Services.
- Hundreds of built-in definitions exist. Open Allowed locations.
- Assign it at a scope. Every resource group and resource below inherits it.
- Parameters: only West Europe and North Europe are allowed, for example for GDPR data residency.
- Select Create.
- Now someone tries to create a VM in East US…
- Denied, before anything is built. Azure Policy enforces rules automatically; RBAC decides who can act, Policy decides what is allowed.
- The Compliance view also finds existing resources that break the rules, and remediation tasks can fix many automatically.
🧪 Simulation for learning. Screens are simplified versions of the Azure portal; names, prices and IDs are examples. Nothing here touches real Azure.
Questions people ask
Can an Owner delete a locked resource?
Not until the lock is removed. Owners can remove locks, which makes deletion a deliberate two-step action.
Does Azure Policy stop an admin?
Yes. A Deny policy blocks non-compliant resources no matter who creates them.
Learn each one properly
More comparisons
- Azure Blob vs Files vs Disk Storage
- Azure VM vs App Service vs Functions vs AKS
- LRS vs ZRS vs GRS vs GZRS (Azure Storage Redundancy)
- Azure vs AWS: service name map
- Load Balancer vs Application Gateway vs Front Door vs Traffic Manager
- VPN Gateway vs ExpressRoute
- IaaS vs PaaS vs SaaS
- Availability Sets vs Availability Zones vs Scale Sets
- Blob Access Tiers: Hot vs Cool vs Cold vs Archive
- Microsoft Entra ID vs Active Directory
- NSG vs Azure Firewall
- Service Health vs Azure Status vs Resource Health
- Azure Monitor vs Azure Advisor vs Defender for Cloud
- Public vs Private vs Hybrid Cloud
- Pay-as-you-go vs Reserved Instances vs Savings Plans vs Spot
- Management Groups vs Subscriptions vs Resource Groups
- Regions vs Availability Zones vs Datacenters