This article will walk you through the syntax and usage of the az account tenant list Azure CLI command with certain examples.
Table of Contents
az account tenant list
This Azure CLI command helps you to get the list of tenants for your account.
Syntax
az account tenant listExample
The below command will get you the list of tenants for your account.
az account tenant listAfter executing the above command, I got the expected output, as shown below.
[
{
"id": "/tenants/1c93a0aa-e46f-4d02-9eea-bb1efbbe5aaf",
"tenantId": "1c93a0aa-e46f-4d02-9eea-bb1efbbe5aaf"
},
{
"id": "/tenants/362d9363-d907-42c9-b2a1-559869fb41a7",
"tenantId": "362d9363-d907-42c9-b2a1-559869fb41a7"
},
{
"id": "/tenants/8a624f5e-fc55-4d8b-9528-cf4ffc9c504a",
"tenantId": "8a624f5e-fc55-4d8b-9528-cf4ffc9c504a"
},
{
"id": "/tenants/5d9d690a-0310-474d-ae8b-42df2d549228",
"tenantId": "5d9d690a-0310-474d-ae8b-42df2d549228"
},
{
"id": "/tenants/72f988bf-86f1-41af-91ab-2d7cd011db47",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
},
{
"id": "/tenants/d6bc6a4b-c027-450d-b8c5-32bb37efa727",
"tenantId": "d6bc6a4b-c027-450d-b8c5-32bb37efa727"
}
]You can see the same output in the screenshot shown below.

You may also like following the articles below.

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.
