az lock

Manage Azure locks. Part of azure-cli (also known as az). More information: https://learn.microsoft.com/cli/azure/lock.

az lock create --name {{lock_name}} --lock-type ReadOnly

az lock create --name {{lock_name}} --resource-group {{group_name}} --lock-type ReadOnly

az lock delete --name {{lock_name}}

az lock delete --name {{lock_name}} --resource-group {{group_name}}

az lock list

az lock show -n {{lock_name}}