...
Code Block | ||
---|---|---|
| ||
[cluster-1-aks] username@az-jumpbox:~$ |
Cluster Subscription & Resources
Fixing Issues
Listing commands not showing any item / Commands failing to get resources data
By default you will see all the resources in your account subscription; and most accounts are on the same subscription as resources; but in some specific accounts the resource’s subscription will be different than your account and you won’t see any resources listed (like if you didn’t have any permission or resources doesn’t exists)
The default subscription for most of the resources is: ab767a8f-4a33-4cf8-8dc2-8a0e2e2e6b0c
But there are resources in other subscriptions, for example PTU resources.
If you don’t see any resources you can try to set the subscription to the default:
Code Block |
---|
az account set --subscription "ab767a8f-4a33-4cf8-8dc2-8a0e2e2e6b0c" |
And try again to check if is a permission issue
Additionally you can try to list all your subscriptions to see if the default is available to you:
Code Block |
---|
az account subscription list |
Note that this command will require you to install an extension:
Code Block |
---|
The command requires the extension account. Do you want to install it now? The command will continue to run after the extension is installed. (Y/n): |
And later will ask you to login for this scope
Code Block |
---|
az login --scope https://management.core.windows.net//.default |