Description:
This control ensures that permissions for managing Azure resource locks are granted only through a custom role. Using a custom role limits access to lock-related actions, prevents accidental changes or deletions of critical resources, and provides better control over who can modify or remove protection settings.
Rationale:
Restricting resource lock management to a custom role reduces the risk of unauthorized deletion or modification of critical resources. It enforces least privilege access and ensures accountability by allowing only approved users to manage protection controls.
Impact:
Only users assigned the custom role will be able to manage resource locks. Other users may lose the ability to change or remove locks, which improves security but may require role updates for teams that previously had broad permissions.
Pre-requisites:
Azure subscription access
Owner or User Access Administrator role
Custom roles feature enabled
Approved list of users who should manage locks
Test Plan:
Sign in to the Azure Portal at https://portal.azure.com
Navigate to Subscriptions and select the relevant subscription
Open Access control (IAM)
Select Roles and review Custom roles
Verify a custom role exists with permissions to manage resource locks
Verify the custom role is assigned to the intended users or groups
If a custom role with resource lock permissions is not present or assigned, follow the implementation steps
Implementation Steps:
Sign in to the Azure Portal at https://portal.azure.com
Open Subscriptions and select the relevant subscription
Select Access control (IAM)
Select Roles and choose Create
Click on Add Select Custom role
Enter a role name and description for administering resource locks
Add the following permissions individually under Microsoft.Authorization
Add Microsoft.Authorization/locks/read
Add Microsoft.Authorization/locks/write
Add Microsoft.Authorization/locks/delete
Set the assignable scope to the required subscription or resource group
Create and save the custom role
Backout plan:
Sign in to the Azure Portal at https://portal.azure.com
Open Subscriptions and select the relevant subscription
Select Access control (IAM)
Select Roles and open the custom role for resource locks
Remove the role assignment or delete the custom role
Save the changes
Reference:



