HOTSPOT
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Top comment
SimonR2▲ 79Highly votedApril 06, 2021 04:38 pm
A - Can you have multiple delete locks on a resource? YES
Confirmed, with screenshots in the below article.
B - Are locks inherited from a resource group? YES
When you apply a lock at a parent scope, all resources within that scope inherit the same lock. Even resources you add later inherit the lock from the parent. The most restrictive lock in the inheritance takes precedence.
If you want to create a lock at a parent level, select the parent. The currently selected resource inherits the lock from the parent. For example, you could lock the resource group to apply a lock to all its resources.
C - If you have a read only lock, can you add a delete lock? YES
Confirmed as possible by vasonic in a previous comment in lab.
4 more highly voted comments
vasonic▲ 62Highly votedFebruary 12, 2021 05:02 pm
The answer in box 3 is yes, I have student subscription for Azure and I just tried adding a read-only lock and then adding a delete lock. It was successful. So BOX 3 -> YES
azetraier▲ 8Highly votedMay 23, 2021 06:54 pm
The locks can have different sources and reasons for them. For example, resource A has a delete-lock because a specific resource, resource B, needs to access it. And then you deploy yet another resource, resource C, which also needs to access the same resource A. So resources B and C depend on resource A independently. So if you stop using resource B, and delete the lock for resources associated with it, without the second lock added because of resource C, this resource A would be now open to deletion. And you need to keep it running. I hope I explained it clearly. And this is just one of the uses.
Confirmed, with screenshots in the below article.
- https://stackoverflow.com/questions/65408486/why-azure-provides-multiple-delete-locks-on-a-virtual-machine
B - Are locks inherited from a resource group? YES
When you apply a lock at a parent scope, all resources within that scope inherit the same lock. Even resources you add later inherit the lock from the parent. The most restrictive lock in the inheritance takes precedence.
If you want to create a lock at a parent level, select the parent. The currently selected resource inherits the lock from the parent. For example, you could lock the resource group to apply a lock to all its resources.
- https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources#:~:text=In%20the%20Settings%20blade%20for,the%20lock%20from%20the%20parent
C - If you have a read only lock, can you add a delete lock? YES
Confirmed as possible by vasonic in a previous comment in lab.