Hello @24a31a44e0 ,
Thank you for posting your query on the Microsoft Q&A forum.
Azure Resource Locks help prevent accidental deletion of critical resources while allowing necessary updates.
Types of Locks:
- CanNotDelete (Delete Lock): Allows modifications but blocks deletions.
- ReadOnly (Read-Only Lock): Allows viewing but prevents modifications and deletions.
How to Apply a Resource Lock:
- Go to Azure Portal: Select the resource you want to protect.
- Open Locks: Find “Locks” under the resource’s settings.
- Create a Lock: Add a new lock, choose the type, and provide a name.
- Save: The lock will be applied, affecting any child resources.
Key Points:
- Inheritance: Locks at the parent level apply to all child resources.
- Control Plane Only: Locks apply to management actions, not data operations.
Resource locks are a simple and effective way to safeguard your Azure resources from accidental changes.
Reference doc: Lock your Azure resources to protect your infrastructure - Azure Resource Manager | Microsoft Learn
Please reach out to us if you have any other queries.
Kindly Accept Answer and Upvote if it has been helpful.