How To Install Azure PowerShell on Windows
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:
To use Azure PowerShell in PowerShell 5.1 on Windows:
- Update to Windows PowerShell 5.1 if needed. If you’re on Windows 10, you already have PowerShell 5.1 installed.
- Install .NET Framework 4.7.2 or later.
- Make sure you have the latest version of PowerShellGet, run the following command:
Update-Module PowerShellGet -Force.
Download Azure PowerShell Offline Installer
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:
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.