Articles → MICROSOFT AZURE → Azure Locks

Azure Locks


Types Of Lock

  1. CanNotDelete lock → This type of lock allows the authorized user to modify the resource but does not have the permission to delete the resource
  2. ReadOnly lock → This type of lock does not allow the user to modify or delete the resource

Does The Lock Change The Behavior Of The Resource?

How To Apply The Lock?

  1. Go to the resource group where you want to apply the lock
  2. On the left-hand side window, click on the "Locks"
  3. On the right-hand side, click on the "+ Add" button to add a new lock
  4. Picture showing the Locks option inside the resource groups in Azure

    Click to Enlarge

  5. In the add screen, enter the "Lock name", "Lock type" and click on the "Ok" button. In the "Lock Type" field, we have two values i.e., Delete and Read-only
  6. Picture showing the details screen for adding the lock information in azure

    Click to Enlarge

  7. A lock is created on the resource group
  8. Picture showing the list of Azure locks in Azure

    Click to Enlarge

Picture showing the error message when user tries to delete the Resource Group in Azure

Click to Enlarge

Who Has Access To Manage The Locks?

Locks And Hierarchy

Picture showing how locks can be applied on the hierarchy

Click to Enlarge

Posted By  -  Karan Gupta
Posted On  -  Friday, February 26, 2021
Updated On  -  Tuesday, November 16, 2021


Your Email Id  
Query/FeedbackCharacters remaining 250