- Microsoft Azure Administrator:Exam Guide AZ-103
- Sjoukje Zaal
- 228字
- 2021-06-24 14:01:55
Configuring resource locks
Administrators can set locks on your Azure resources to prevent other users from deleting the resource or making any changes to it. You can set two different lock levels on your subscriptions, resource groups, or resources:
- CanNotDelete: This level prevents authorized users from deleting the resource. They can still read and modify the resource.
- ReadOnly: Within this level, authorized users can read a resource, but they cannot delete or update it. This level is similar to assigning all authorized users to the reader role using RBAC.
To apply a lock on your resource group, you have to perform the following steps:
- Navigate to the Azure portal by opening https://portal.azure.com.
- In the left-hand menu, select Resource groups. Select the resource group that we created in the previous demonstration.
- In the Resource Group overview blade, under Settings, select Locks:

Resource group overview
- On the next screen, click Add in the top menu to create a new lock for this resource.
- Add the following values:
- Name: No-Deletion
- Lock type: Delete:

Creating a lock
- Click on OK to create the lock.
We have created a lock for this resource group to prevent authorized users from deleting it. In the next section, we are going to look at how we can move resources across different resource groups.
推薦閱讀
- Kubernetes修煉手冊
- Linux操作系統基礎
- Linux從零開始學(視頻教學版)
- Extending Bootstrap
- Instant Optimizing Embedded Systems using Busybox
- Kubernetes從入門到實踐
- 計算機系統:基于x86+Linux平臺
- Windows Server 2012網絡操作系統項目教程(第4版)
- Linux服務器配置與管理
- Kali Linux高級滲透測試
- Building Telephony Systems With Asterisk
- Windows Vista終極技巧金典
- μC/OS-III內核實現與應用開發實戰指南:基于STM32
- Java EE 8 High Performance
- Docker容器技術與運維