Azure / Azure/azure-cli

az account show performance

Open
#20,314 2 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
Account act-identity-squad customer-reported feature-request
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.