How to set the default subscription in the Windows Azure Portal?

Solution 1:

The dropdown shows all directories which list you as an administrator and I believe they are simply listed alphabetically.

I don't think you can permanently filter the dropdown list and so you have two options -

  1. Make sure you are no-longer an administrator of any subscription you don't intend to use
  2. Bookmark a link that goes directly to the directory you wish to use. this will be windowsazure.com/@

Solution 2:

This worked for me in PowerShell with the Azure commands installed:

   1)  Add-AzureAccount;
   2)  Get-AzureSubscription;
   3)  Select-AzureSubscription -SubscriptionName <YourSubscriptionName> 

Solution 3:

Using Azure CLI you can set it easily:

az account set -s <id>

Do get the <id> you can list all the available subscriptions with

az account list

and copy the corresponding id property.

Solution 4:

at the time of writing this, azure team did't fix this problem yet

but here's two ways to work around, both of them works for me:

  1. Include the directory name as part of the URL, for example: https://portal.azure.com/directoryname.onmicrosoft.com

  2. Go to the old portal. https://manage.windowsazure.com and then select Subscriptions at the top of the screen and from FILTER BY DIRECTORY make sure you're selecting you own subscription -the one you're the admin of it, not a co admin- then select Manage subscriptions/directory. choose your main subscription and press EDIT DIRECTORY link in the task bar (bottom of screen) and Change the directory field to the directory you want to default to.