Configuring a Resource Lock
Full-Access Members Only
Sorry, this lesson is only available to Server Academy Full-Access members. Become a Full-Access member now and get instant access to this and many more premium courses. Click the button below and get instant access now.
Instructions
Q&A (0)
Notes (0)
Resources (0)
Saving Progress...
Resources
There are no resources for this lesson.
Notes can be saved and accessed anywhere in the course. They also double as bookmarks so you can quickly review important lesson material.
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:
Task 2: Apply a Read-Only Resource Lock
Next, we'll apply a read-only resource lock to the storage account:
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:
The error message indicates that the read-only lock prevents any create or update operations on the storage account, including creating a storage container.
Task 4: Modify the Resource Lock and Create a Storage Container
We'll now change the lock type and try adding the container again:
The read-only lock prevented you from adding a container. Once the lock type was changed, you were able to add a container.
Task 5: Attempt to Delete the Storage Account
Now, let's try to delete the storage account:
Task 6: Remove the Delete Lock and Delete the Storage Account
Finally, we'll remove the delete lock and delete the storage account:
Make sure to complete Task 6 to avoid leaving idle resources in your account. This exercise has demonstrated how to configure, update, and remove a resource lock on an Azure resource effectively.
Server Academy Members Only
Sorry, this lesson is only available to Server Academy Full Access members. Become a Full-Access Member now and you’ll get instant access to all of our courses.