Using PowerShell with Windows Azure

Microsoft Azure

The estimated reading time for this post is 0 minutes

If you’re working with Windows Azure and want to use PowerShell to perform management tasks you will first need to install and configure Windows Azure PowerShell as per this article “How to install and configure Windows Azure PowerShell“.

  1. Download and install the Microsoft Web Platform Installer
  2. Launch the Microsoft Web Platform Installer
  3. Select the Windows Azure PowerShell and then click install
  4. Launch PowerShell as an Administrator
  5. Type get-help *Azure* to see all the Windows Azure cmdlets – you will be asked to update help
  6. Download your Windows Azure subscription publish settings file by typing Get-AzurePublishSettingsFile or by browsing to the download publish profile page
  7. Save the publish settings file to a directory – in my case I store this alongside my Windows Azure scripts directory that I have synchronised with Dropbox
  8. Import the publish settings file by typing Import-AzurePublishSettingsFile <PathToPublishSettingsFiles>
  9. Check to see that you can are connected to your Windows Azure subscription by entering Get-AzureSubscription which should return information about your subscription.

Here are a couple of useful links to get you started – Windows Azure Management Cmdlets and Windows Azure Script Centre

That’s it – you should now be able to manage Windows Azure using PowerShell.

Comments

Leave a Reply