Management

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 788 other subscribers

Social

  • LinkedIn
  • RSS Feed for Posts
  • Twitter
  • StumbleUpon

[Solved] AzureRM : How to select the correct subscription

When connecting to Azure with Powershell, you’ll always be connected to the default subscription.

This is not always the preferred subscription.

Here is a script how to select the preferred subscription.

Always check the selected subscription, before executing more powershell command’s.

 

Script

 

This is how it looks like:

Login-AzureRmAccount

Logon with the correct credentials.

 

The default subscription is shown.

 

In the Gridview you see what the default subscription is.

 

Select the preferred subscription, and click OK.

 

The selected subscription is now the default subscription.

 

When checking the subscription by: Get-AzureRmContext you see the selected (new default) subscription.

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.