Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

How to install and Update Azure PowerShell on your Windows PC

Posted on 09/04/202015/09/2026 Christian By Christian No Comments on How to install and Update Azure PowerShell on your Windows PC
  1. Home
  2. AWS/Azure/OpenShift
  3. How to install and Update Azure PowerShell on your Windows PC
install Azure PowerShell

Azure PowerShell is a powerful tool for managing and administering Azure resources directly from PowerShell. It is ideal for building automated workflows and managing resources using the Azure Resource Manager model. Please see How to find out who restarted Windows Server, How to Search Group Policy for a Specific Setting in Windows 10 and Windows 11, and how to fix “This installation package could not be opened, Verify that the package exists and that you can access it“.

Azure PowerShell is preinstalled in Azure Cloud Shell and can be installed locally on your machine. The module replaces AzureRM and is designed to be used with PowerShell 7 on all platforms, including Windows, Linux, and macOS.

Install Azure PowerShell module on Windows

Here are the steps to install the Azure PowerShell module on Windows.

  • Install the Azure PowerShell modules using PowerShellGet (best method).
  • By installing (importing) windows module for PowerShell
  • By installing Azure PowerShell modules with the MSI

Note: Azure PowerShell is also available in Azure Cloud Shell and is now preinstalled in Docker images.

Example 1: Install the Azure PowerShell module

Update Azure PowerShell

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 with the untrusted repository as shown above.

Answer Yes or Yes to All to continue with the installation.
Windows PC

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.

Example 2: Install Azure PowerShell on Windows with MSI

The MSI installer is provided for environments where the PowerShell Gallery may be blocked by a firewall, or an offline installer is needed.

Prerequisite

Ensure the following requirements are met before proceeding with the MSI installation.

  • MSI installer on Windows is designed to install Azure PowerShell for PowerShell 5.1 only.

For installation on non-Windows platforms or later versions of PowerShell, see https://docs.microsoft.com/en-us/powershell/scripting/gallery/installing-psget?view=powershell-7

  • Update to Windows PowerShell 5.1 if you are running a lower version.
  • Ensure .Net Framework 4.7.2 or later is running on your PC.

Download the MSI package for Azure PowerShell from GitHub

You can down the 64bit installer and after it has been downloaded. Double click on it to continue with the installation, accept the License agreement and and click on Install to install Azure PowerShell to your device.

Microsoft Azure PowerShell setup window displaying the license agreement with an option to accept terms.

To start working with Azure PowerShell, sign in with your Azure credentials.PowerShell. The below cmdlets will ensure an you connect to Azure with an interactive dialog for sign-in

Connect-AzAccount

Update Azure PowerShell Module

Furthermore, To update any Azure PowerShell module, you should use the same method you used to install the module. For example, if you originally used Install-Module, then you should use Update-Module to get the latest version.

Update-Module -Name Az

If you originally used the MSI package to install Azure PowerShell, then you should download and install the new MSI package as shown above.

Another method

However, Install the Azure PowerShell modules using PowerShellGet. On how to install PowerShellGet, see https://docs.microsoft.com/en-us/powershell/scripting/gallery/installing-psget?view=powershell-7

Moreover, This method works on macOS, Linux, and Windows as well.

Prerequisite

In addition, Ensure you have the latest version of PowerShellGet, which can be installed by running the command below.

Requires PowerShell 5.1 or higher. We currently have a PowerShell version 7 at the time of this writing. If you currently have PowerShell lesser than 5.1.

PLEASE update PowerShell and install .Net Framework higher or equal to 4.7.2 before running the command below. To check the version of PowerShell, run the command below

$PSVersionTable.PSVersion

Then run the cmdlet below to

Update-Module PowerShellGet -Force

This is the preferred method for installing Azure PowerShell.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
AWS/Azure/OpenShift Tags:Azure, Microsoft Windows, PowerShell

Post navigation

Previous Post: Create a self-signed certificate and export it in PFX format via PowerShell [Part 1]
Next Post: How to change the speller and proofing language in PowerPoint

Related Posts

  • ADV Guide 1 e1782748488737
    Azure Virtual Desktop: Deploy host pools and session hosts in the Azure [Part 01] AWS/Azure/OpenShift
  • S3 Bucket Replication
    Set up Cross-Region Replication for S3 Buckets AWS/Azure/OpenShift
  • amazon ec2 multiple ips 1
    What to note before assigning Multiple IPs’ to an Instance AWS/Azure/OpenShift
  • Continuous Deployment Pipeline Using AWS CodePipeline
    Setup a Continuous Deployment Pipeline with AWS CodePipeline AWS/Azure/OpenShift
  • Route53AWS
    Set up and configure Route 53 for your Domain in AWS AWS/Azure/OpenShift
  • create a new Azure SQL Database
    How to create a new Azure SQL Database [PaaS] AWS/Azure/OpenShift

More Related Articles

Docker Guide Pull and Deploy Nginx Container Images from Docker Hub AWS/Azure/OpenShift
Setup FSx File System 1 Create and mount FSx File System: Join EC2 instance to AWS Managed AD AWS/Azure/OpenShift
azure file share feature image Deploy Legacy App to Azure Fileshare AWS/Azure/OpenShift
ADV Banner 5 1 e1782734675746 Azure Virtual Desktop: Autoscaling Implementing and Monitoring Session Hosts [Part 05] AWS/Azure/OpenShift
intro to azure cloud shell The Overview of Azure Cloud Shell AWS/Azure/OpenShift
Azure Backup Copy 1 How to Delete Backup Job in Recovery Services Vault AWS/Azure/OpenShift

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • powershell
    How to install the Microsoft PSWindowsUpdate module silently Scripts
  • hero windowsadmincenter
    How to set up Windows Admin Center on a Windows Server Windows Server
  • Azure VMware Solution Private Cloud
    How To Deploy Azure VMware Solution Private Cloud AWS/Azure/OpenShift
  • Data drive is locked by BitLocker and not OS drive Fastboot Option
    Fast Boot Options: Fix specific Drive issue with BitLocker [MBAM] Windows
  • unnamed
    How to start an application automatically on Mac Mac
  • WSUS Analysis and Initial Assessment
    Preliminary Guide for WSUS Analysis and Initial Assessment Windows Server
  • Featured image MSDT.
    How to restrict additional Microsoft Support Diagnostic Tool Downloads on Windows Windows
  • Determine GPO from GUID or Name
    How to determine GPO from GUID or Name Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,746 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.