简体   繁体   中英

Azure CLI doesn't recognize resource group

So I'm new on Azure and got some problems with the CLI on the portal. After creating an AKS service using the UI, I cannot find it in the CLI and get an error message as shown below. Am I missing an obscure setting that filters resources? I can't even find my resource group.

Checked the spelling multiple times, obv. Also checked this Resource not found... , which is again for very obscure queries, whereas mine is extremely simple.

Any help would be appreciated!

(ResourceGroupNotFound) Resource group 'WebPlatformResource' could not be found.
Code: ResourceGroupNotFound
Message: Resource group 'WebPlatformResource' could not be found.

Message: Resource group 'yourresourcegroup' could not be found.

The above error occurs if we have multiple subscriptions, set your subscription first and then try:

  • To list all subscriptions - az account list --output table
  • To set your subscription - az account set --subscription "My Demos"

For more information please refer this MS DOC .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM