-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az account show performance #20314
Copy link
Copy link
Open
Labels
Accountaz login/accountaz login/accountact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-request
Milestone
Metadata
Metadata
Assignees
Labels
Accountaz login/accountaz login/accountact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-request
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 showthis command is slow and therefore slows down my overall CLI experience as oh-my-posh has to wait foraz account showto 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