How to list the subscriptions of a Azure account?

Microsoft Azure

Hi Guys,

I am new to Azure. I want to list all the subscriptions available in the account with the CLI command. How can I do that?


If you want to unleash your potential in this competitive field, please visit the Microsoft Azure course page for more information, where you can find the Microsoft Azure tutorials and Microsoft Azure frequently asked interview questions and answers as well.

1
Answers

Replies

You can get all the subscriptions in Azure for a logged account. The below command has to be used to run in the command-line interface.


$ az account list --output table


Name CloudName SubscriptionId State IsDefault


------------------ ----------- ------------------------------------ ------- -----------


Azure for Students AzureCloud xxxxxxxxxxxxxxxxxx Enabled True

 
 

This topic has been locked/unapproved. No replies allowed

Login to participate in this discussion.

Leave a reply

Before proceeding, please check your email for a verification link. If you did not receive the email, click here to request another.
WhatsApp
To Top