Page tree
Skip to end of metadata
Go to start of metadata

From time to time it may be necessary to execute Powershell scripts against your Azure subscription for functions that are not readily available via the Azure Portal.  This guide will outline the process to install Azure Powershell.  Azure Powershell simply refers to modules and cmdlets that are imported to run within the Powershell application.

Step-by-step guide

  1. Install Powershell
  2. Import/install Azure Powershell packages

Requirements

Must have Windows Powershell v3.0 or compatible version installed.

By default, Windows O/S is pre-packaged with Powershell. If you are running Windows proceed to step 2. If your Powershell version is incompatible with the Azure modules, you will be prompted to update the default installed version automatically.

1. Install Azure Powershell

Install the latest version from Git here.  Installation instructions for various O/S systems are on the landing page.

2. Import/Install Azure Powershell packages

For Windows:

Launch Powershell with Administrative privileges and run the following command:

PS> Install-Module AzureRM

For Linux and Mac O/S:

Currently the Install-Module command does not function for Mac O/S and Linux due to unresolved Issue 1618 as described here.  To resolve you can execute the following scripts (the scripts also include an option to install Azure CLI; to install CLI with 0FS please refer to the following article Install Azure CLI on Mac OS X using 0FS (Zero Footprint Service) Approach):

Linux - ps6.14_14.04_install.sh

Mac O/S - ps6.14_osx_install.sh