As an administrator, you may need to lock a subscription, resource group,
or resource to prevent other users in your organization from accidentally deleting or modifying critical resources.
You can set the lock level to CanNotDelete or ReadOnly. In the portal, the locks are called Delete and Read-only respectively.
當 delete lock 了的 resource
'migratecb1d2lsa590397' can't be deleted because this resource or its parent has a delete lock. Locks must be removed before this resource can be deleted.Learn more about delete locks
un-lock
In the Settings blade for the resource, resource group, or subscription that you wish to lock, select Locks.