Table of Contents |
---|
...
In case you get the following error , you can fix it by setting subscription for your account
The client XYZ with object id 'ABCD' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Steps to fix the error:
go to subscriptions under your azure account and look for subscription ID
Run the following command to set subscription for your account:
az account set --subscription subscriptionID
...
Code Block |
---|
az group delete -n hmqResourceGroup -y --no-wait |