DEV Community

Cover image for Assigning and Removing Resource Locks in Azure
Jetsumz
Jetsumz

Posted on

Assigning and Removing Resource Locks in Azure

  1. We'll be using an already created resource group to create the resource locks.
    Image description

  2. Select the 'locks' option.
    Image description

  3. Click on add.
    Image description

  4. Add the necessary parameters i.e name, lock type and optionally a description note.
    Image description

  5. It should look like the image below.
    Image description

  6. We can test the lock by trying to delete a resource within the resource group. I will try to delete a storage account created earlier
    Image description

  7. The storage account cannot be deleted because of the resource lock placed on the resource group.
    Image description

  8. To remove the resource lock simply go back to the locks option in the resource group and click delete on the lock.
    Image description

Top comments (0)