In this task, you will add a read only lock to the storage account. This will protect the resource from accidental deletion or modification.
In the Azure portal, in the Search resources, services, and docs text box at the top of the Azure portal page, type Resource groups and press the Enter key.
On the Resource groups blade, select the AZ500LAB03 resource group entry.
On the AZ500LAB03 resource group blade, in the list of resources, select the new storage account.
In the Settings section, click the “Locks” icon.
Click + Add and specify the following settings:
| Setting | Value |
|---|---|
| Lock name | ReadOnly Lock |
| Lock type | Read-only |
Click OK.
Note: The storage account is now protected from accidental deletion and modification.