ScopeLocked: The scope cannot perform write/delete operation because following scope(s) are locked
A resource lock (CanNotDelete or ReadOnly) on the resource, group or subscription blocks the change.
The scope cannot perform delete operation because following scope(s) are lockedcannot perform write operation because following scope(s) are locked Meaning
ReadOnly locks also block operations that seem harmless (listing storage keys, scaling). Only users allowed to manage locks (Owner/User Access Administrator) can remove them.
Common causes
- CanNotDelete lock on resource/group
- ReadOnly lock blocking writes and some POST operations
- Lock inherited from a parent scope
⚡ Quick fix
- List locks on the scope and parents
- Remove or change the lock temporarily (with approval)
- Re-apply the lock afterwards
Detailed fix by platform
Azure CLI
- bash
az lock list -g rg-app -o table az lock delete --name protect -g rg-app
How to diagnose
- Locks — Resource, group, subscription
- Type — ReadOnly vs CanNotDelete
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- AnotherOperationInProgress Conflict: AnotherOperationInProgress — Another operation is in progress on the resource
- AuthorizationFailed Azure: AuthorizationFailed — The client does not have authorization to perform action
- InvalidTemplateDeployment ARM/Bicep: DeploymentFailed / InvalidTemplateDeployment / InvalidTemplate
Most viewed in Azure
- AADSTS50053 AADSTS50053: Your account is locked (Smart Lockout) / sign-in blocked due to suspicious activity
- AADSTS50076 Azure AD (Entra ID): AADSTS50076 / AADSTS50079 — multi-factor authentication required
- 40615 Azure SQL: Cannot open server 'x' requested by the login. Client with IP address 'y' is not allowed to access the server (Error 40615)
Other ways to find it
Where this error sits
Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 13 Oct 2026