DEV Community

tomia456
tomia456

Posted on • Edited on

How to lock your Resources on Azure to prevent loss of Data or Files

Step 1

Go to search bar, Search and Click on Resource Group

Image description

Step 2

Select and Click on the desire Resource Group you would like to lock

Image description

Step 3

On the left hand side under Settings Select and Click on LOCK

Image description

Step 4

Select and Click on the Add Icon

Image description

Step 5

Lock Name - Create a unique Lock Name
Lock Type - Should be set on Delete
you can either leave a Note or Not

Image description

Step 6

Click on refresh

Congratulations!! you`ve successfully added a lock on your Resource group

Image description

             **Test on locked File**
Enter fullscreen mode Exit fullscreen mode

Step 1

Go to the locked Resource Group

Image description

Step 2

Select and Click on a Resource in the Resource Group

Image description

Step 3

Try to delete the file by clicking on the delete button

Image description

Step 4

Complete the Deleting process by Coping the file name in the Text Box

Image description

Step 5

Once you get the Error Pop up its means your Resource was successfully locked and can´t be deleted

Image description

Congratulations

NOTE:
That will be the end Make sure to always delete Azure Resource when they are not in use

Enjoy!!!!!

Top comments (0)