An Azure administrator configures a ReadOnly resource lock on a resource group named rg-finance. The resource group contains an Azure Virtual Network named vnet-prod. Another administrator then applies a CanNotDelete lock directly to vnet-prod. Which of the following statements describe the resulting effects of these locks? Select two.
- Users are prevented from adding a new subnet to vnet-prod.Cevap
- Users are prevented from deploying new resources into rg-finance.Cevap
- CUsers can add a new subnet to vnet-prod because the directly applied CanNotDelete lock allows modification operations.
- DUsers can deploy new resources into rg-finance as long as those resources do not have locks applied to them.
Cevap
Users are prevented from adding a new subnet to vnet-prod and users are prevented from deploying new resources into rg-finance.
The correct statements are that users are blocked from adding a subnet to the virtual network and blocked from deploying new resources to the resource group. This is because a ReadOnly lock is inherited by child resources, and when multiple locks exist, the most restrictive lock (ReadOnly) takes precedence over the less restrictive lock (CanNotDelete). A ReadOnly lock on a resource group also prevents any new resources from being created within that group.
Adım Adım Çözüm
Anahtar Kavram
Azure resource lock inheritance and precedence rules, specifically how ReadOnly locks restrict both resource modification and the creation of new resources within a resource group.
Tahmini Süre:1m 30s