Search This Blog

Sunday, September 7, 2014

Connect to Azure Subscription

 

1. Download and Install Azure Powershell from Web Platform Installer.

To ownload Azure Subscription information. The information is contained in a .publishsettingsfile. Open Azure Powershell and type following command

Get-AzurePublishSettingsFile

image

To Import the publish settings file (change to your publishsetting file that you have downloaded. the file name is different from mine)

import-azurepublishsettingsfile 'C:\temp\MSDN Platforms-Converted Windows Azure  MSDN - Visual Studio Premium-Windows Azure MSDN - Visual Studio Professional-9-6-2014-credentials.publishsettings'

image

To see Azure Subscription

Get-AzureSubscription

SNAGHTML27a72f2

You may have multiple Azure Subscription. Before we start to use, select the correct Azure Subscription. To identify, look for “IsDefault” = True

image

To Select Other Azure Subscription, type the following command

select-AzureSubscription -SubscriptionName "MSDN Platforms" -Default

To verify, type get-AzureSubscription and make sure the correct subscription has listed as IsDefault=True”. Test by Get-AzureVM

image

Lastly, before start using make sure that you have updated the help file. It come handy when we would like to search for help on the syntax for Powershell cmdlet.

Update-Help

image