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

Viewed 19306

When I log into the Windows Azure Portal it sets my default subscription to a friend's account that I no longer have access to. I would like to set the account to my account as the default.

If I click on the Subscriptions icon it has a list "Filter By Directory", it lists all my subscriptions. The one I no longer have access to is listed as the "Default Directory". How do I change this.

When I log in the URL directs me to something like: https://manage.windowsazure.com/@[SomeAccount]hotmail.onmicrosoft.com

where [SomeAccount] is the name of the subscription I no longer want. Any idea why this is showing up as the default when I login? Is there a way to get rid of this, or set my own subscription as the default when I login.

enter image description here

8 Answers

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.

I disabled an unwanted subscription, but the dashboard still showed this disabled subscription as the default.

To set the default to my desired subscription, I did this:

  1. https://portal.azure.com/#settings/directory
  2. Toggle "Advanced Filters" slider to "on" (top right)
  3. Go to "Advanced Filters" sidebar (left)
  4. Push " + Create a filter " link/button
  5. Filter Type Dropdown: "Subscription name"
  6. Value Dropdown: [X] Your Subscription

More information can be found here: https://docs.microsoft.com/en-us/azure/azure-portal/set-preferences#subscription-filters

[UPDATE 2021] You can change the default Azure Directory by first going to your own Azure Portal. https://portal.azure.com/yourdirectoryname.onmicrosoft.com

Click on your profile name at the top right of Azure Portal and click "Switch Directory".

You will be able to see: Current directory : "current directory" Startup directory : "current directory" (change)

Image of Azure Portal Settings - Directory

Click on "Change" and scroll down to "Startup Views", under "Select a directory" button, select the correct directory and click "Apply".

Image of Azure Portal Settings - Appearance + startup views

Latest 2020 Jan: we can do this. in portal->subscriptions->(top left)

"Showing subscriptions in <company>. Don't see a subscription?
Switch directories "

This 'Switch directories' will help you switch to the default

Related