mikegoatly,
@mikegoatly@toot.community avatar

Helping a colleague troubleshoot an oddity - trying to get the details of a Key Vault using the with az keyvault show --name X but it errors out saying that an unrelated resource group could not be found. (Apparently the resource group did exist at one point, but has been deleted)

az keyvault list is empty, as is list-deleted, but the vault definitely exists.

mikegoatly,
@mikegoatly@toot.community avatar

Very strange... for some reason it's resolving the key vault to the wrong subscription and resource group

martinpeck,
@martinpeck@fosstodon.org avatar

@mikegoatly I was going to ask "is the hidden KV in the same subscription?"

mikegoatly,
@mikegoatly@toot.community avatar

@martinpeck It was looking in the wrong subscription because they had logged out and not selected the right subscription again.

If we specify the resource group using az keyvault show --name X -g RESOURCEGROUP it works - without the explicit resource group name it tries to use the non-existent resource group.

It doesn't make sense given key vaults are global. I'm taking some steps to see if its possibly a bug in the CLI by trying the same steps with the Az PS modules.

mikegoatly,
@mikegoatly@toot.community avatar

@martinpeck For what it's worth the key vault shows up in the expected place in the Azure portal

mikegoatly,
@mikegoatly@toot.community avatar

@martinpeck PEBCAK

They had previously set az config set default.group to the old resource group and forgotten about it 🤦

martinpeck,
@martinpeck@fosstodon.org avatar

@mikegoatly lol....oh well...you live and learn :)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • azure
  • Durango
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • osvaldo12
  • everett
  • Youngstown
  • khanakhh
  • slotface
  • rosin
  • thenastyranch
  • ngwrru68w68
  • kavyap
  • normalnudes
  • megavids
  • ethstaker
  • GTA5RPClips
  • modclub
  • cisconetworking
  • mdbf
  • tacticalgear
  • cubers
  • provamag3
  • tester
  • anitta
  • Leos
  • JUstTest
  • lostlight
  • All magazines