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/
Launch the web installer, click Install to start Windows Azure PowerShell’s installation and configuration.
Web Platform Installer installs all dependencies for the Windows Azure PowerShell cmdlets.
Finish the installation.
Connect to your subscription
We can import Windows Azure PowerShell module into your Windows PowerShell session using the following command.
1 2 | #Import Windows Azure PowerShell module PS> Import-Module Azure |
After download and install Azure PowerShell, next step is 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.
1 2 | #Generate and download the Windows Azure PublishSettings File PS> Get-AzurePublishSettingsFile |
Automatically publishSettings file will be downloaded. PublishSettings contains your Windows Azure subscription.
Next step define your subscription information into Windows PowerShell.
1 2 | #Import Windows Azure PublishSettings File PS> Import-AzurePublishSettingsFile <FileName>.publishsettings |
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:
1 | Get-AzureAccount |
For subscription details, type:
1 | Get-AzureSubscription |
Thanks & Goodluck
Leave A Comment