How To Install and Update Azure PowerShell on Windows Machine?
Last Updated :
16 Jul, 2023
Pre-requisite: Azure
Azure PowerShell is a command-line tool that allows you to manage Azure resources from the command line. It is a powerful tool that can be used to automate tasks, provision resources, manage users and policies in Azure a,d also for troubleshooting problems. Actually, Azure PowerShell is built on top of Windows PowerShell, so if you are familiar with PowerShell, you will be able to pick up Azure PowerShell quickly.
To install this we will be using PowerShellGet which is a module that allows you to install PowerShell modules from the PowerShell Gallery. Follow the steps to get started.
Steps to Install Azure PowerShell on Windows Machine
Step 1: To install Azure PowerShell using PowerShellGet, you need to open PowerShell as an administrator.
Step 2: Verify PowerShell Version
Make sure that you are running a supported version of PowerShell. The minimum supported version is PowerShell 5.0 and above. Run the following command to check the PowerShell version:
$PSVersionTable.PSVersion

Step 3: Run the following command to set the PowerShell execution policy to remote signed >> Select ‘Y’ to proceed.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Step 4: Run the following command to install the latest version of the Az PowerShell module.
Install-Module -Name Az
This will install the latest version of the Az PowerShell module.
or
Run the following command to install the latest version of the Az PowerShell module to PSGallery Repository at force. For this NuGet provider is required if it ask for NuGet provider type ‘Y’ to continue.
Install-Module -Name Az -Repository PSGallery -Force
This process takes around 15-20 minutes to install all the Az module packages wait until it gets completed and then proceed to Step 5.
Step 5: Once you have installed Azure PowerShell, you can use this command to verify the installation:
Get-InstalledModule -Name Az -AllVersions | select Name,Version

You can also verify the installation by running the following command by connecting your Azure Account:
Connect-AzAccount
Next, you will get a Microsoft Azure popup to sign in interactively >> Enter your Azure username and password to get started.
How to Update the existing Azure PowerShell Modules on Windows Machine?
To Update Az Modules you need to just run the following command to update Az modules.
Update-Module -Name Az -Force

Troubleshooting Installation or Update Issues
If you are having problems installing or updating Azure PowerShell, Check the system logs for any errors that might have occurred during the installation or update process. Try uninstalling and reinstalling Azure PowerShell. Make sure that you have the latest version of the PowerShellGet module installed. You can install the PowerShellGet module by running the following command. Run this command only when needed.
Install-Module -Name PowerShellGet -Force
Similar Reads
How to Install MMA Agent for a Windows Virtual Machine using PowerShell?
Pre-requisite:- Azure Here in this article, we will show how to add or install MMA Agent on a Windows Virtual Machine in Azure using PowerShell. Before diving into the process let's know what an MMA agent is. MMA Stands for Microsoft Monitoring Agent can be configured to collect the performance logs
2 min read
How to Install Linux on Windows PowerShell Subsystem?
There are several ways to Install a Linux subsystem on your Windows PC Powershell Environment. It is good for learners, but it is recommended using original Linux OS if you are a developer as the Subsystem lacks the pre-installed Linux tools. Before we begin installing a Linux subsystem, we need to
2 min read
How to Install and Connect to Azure AD with PowerShell?
Azure Active Directory (Azure AD) is a service for managing identities and access in the cloud. This solution facilitates access to thousands of additional SaaS applications, the Azure portal, and external resources like Microsoft 365 for your staff members. What is Azure Active Directory (AD)?Azure
4 min read
How to Install and Use NVM on Windows
NVM or Node Version Manager is a command-line tool that allows developers to manage multiple versions of Node.js on a single machine. This function offers the flexibility to work on different projects and versions of Node.js. In this guide, we'll walk you through the steps to install and use NVM on
3 min read
How to Install Power ISO on Windows
Are you looking to install Power ISO on Windows? Power ISO is a popular tool used for managing, editing, and creating disk image files like ISO, BIN, and others. Whether you're trying to download Power ISO for the first time or need a quick refresher on how to set it up, this guide will take you thr
4 min read
How to Upgrade PowerShell in Windows
Upgrading PowerShell on Windows ensures access to new commands, enhanced security features, and better compatibility with modern scripts and tools. Whether youâre using it for system administration, automation, or development, staying up to date can make a significant difference. In this guide, weâl
6 min read
How to Install OMS Agent for a Linux Virtual Machine using PowerShell?
Pre-requisite:- Azure Here in this article, we will show how to add or install OMS Agent on a Linux Virtual Machine in Azure using PowerShell. Before diving into the process let's know about what an OMS agent is. OMS Stands for Operations Management Suite Agent can be configured to collect the perfo
2 min read
How to Install Power BI on Windows?
Power BI: Power BI is an analytical software which is developed by Microsoft. BI means business intelligence. It is available only for Windows operating system. It was first released in 2011 and its stable release was in 2021. It is used for a variety of purposes like data visualization, data mining
2 min read
How To Use Bash Shell Natively On Windows 10
Did you know you can use Linux right inside your Windows 10 computerâwithout needing a separate Linux setup? Thanks to a feature called Windows Subsystem for Linux (WSL), you can now open a Bash shell, run Linux commands, and manage your projects easily. This guide will help you set up and use the B
3 min read
How to Download and Install Postman on Windows?
Postman is a platform for building and using APIs and helps for simplifying the steps in the APIs lifecycles to streamline collaboration for creating faster APIs. It includes various API tools to accelerate the development cycle, including the design mockups and testing documentation, etc. Postman w
2 min read