Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » AWS/Azure/OpenShift » How to install and Update Azure PowerShell on your Windows PC

How to install and Update Azure PowerShell on your Windows PC

Posted on 09/04/202011/09/2023 Christian By Christian No Comments on How to install and Update Azure PowerShell on your Windows PC
install Azure PowerShell

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
– Down the 64bit installer and after it has been downloaded
– Double click on it to continue with the installation
– Accept the License agreement and
– Click on Install to install Azure PowerShell to your device.

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.

Rate this post

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
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
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

  • AWS Scheduled Events
    View Scheduled Events on AW using AWS Web Console and CLI AWS/Azure/OpenShift
  • Storage Explorer
    How to Install Azure Storage Explorer on Windows AWS/Azure/OpenShift
  • Webp.net resizeimage 5
    How to create a Traffic Manager Profile in Azure AWS/Azure/OpenShift
  • azure cost analysis
    Cost Management in Azure Using Cost Analysis Tool AWS/Azure/OpenShift
  • Amazon
    Import Virtual Machines to AWS as AMI AWS/Azure/OpenShift
  • Webp.net resizeimage 3 1
    How To Configure VM Update Management on Azure Stack Hub AWS/Azure/OpenShift

More Related Articles

AWS Scheduled Events View Scheduled Events on AW using AWS Web Console and CLI AWS/Azure/OpenShift
Storage Explorer How to Install Azure Storage Explorer on Windows AWS/Azure/OpenShift
Webp.net resizeimage 5 How to create a Traffic Manager Profile in Azure AWS/Azure/OpenShift
azure cost analysis Cost Management in Azure Using Cost Analysis Tool AWS/Azure/OpenShift
Amazon Import Virtual Machines to AWS as AMI AWS/Azure/OpenShift
Webp.net resizeimage 3 1 How To Configure VM Update Management on Azure Stack Hub AWS/Azure/OpenShift

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

Veeam Vanguard

  • How to install and configure a Standalone DNS Server
    How to Install and Configure a Standalone DNS Server Windows Server
  • Deploy BitLocker on Windows Server manually
    Install BitLocker on Windows Server via the Server Manager Windows Server
  • azure app service with office 365 and yammer sharepoint saturday florence 2015 session 8 638
    WordPress site on Azure: How to create a website hosted in Azure Oracle/MSSQL/MySQL
  • what is winrm
    Determine Windows PowerShell version and see if WinRM is running via Test-WSMan Windows Server
  • Windows Server 2019
    The virtual machine has terminated unexpectedly during startup with exit code 1 (1×0): Failed to open a session for the virtual machine Windows Server 2019 Virtualization
  • microsoft ntlm2
    NT LAN Manager: How to prevent NTLM credentials from being sent to remote servers Security | Vulnerability Scans and Assessment
  • How to Turn Off Windows 11 Tips and Suggestions Notifications
    How to Turn Off Windows 11 Tips and Suggestions Notifications Windows
  • images
    Query MBAM to display the BitLocker Recovery report Network | Monitoring

Subscribe to Blog via Email

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

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

Tags

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

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.