Download Microsoft Web Platform Installer
Click on Install
Type
Get-AzurePublishSettingsFile
Enter email address used for Azure registration
After you’ve saved the file to your system run the following
command to import it. Once the file imports you will have connectivity from
PowerShell to your Azure subscription.
PS C:> Import-
AzurePublishSettingsFile c:\location\filename.publishsettings
Now you can run all of your Azure tasks via PowerShell
instead of the console.