Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

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 RBACAzure PolicyResource locks
Question it answersWho can do what, where?Is this resource allowed / compliant?Can this be deleted or changed at all?
ExampleBen = VM Contributor on rg-shopOnly West Europe and North Europe allowedCanNotDelete on the production RG
Applies toUsers, groups, apps, identitiesResources and their propertiesEveryone, including Owners
DefaultDeny (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

Azure portal: Allow resources only in approved regions with Azure Policy Assign "Allowed locations", then watch a VM in the wrong region get denied.
</> Embed

Embed this simulation

Free for trainers, teachers and bloggers. Paste this into your page:

Loading the portal…

Search for <strong>Policy</strong>.

👆 Click the glowing item in the portal to continue

Read the steps as text
  1. Search for Policy.
  2. Type policy in the search bar and pick Policy under Services.
  3. Hundreds of built-in definitions exist. Open Allowed locations.
  4. Assign it at a scope. Every resource group and resource below inherits it.
  5. Parameters: only West Europe and North Europe are allowed, for example for GDPR data residency.
  6. Select Create.
  7. Now someone tries to create a VM in East US…
  8. Denied, before anything is built. Azure Policy enforces rules automatically; RBAC decides who can act, Policy decides what is allowed.
  9. 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

Install MSDEVBUILD Azure

Free · no account · works offline

Save the whole course for offline ›

Hi, I’m your Nimbus

Your study buddy. Pick what we do next.

MSDEVBUILD · Multi-Stack Dev Build

Sign in to MSDEVBUILD

One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.