Azure / Azure/azure-cli

Provide tenant DisplayName and DefaultDomain on az account commands or provide a command to fetch tenant information

Open
#19,276 3 comments 1 reaction 1 assignee Claimed by @jiasli View on GitHub
Account act-identity-squad customer-reported Feature Candidate feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Is your feature request related to a problem? Please describe.**
Selecting correct subscription from `az account list` is hard if identical subscription names are used on multiple tenants because:
1. The command does not output tenants' DisplayName and DefaultDomain
2. AZ CLI does not provide a command to list tenants

**Describe the solution you'd like**
`az account list` and `az account show` should display tenants' DisplayName and DefaultDomain.

**Alternative solution**
Add a command that gives the content of the following REST call: `az rest --method GET --uri https://management.azure.com/tenants?api-version=2020-01-01 --output table --query 'value[]'`. Compare with Get-AzTenant PS Cmdlet

The best-case scenario would be implementing both.

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.