How to connect to your azure subscription account from powershell

By | October 27, 2015

Please see the article on how to install powershell on a azure virtual machine as a prerequisite to this article.

This short article will demonstrate how to connect to your azure subscription from powershell.

1. Type command Get-AzurePublshSettingsFile. This will retrieve the azure subscription with which you are currently logged in.

AzureConnectSub-4
2. Sign In with your azure credentials

AzureConnectSub-5
8. A settings file will download to the virtual machine.

AzureConnectSub-6
AzureConnectSub-7
9. Type command Import-AzurePublishSettingsFile to import the file that was just download

AzureConnectSub-8
10. On the next input provide the full path to settings file that was downloaded.

AzureConnectSub-9
11.Type command Get-AzureSubscription

AzureConnectSub-10

After this command you will be connected to your azure subscription via powershell.

Leave a Reply

avatar

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

  Subscribe  
Notify of