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.
CodePudding user response:
Thank you @Niels Uitterdijk , As discussed i am posting it as an answer to help other community members for the similar issue .
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 .