Getting started with Powershell on Windows Azure

Let’s check today what it takes to make your environment ready to start working with the Powershell on Windows Azure.

First of all, make sure that you have the newest Powershell version installed – Powershell 5.0. If you are using Windows 10 or Windows Server 2016 Powershell 5.0 version comes by default. You can find all about the new features by going to msdn documentation, section “New features in Windows PowerShell 5.0”.

You can check the current version of you Powershell from the console.

PS D:\PS> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.14393.953
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.953
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3

If you have older version than 5.0, you need to download Windows Managements Framework 5.0, You can download it from here.

After the installation of the Framework, check the Powershell version again. Now, it is time to make your Powershell environment ready to work with Azure resources. For this, you need to install the Azure (for Classic Azure) and AzureRM (Azure Resource Manager) modules. In order to do that, start your Powershell in administrator mode and execute the following commands and you are all set.

Install-Module AzureRM
Install-Module Azure

Tip. I like my Powershell and Powershell ISE sit on my taskbar, that I could access it straight away. But you need always to start it in Administrator mode. I do the following:

  1. Right click on Powershell icon, right click again on Windows Powershell and then Properties

  3. Then click on Advanced and finally tick the checkbox
  4. That is it. Every time you start Powershell it will start in Administrator mode.


One comment

  1. The following time I read a weblog, I hope that it doesnt disappoint me as a lot as this one. I imply, I do know it was my choice to learn, but I really thought youd have something fascinating to say. All I hear is a bunch of whining about something that you would fix should you werent too busy looking for attention.

Leave a Reply to Jackie Postlewait Cancel reply

Your email address will not be published.