Freigeben über


Setting up Powershell with Azure

Overview

I tried a bunch of ways to configure Powershell with Azure. This one, documented below, finally worked.

Prerequisites

A Windows Azure subscription – If you don’t currently have a paid subscription, you can sign-up for a FREE trial subscription on the Windows Azure account site https://manage.windowsazure.com/.

Windows Azure PowerShell module – Download and install the Windows Azure PowerShell module https://go.microsoft.com/?linkid=9811175&clcid=0x409 on a PC running Windows PowerShell 3.0.

Task 1 of 1 - Setting up Powershell with Azure

  1. Start Powershell as Administrator

    setup_ps_a

    Starting Powershell

  2. Bring up the Powershell IDE

    setup_ps_b

    Starting the IDE

  3. Set the Windows PowerShell script execution policy to RemoteSigned:

    setup_ps_c

    Specifying the execution policy

  4. Import the Windows Azure PowerShell module

    setup_ps_d

    Import Azure cmdlets

  5. Download the Windows Azure Publish Settings file for your Windows Azure subscription. You may need to sign in.

    1. Save to a local folder

    setup_ps_e

    Downloading the publish file

  6. Save to a local folder

    setup_ps_f

    Saving to a local folder

  7. Import the publish settings file

    setup_ps_g

    Importing the publish settings file

  8. Validate the import by typing Import-auzrePublishSettingsFile.

    setup_ps_h

    Validating the setup

Summary

You should now be ready to start managing Azure with Powershell.