What is an Azure Resource Lock?

  • Designed to prevent accidental deletion and/or modification
  • Used in conjunction with RBAC
  • Two types of locks
    • Read-only (ReadOnly) – only read actions are allowed
    • Delete (CanNotDelete) – all actions except delete are allowed
  • Scopes are hierarchical (inherited)
    • Subscriptions > Resource Groups > Resources
  • Management Groups can’t be locked
  • Only Owner and User Access Administrator roles can manage locks (built-in roles)
◀ Previous Episode Next Episode ▶

Adam Marczak

I've spent most of my career working with software and cloud technologies, but at heart I'm simply someone who loves learning new things and sharing what I discover. Through this blog and my Azure 4 Everyone YouTube channel, I try to make Azure and cloud computing more approachable for developers, architects, and anyone curious about technology. For full profile details, visit adammarczak.pl.

Did you enjoy the article?

Share it!

More tagged posts