az lock delete Unexpected --namespace for lock XXX, expected microsoft.storage (got Microsoft.Storage) worked before #20351
Labels
ARM
az resource/group/lock/tag/deployment/policy/managementapp/account management-group
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
feature-request
Milestone
Describe the bug
az lock delete --name AzureBackupProtectionLock --resource-group rsg-hklife-prd-az2-ZZZ --resource MMMM --resource-type Microsoft.Storage/storageAccounts
ERROR: Unexpected --namespace for lock AzureBackupProtectionLock, expected microsoft.storage
resource type from az cli
Command Name
az lock delete
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
Expected Behavior
Worked both ways.
Environment Summary
Additional Context
Another storage account lock was processed successfully with "Microsoft.Storage" value
The error message
Unexpected --namespace
is also confusing, no --namespace argument was given (it was parsed from resource-type and/or resource-name/ -id). I'd recommend changing the error outputs here.MS Staff - contact me if you need a real tenant/subscription and resource Id(s)
The text was updated successfully, but these errors were encountered: