--all should not be required to obtain valid -o json output
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### **This is autogenerated. Please review and update as needed.**
## Describe the bug
**Command Name**
`az account list`
**Errors:**
```
```
## To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- _Put any pre-requisite steps here..._
have one or more "Enabled":"false" subscriptions and run :
- `az account list -o json`
## Expected Behavior
OUTPUT JSON ONLY.
The az_cli outputs an unwanted, unhelpful message
"A few accounts are skipped as they don't have 'Enabled' state. Use '--all' to display them."
The complete command line that I'm trying to run is below (i've added the --all so it works properly).
az_cli account list -o json --all | sponge | jq -c --raw-output '.[]|[.id,.name] | @tsv' | sort | fzf-tmux --delimiter='\t' --with-nth=2 --preview='echo {2} {1}' --height 40% | awk '{print $1}'
This creates an interactive Azure account chooser using FZF-tmux menu.
This is part of the [_b00t_](http://github.com/elasticdotventures/_b00t_) framework
which uses the az_cli extensively to deploy idempotent templates
## Environment Summary
```
Linux-5.8.0-53-generic-x86_64-with
Python 3.8.9
Installer: DOCKER
azure-cli 2.23.0 *
Extensions:
azure-devops 0.18.0
```
## Additional Context
Contributor guide
Assessment
This issue has not been assessed yet.