az account show performance
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**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](https://github.com/JanDeDobbeleer/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 for `az 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`
Contributor guide
Assessment
This issue has not been assessed yet.