Windows Azure : Connect to Windows Azure via PowerShell

Prerequisite:

 

Steps

  • Open Powershell Azure program
  • On the right hand side “Commands window” select “Azure”

azure

  • Execute  command ” Get-AzureAccount” on powershell window. This will show no output.
  • Import certificate to connect to  windows azure account from powershell. Using certificate based approach , you do not have to enter your credential on each powershell session.
  • Execute a command “Get-AzurePublishSettingsFile”.  This command will open browser and  “*datestamp*.pubsettings” file will be downloaded.
  • Execute command “Import-AzurePublishSettingsFile  <your downloaded file path”
  • Execute  command ” Get-AzureAccount” on powershell window. This will now show you account information.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s