Azure Security built-in role

Locks Contributor

Reads, creates, updates, and deletes Azure management locks. A lock can impose CanNotDelete or ReadOnly restrictions that override the permissions of users and roles, but locks apply only to Azure control-plane operations and do not protect or restrict data-plane operations.

Role-definition permissions are imported from Microsoft Learn. Practical scope, use cases, prerequisites, best practices, security considerations, assignment guidance, and relationships have been reviewed against the official sources below.

Role definition ID: 28bf596f-4eb7-45ce-b5bc-6cf482fec137

Control-plane actions (3)

Data-plane actions (0)

None — this role grants no data-plane (data access) actions.

Excluded actions (0)

None

Assignable scopes (1)

Practical scope

Locks can be applied to a subscription, resource group, or individual resource, not to a management group. A parent lock is inherited by existing and future child resources, and the most restrictive lock in the inheritance chain takes precedence. Assign this role only at the boundary whose locks the principal is authorized to control.

Common use cases (2)

Prerequisites (3)

Best practices (3)

Security considerations (3)

Assignment guidance

Assign Locks Contributor to a small governance or platform group at the subscription, resource group, or resource boundary it protects. Require change approval for lock removal, test service behavior before ReadOnly locks, and never describe a management lock as a data-protection control.

Common questions

When should I assign the Locks Contributor Azure role?

Assign Locks Contributor when you need to: Apply CanNotDelete locks to critical subscriptions, resource groups, or resources to prevent accidental deletion.; and Maintain or remove management locks during a reviewed deployment, migration, recovery, or decommissioning workflow.. Practical scope: Locks can be applied to a subscription, resource group, or individual resource, not to a management group. A parent lock is inherited by existing and future child resources, and the most restrictive lock in the inheritance chain takes precedence. Assign this role only at the boundary whose locks the principal is authorized to control.

What permissions does the Locks Contributor Azure role grant?

The role definition grants 3 combined control-plane and data-plane actions. Representative operations include: Microsoft.Authorization/locks/read; Microsoft.Authorization/locks/write; and Microsoft.Authorization/locks/delete. Review the permission sections above for the complete definition and exclusions.

What are the security risks of the Locks Contributor Azure role?

Key considerations when assigning Locks Contributor: Deleting a lock removes a protection that overrides ordinary RBAC permissions and can expose critical resources to deletion or modification.; ReadOnly locks can block operations that appear non-mutating, including POST-based key listing, VM start or restart, role assignment, and some service automation.; and Locks do not protect blob, database, or other service data when the request uses a data-plane endpoint.. Follow the assignment guidance above and use the narrowest practical scope.

Editorial sources (5)

Official Microsoft Learn documentation →