Skip to content
Azure Lessons
Azure Lessons
  • Home
  • AWS
  • Azure
    • Azure Virtual Machine
    • Azure Active Directory
    • Azure CLI
    • Azure CLI Commands List
    • Azure Cognitive Services
    • Azure Cosmos DB
    • Azure DevOps
    • Azure Functions
    • Azure PowerShell Commands
    • Azure Sentinel
    • Azure SQL
    • Azure Storage
    • Azure Synapse
  • Blogs
  • FREE EBOOK

az account list

February 15, 2024 by Rajkishore

Let us learn the syntax and usage of the Az account list command with examples.

Table of Contents

  • Az account list
    • Syntax of az account list
    • Az account list Examples
      • Example-1
      • Example-2
      • Example-3

Az account list

The Az account list Azure CLI cmdlet will help you retrieve the lists of all the accounts associated with that particular user.

Syntax of az account list

az account list

Az account list Examples

Example-1

You can execute the below Azure CLI command to get the lists of all the accounts associated with a particular user.

az account list

After executing the above command, I got the output below. Since I have only one account, it is showing only one.

[
  {
    "cloudName": "AzureCloud",
    "homeTenantId": "5d9d690a-0310-474d-fghh-42df2d556789",
    "id": "1cdf4300-dee5-4518-9c9c-tghrii5cbd1",
    "isDefault": true,
    "managedByTenants": [],
    "name": "Visual Studio Enterprise",
    "state": "Enabled",
    "tenantId": "5d9d690a-0567-474d-ae8b-468575249228",
    "user": {
      "name": "fewlines4biju@hotmail.com",
      "type": "user"
    }
  }
]

You can see the same output in the screenshot below.

az account list

Example-2

You can use the below command to see the output in a table format.

az account list -o table

After executing the above command, I got the expected output in a table format, as shown in the below screenshot.

az account list output table

Example-3

You can execute the below command to list the supported locations for your current subscription.

az account list-locations

After executing the above command, I got the expected output, as shown in the screenshot below.

az account list-locations

Check out Az account subscription list

Conclusion

Use the Az account list command to get the lists of all the accounts associated with the specified user. Here, we discussed the syntax and usage of the Az account list Azure CLI command. Thanks for reading this article !!!

Microsoft Azure
Rajkishore

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.

Get-AzADAppCredential
Packagemanagement\install-package : no match was found for the specified search criteria and module name ‘msonline’.
Subscribe To Our YouTube Channel Subscribe to AzureLessons YouTube Channel

Recent Posts

  • Azure Function TypeScript
  • Azure DevOps Pricing
  • Why is Azure So Expensive? The Areas You Are Neglecting and Their Solutions
  • Azure Active Directory Basic for Education
  • Azure Stack Edge
  • About Us
  • Contact Us
  • Privacy Policy
  • Sitemap
© 2026 Azure Lessons
Azure
Virtual
Machine
By: Rajkishore
Azure Consultant
PDF

Free 25+ page PDF

Download free Azure Virtual Machine PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!

No spam, ever. You will also get new Azure tutorials by email. Unsubscribe any time. Privacy policy

Check your inbox

Your Azure Virtual Machine PDF is on its way to . Can't find it in a few minutes? Look in your Promotions or Spam folder.