question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`az account list` should return "enabled" subscriptions only, by default.

See original GitHub issue

We should add a flag (e.g., --all) that lists “disabled” accounts along with “enabled” accounts, but the default should only list “enabled” accounts.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
yugangw-msftcommented, Mar 28, 2017

@twitchax, FYI, what i suggested has a similar pattern in az vm image list. Also I much prefer to get the logic simple which will help users use the command well

  1. we expose --all
  2. we output a warning to tell people so You are viewing an offline list of images, use --all to retrieve an up-to-date list
0reactions
mayuridcommented, Mar 28, 2017

I agree with @yugangw-msft. Also i would prefer --all instead of --include-disabled. The help can cllarify that --all means that it includes disabled as well

Read more comments on GitHub >

github_iconTop Results From Across the Web

az account - Microsoft Learn
az account list. Get a list of subscriptions for the logged in account. By default, only 'Enabled' subscriptions from the current cloud is...
Read more >
Azure Cli how to change subscription default - Stack Overflow
1. List all the subscriptions you have az account list --output table Name CloudName SubscriptionId State IsDefault -- ...
Read more >
Azure CLI Basics: Logging In - Craig Forrester
List currently authenticated subscriptions az account list # Log in to a subscription az login # Display subscriptions by Name and show ...
Read more >
Azure CLI 2.0: List And Set Azure Subscription - Build5Nines
To do this, there are a couple important commands used to list the Azure Subscriptions your login has access to, view which subscription...
Read more >
Enable All Parameters for ASC Default Policy | Trend Micro
Using Azure CLI ... Check the configuration status of each policy parameter returned by the account get-access-token command output (i.e. the "value" property ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found