![Azure Resource Manager Templates Quick Start Guide](https://wfqqreader-1252317822.image.myqcloud.com/cover/866/36698866/b_36698866.jpg)
上QQ阅读APP看书,第一时间看更新
Locks
Locks ensure that resources cannot be deleted or updated. This feature ensures that every ownership having permission on a scope, a principal cannot delete a resource. This is an additional layer of resource protection and especially useful for resources that are critical for working out a solution. The resources can only be deleted after removing the lock. There are two modes:
- CanNotDelete: This lock prevents deletion of a resource. Under this mode, resources can be updated and read at the management-control level.
- ReadOnly: This lock prevents deleting and updating a resource or resource group. This is more constraint compared to the CanNotDelete mode.