An administrator applies a CanNotDelete lock to an Azure resource group named RG-Prod. A virtual machine named VM1 is deployed inside RG-Prod. Is the following statement true or false: VM1 cannot be deleted because it inherits the CanNotDelete lock from RG-Prod?
Answer: Answer
Answer
The statement is true. The virtual machine inherits the CanNotDelete lock from the resource group, which prevents it from being deleted.
The statement is correct because resource locks applied at the resource group scope are inherited by all resources inside that resource group, including VM1.
Step-by-Step Solution
Key Concept
Azure Resource Lock Inheritance
Estimated Time:45s