Windows Azure PowerShell – Getting Started
Introduction:
As per command line tools, almost all operations that are performed on the Platform can be done using Rest API and PowerShell. Windows Azure PowerShell releases are very frequent.
Download Page: https://www.windowsazure.com/en-us/downloads/?fb=en-us
[Last Release: February 2013]
Getting Started:
Step1: Installation
Download Windows Azure PowerShell from above link.
Select Windows Azure PowerShell click Add then Install.
It install independent PowerShell module for windows Azure.
We will be using Windows PowerShell instead of Windows Azure PowerShell.
Step 2: Configuration
Open Windows PowerShell and to make sure Azure PowerShell l module is available
PS C:\> Get-Module –ListAvailable
Directory: C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell
ModuleType Name ExportedCommands
---------- ---- ----------------
Binary Azure {Get-AzurePublishSettingsFile, Get-AzureSubscription, Import-AzurePub...
Import Azure Module in PowerShell
PS C:\> Import-Module Azure
AzurePublishSettingsFile needs to be imported in PowerShell to perform an operation. (#Only Once)
PS C:\> Get-AzurePublishSettingsFile
This command will open a browser which may prompt for live account (associated with Windows Azure) credentials to download a file with .publishSettings extension.
PS C:\> Import-AzurePublishSettingsFile "C:\Users\user1\Desktop\2-17-2013-credentials.publishsettings"
Just to Verify that PowerShell is talking to Windows Azure :
PS C:\> Get-AzureSubscription
This command will display following detail:
To Get List of All available Windows Azure Powershell Command:
For a list of all Azure cmdlets type 'help azure'.
For Node.js cmdlets type 'help node-dev'.
For PHP cmdlets type 'help php-dev'.
For Python cmdlets type 'help python-dev'.
Many thanks to Avkash Chauhan for review and valuable inputs.
Keywords: Windows Azure PowerShell, Configuration.
--------------------
Abhishek Anand
Support Escalation Engineer
Windows Azure Technical Support
Comments
- Anonymous
December 20, 2014
The comment has been removed