An Azure subscription contains a resource group named RG1. RG1 contains a virtual machine named VM1. A CanNotDelete lock is applied to the subscription, and a ReadOnly lock is applied to RG1. Which of the following describes the effective restrictions on VM1?
- VM1 cannot be modified and cannot be deleted.Cevap
- BVM1 can be modified but cannot be deleted.
- CVM1 can be modified and deleted.
- DVM1 can be deleted but cannot be modified.
Cevap
VM1 cannot be modified and cannot be deleted.
The correct option is that the virtual machine cannot be modified and cannot be deleted. Azure resource locks are inherited by all resources in the scope. When multiple locks are applied, the most restrictive lock applies. A ReadOnly lock is more restrictive than a CanNotDelete lock, meaning that the virtual machine inherits the ReadOnly lock from its resource group, which blocks both configuration changes (modifications) and deletion.
Adım Adım Çözüm
Anahtar Kavram
Azure resource locks inheritance and precedence rules, specifically how ReadOnly and CanNotDelete locks interact when applied at different scopes.