An Azure administrator configures resource locks in a Microsoft Azure subscription. The administrator applies a ReadOnly lock to a resource group named RG-Production. Within RG-Production, there is an Azure Virtual Machine named VM-App1. The administrator then applies a CanNotDelete lock directly to VM-App1.
Which of the following statements describe the combined effects of these locks on VM-App1? Select two.
- Authorized users are prevented from deleting VM-App1.Cevap
- Authorized users are prevented from starting or stopping VM-App1.Cevap
- CAuthorized users can modify the virtual machine settings because of the CanNotDelete lock.
- DAuthorized users can modify the configuration of VM-App1 because the lock applied directly to the resource overrides the resource group lock.
Cevap
Authorized users are prevented from deleting the virtual machine, and they are also prevented from starting or stopping the virtual machine.
Resource locks are inherited from parent scopes to child resources. When multiple locks are applied, they are additive, meaning the most restrictive lock settings apply. The ReadOnly lock from the resource group prevents any modifications or control operations (such as starting or stopping the virtual machine), while both locks prevent the deletion of the resource.
Adım Adım Çözüm
Anahtar Kavram
Resource locks are inherited, additive, and the ReadOnly lock prevents both deletion and configuration updates (including stopping or starting virtual machines).