This lab is going through maintenance work. We will update, once it is completed.
In this lab, you will learn how to prevent users to accidently delete resources using Azure resource locks.
Duration: 45 minutes
Azure resource locks prevent users in an organization to accidently deleting or modifying critical resources.
Azure locks are different from role-based access control in a way that using these locks you can apply restrictions across all users and roles.
Users can apply locks on resource level, resource group level or subscription level.
There are two types of locks available in Azure:
CanNotDelete: If this lock is applied to any of the resources, the user can still read or modify the resource but cannot delete it.
ReadOnly: As the name suggests, with this lock applied, a user can only read the resource without causing any modifications or deletions.
In the Azure portal, these locks are called Delete and Read-only.
Launching Lab Environment
Deploying a Virtual Machine
Creating a Delete Lock
Creating a Read-Only Lock
Deleting the Locks
Deleting the Virtual Machine