az account show performance #20314
Labels
Account
az login/account
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
feature-request
Milestone
Describe the bug
I spend most of my time using Azure through the CLI and have many different subscriptions. To help give me persistent visual context of which subscription I am currently operating against I make use of the PowerShell module oh-my-posh to display in my prompt the current Azure subscription name context. To show this oh-my-posh runs the command
az account show
this command is slow and therefore slows down my overall CLI experience as oh-my-posh has to wait foraz account show
to complete before it can render the prompt.To Reproduce
Run at a PowerShell prompt
measure-command { az account show }
Expected behavior
I'd expect this to be under <50ms but is actually over 500ms
Environment summary
Using az cli v2.30.0
Additional context
I have about 43 subscriptions available under
az account list
The text was updated successfully, but these errors were encountered: