How To Install Azure PowerShell on Windows

Azure Powershell Logo

Azure PowerShell on Windows 10

Hello everyone, on this post you will be able to learn how to install Azure PowerShell on Windows and harness the power of Microsoft’s underrated cloud based service that allows you to build, test, deploy, and manage your applications and other services through Microsoft’s managed data centers.

Requirements to run Azure PowerShell

Before you start trying to install Azure PowerShell on your Windows 10, Windows 8.1 or Windows 7 servers/computers, you first need to knwo that Azure PowerShell works with PowerShell 5.1 or higher on Windows, or PowerShell Core 6.x and later on all platforms. You should install the latest version of PowerShell Core available for your operating system. Azure PowerShell has no additional requirements when run on PowerShell Core.

To check what version your PowerShell is, simply run this command:

$PSVersionTable.PSVersion

To use Azure PowerShell in PowerShell 5.1 on Windows:

  1. Update to Windows PowerShell 5.1 if needed. If you’re on Windows 10, you already have PowerShell 5.1 installed.
  2. Install .NET Framework 4.7.2 or later.
  3. Make sure you have the latest version of PowerShellGet, run the following command:
  4. Update-Module PowerShellGet -Force.

Install the Azure PowerShell module

Run the following command from a PowerShell session:

Install-Module -Name Az -AllowClobber

NOTE: By default, the PowerShell gallery isn’t configured as a trusted repository for PowerShellGet. The first time you use the PSGallery you see the following prompt:

Untrusted repository

You are installing the modules from an untrusted repository. If you trust this repository, change
its InstallationPolicy value by running the `Set-PSRepository` cmdlet.

Are you sure you want to install the modules from ‘PSGallery’?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is “N”):

Simply Answer Yes or Yes to All to continue with the installation…

The Az module is a rollup module for the Azure PowerShell cmdlets. Installing it downloads all of the available Azure Resource Manager modules, and makes their cmdlets available for use.

Download Azure PowerShell Offline Installer

Remember to like our facebook and our twitter @WindowsMode for a chance to win a free Surface laptop every month!

More Azure articles: What Is Azure Monitor? & Azure Data Studio for Windows

Juniya Sankara

Juniya Sankara

I love everything to do with Microsoft Windows, and the new Windows 10 is great so far. I love to spend my time researching on how viruses and bacteria work in my personal lab. I also enjoy history and comics.