3.2.5 Configure a Resource Lock
How to configure a resource lock.
How to configure a resource lock.
Sign into .
Select "Create a Resource".
Under "Categories", choose "Storage".
Under "Storage Account", choose "Create".
On the "Basics" tab of the "Create storage account" blade, fill in the provided info.
Choose "Review + Create" and allow Azure to validate the configuration. Now choose "Go to resource".
Select the "Settings" section of the left-hand blade.
Select "Locks".
Select "Add".
Name your lock, verify it is set to ReadOnly and then select "Ok".
Under the "Data Storage" section of the blade, select "Containers".
Select "+ Container" and enter a container name.
Upon selecting "Create", you should get an error message; "Failed to create storage container".
Go back to the resource lock we created and change the type to "Delete".
Go back to "Data Storage" and follow the Task 3 steps again.
This should now create successfully.
Select "Overview" from the blade.
Choose "Delete".
You should be notified that you cannot delete the container due to a lock.
Go back to the resource lock we created and choose "Delete".
Go back to the storage account we created and choose "Delete".
To prevent accidental deletion, you should be prompted to enter the name of the storage account you wish to delete.
Once you enter the name, the account should be deleted.