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
...
The output from the command is similar to the following: (k8s v1.27.7 in our case, it might be different for you)
Code Block |
---|
NAME STATUS ROLES AGE VERSION aks-nodepool1-37471664-vmss000000 Ready agent 5m44s v1.1827.107 aks-nodepool1-37471664-vmss000001 Ready agent 5m50s v1.1827.107 aks-nodepool1-37471664-vmss000002 Ready agent 5m47s v1.1827.107 aks-nodepool1-37471664-vmss000003 Ready agent 5m47s v1.1827.107 |
In case you do not see the right nodes, please check and fix the current context
Check the current context, this should be set to HiveMQCluster in this case
kubectl config current-context
Fix the context
kubectl config use-context HiveMQCluster
...