Install & Configure Azure Powershell

Outline

  • Install Windows Azure PowerShell
  • Connect to your subscription
  • View account and subscription details

Windows Azure PowerShell is provided with the Windows PowerShell module as part of the Windows Azure SDK.

In order to install Windows Azure PowerShell,

Visit this link http://www.windowsazure.com/en-us/manage/downloads/

2016-04-06_21-36-28

2016-04-06_21-35-24

Launch the web installer, click Install to start Windows Azure PowerShell’s installation and configuration.

2016-04-06_21-36-04

Web Platform Installer installs all dependencies for the Windows Azure PowerShell cmdlets.

 

2016-04-06_21-39-50

2016-04-06_21-44-36

Finish the installation.

2016-04-06_21-45-07

Connect to your subscription

We can import the Windows Azure PowerShell module into your Windows PowerShell session using the following command.

#Import Windows Azure PowerShell module
PS> Import-Module Azure

After download and install Azure PowerShell, the next step is to establish a connection with your Windows Azure subscription.

In order to set up your Windows Azure subscription in your PowerShell, you have to import the PublishSettings file that contains your Windows Azure subscription’s unique information, such as the subscription ID, name, …

This information will be used by PowerShell to reach your Windows Azure environment.

#Generate and download the Windows Azure PublishSettings File
PS> Get-AzurePublishSettingsFile

2016-04-06_21-58-09

Automatically publishSettings file will be downloaded. PublishSettings contains your Windows Azure subscription.

The next step define your subscription information in Windows PowerShell.

#Import Windows Azure PublishSettings File
PS> Import-AzurePublishSettingsFile <FileName>.publishsettings

2016-04-06_22-04-00

PowerShell will set your subscription as a default subscription.

View account and subscription details

You can add accounts by running Add-AzureAccount command.

To see the available accounts, type:

Get-AzureAccount

2016-04-06_22-53-55

For subscription details, type:

Get-AzureSubscription

2016-04-06_22-55-49

Thanks & Good luck!
Onur

Leave a Comment

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