Using Console
Using CLI
az login
.<lock-name>
with a name for the lock, <resource-group-name>
with the name of the resource group containing the resource, <resource-name>
with the name of the resource, and <resource-type>
with the type of the resource. The --lock-type
parameter is set to CanNotDelete
to prevent accidental deletion of the resource.Using Python