Azure Resource Group Lock

You can lock your Azure Resource Group using the steps below to avoid accidental deletion.

1. Log in to Azure Portal.

2. Search for Resource Group and then click on the search result Resource Group, as shown in the screenshot below.

read only lock azure resource group

3. Click on the specific Resourcerce Group to apply the lock.

read-only resource lock on a azure resource group

4. On the Resource Group page, expand settings, click on Locks, then click on the + Add button, Provide a name for the lock, choose the lock type, specify a note, and finally, click the OK button as shown in the screenshot below.

Azure Resource Group Lock

Now, you can see in the screenshot below that the lock was created successfully.

resource group lock azure

When I clicked the Delete resource group button to delete the resource group, it didn’t allow me.

resource group lock in azure

It showed me a message saying that the Delete resource group failed; the Resource group is locked and can’t be deleted. Check out the screenshot below for your reference.

read only lock azure resource group

Video Tutorial

You may also like following the articles below.

Azure Virtual Machine

DOWNLOAD FREE AZURE VIRTUAL MACHINE PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!