i received this error on my decom test when it was going through az lock delete
INFORMATION - Storage account for this customer exists, deleting...
ERROR: Unexpected --resource-group for lock delete_lock, expected uac-sui-int-ukwest-rg
However, my resource Group is actually "uac-hh-dev-ukwest-rg" Im not sure why its saying expected uac-sui-int-ukwest-rg but im going to edit my script to make sure it doesn’t happen again
Below is my code which I took from my script:
Write-Output "INFORMATION - Storage account for this customer exists, deleting..."
az lock delete -n delete_lock -g $resourceGroup
its pretty simply but I wanted to ask what shall I look at to make sure that error doesn’t come back again.
I was thinking maybe I could add an if statement or even an az lock delete show/list
Do you think that would work?