Configuring a Resource Lock
In this lesson, you’ll learn how to create a resource and configure a resource lock in Azure. This exercise will guide you through creating a storage account, applying a resource lock, and understanding the impact of the lock. All resources should be placed in the FreeResourcesRG resource group.
This exercise requires your own Azure subscription. If you don't have one, you can sign up for a free account. The entire exercise can be completed using the 12-month free services provided by Azure.
Task 1: Create a Resource
First, let's create a storage account to apply a resource lock to:
- Sign in to the Azure portal at https://portal.azure.com.
- Select Create a resource.
- Under Categories, select Storage.
- Under Storage Account , select Create.
- On the Basics tab of the Create storage account blade, fill in the following information:
- Resource group : Select FreeResourcesRG.
- Storage account name : Enter a unique name.
- Location : Default.
- Performance : Standard.
- Redundancy : Locally redundant storage (LRS).
- Select Review + Create to review your settings and allow Azure to validate the configuration.
- Once validated, select Create. Wait for the notification that the account was successfully created.
- Select Go to resource.
Task 2: Apply a Read-Only Resource Lock
Next, we'll apply a read-only resource lock to the storage account:
- In the storage account blade, scroll down to the Settings section.
- Select Locks.
- Select \+ Add.
- Enter a Lock name.
- Ensure the Lock type is set to Read-only.
- Select OK.
Task 3: Add a Container to the Storage Account
Let's try to add a container to see the impact of the read-only lock:
- Scroll up to the Data storage section of the storage account blade.
- Select Containers.
- Select **\+ C…
No comments yet. Add the first comment to start the discussion.