spottedmahn
spottedmahn

Reputation: 16031

(ResourceGroupNotFound) Resource group 'blah' could not be found

when I run an az acr show I get:

PS C:\Users\blah> az acr show (ResourceGroupNotFound) Resource group 'blah' could not be found. Code: ResourceGroupNotFound Message: Resource group 'blah' could not be found.

I do have multiple subscriptions and my default subscription is correct; reference: (ResourceGroupNotFound) Resource group '????' could not be found when creating an azure media services account.


The resource group it says it can't find is in another subcription. Where is it getting the default resource group from? 🤔

Reference: az acr show

az acr show --name
            [--resource-group]

Upvotes: 0

Views: 1825

Answers (1)

spottedmahn
spottedmahn

Reputation: 16031

Where is it getting the default resource group from? 🤔

Apparently, I set my default resource group:

PS C:\Users\blah> az configure -l
[
  {
    "name": "group",
    "source": "C:\\Users\\blah\\.azure\\config",
    "value": "wrong-resource-group"
  }
]

defaults.group The default resource group to use for all commands.

reference: CLI configuration with az config

Upvotes: 3

Related Questions