I was testing locks in Azure and I don't get the logic behind locks on resource groups when moving resources.
Example
RG "Lab"
No lock
contains storage account "labstorage"
RG "Production"
Read-only lock
contains storage account "productionstorage"
Behavior
Trying to add a new storage account to RG Production
- fails (as expected)
Move storage account labstorage from RG Lab to RG Production
- works
Why is the move operation successful? When the lock prevents me from adding new resources why would it allow me to move resources to it? Feels like circumventing the lock by creating resources elsewhere.
Is there any logic behind this, so I can understand?