A CanNotDelete lock is configured on an Azure subscription. A resource group named rg-sales within the subscription contains a virtual machine named vm-sales. What is the impact of this lock on the virtual machine?
- Authorized users can modify the configuration of the virtual machine, but they cannot delete the virtual machine.Cevap
- BAuthorized users are prevented from making configuration changes to the virtual machine and from deleting it.
- CAuthorized users can delete the virtual machine because locks applied at the subscription level do not inherit to resources.
- DAuthorized users can delete the virtual machine, but they cannot modify its configuration.
Cevap
Authorized users can modify the configuration of the virtual machine, but they cannot delete the virtual machine.
The correct answer is correct because Azure resource locks applied at a parent scope (such as a subscription) are inherited by all child resources. The CanNotDelete lock type allows authorized users to read and modify resource configurations, but prevents them from deleting the resource.
Adım Adım Çözüm
Anahtar Kavram
Resource Lock Inheritance and CanNotDelete Behavior
Tahmini Süre:45s