Azure CLI Day 58 – storage account list

December 12, 2013

bash-azure

In my last post (http://thinkfirstcodelater.com/blog/?p=3590) I showed you how to use the Windows Azure cross platform command line tools to create a Windows Azure storage account. In this post I’ll show you how to use the tools to list the Windows Azure storage accounts associated with your Windows Azure subscription.

Once again, just a reminder that I’m using the command line tools on a MacBook Air with OSX (Mavericks) installed, and I’m using Google Chrome as my default browser. However, the experience should be identical on Windows and Linux as well.

Open an instance of your command line (Terminal, Bash, Command Prompt, etc.) and type the following:

azure storage account list -h

Screen Shot 2013-12-02 at 11.02.39 AM

As you can see, the azure storage account list command simply lists the Windows Azure storage accounts associated with your Windows Azure subscription. To list your storage accounts, type the following into your CLI:

azure storage account list

Screen Shot 2013-12-02 at 11.05.25 AM

The command results in three column table that provides you with the name, label (if specified), and location for each storage account in your subscription. If you want more details about each storage account in your subscription, you can use the —json parameter. Type the following into your CLI:

azure storage account list —json

Screen Shot 2013-12-02 at 11.08.59 AM

As you might expect, the results of this command are returned in json format and include the following properties:

  • endpoints
  • status
  • geoReplicationEnabled
  • geoPrimaryRegion
  • geoSecondaryRegion

That’s it for this post. In my next post I’ll show you how to use the Windows Azure cross platform command line tools to view the details of a specific storage account.

Did you know you can try Windows Azure for free for 30 days? Just go to http://aka.ms/thecloud and sign up.