How to lock and unlock Azure resource group and its resources?

Locking prevents other users in your organization from accidentally deleting or modifying critical resources. To prevent a resource group and its resources from being deleted, use az lock create.

Create a lock on Azure resource group:

Check if a lock exists in Azure resource group:

Get details on lock type in Azure resource group:

Update lock type in Azure resource group:

Unlock Azure resource group lock by deleting the lock:

Leave a Reply