When I run az aks get-credentials --name project --resource-group project-rg
, I get the following error:
but I have owner access level in the resource group:
I've tried 1. logging out and logging in. 2. az account set --subscription guid2
. 3. checked if I have the right permissions (checked Microsoft.ContainerService/managedClusters/listClusterAdminCredential/action
Neither has worked. Any suggestions?
Solution- turns out I didn't run the az account set --subscription <guid>
...Turns out I needed to set the cluster subscription using
az account set --subscription <guid>