In this article, we are going to the see the steps required to install the Azure PowerShell Module on your local machine. Azure PowerShell contains sets of modules that provide multiple cmdlets to manage Azure with Windows PowerShell. You can build automation scripts for Azure resources. There are two different ways to manage Azure resource through cmdlets. They are,
- Azure CloudShell - This can be accessed in the browser.
- Azure PowerShell - This can be installed on the local computer.
Azure PowerShell contains sets of modules that provide multiple cmdlets to manage Azure with Windows PowerShell. You can build automation scripts with Azure resources.
Click here for detailed information about Azure cloud Shell.
Installing the Azure PowerShell Module
You can install the Azure PowerShell module from PowerShell Gallery. It is the central repository for PowerShell content where you can find the latest PowerShell modules and commands.
Step 1
Open the WindowsPowerShell ISE and run the following command to verify whether the PowerShell Get-Module is available on a local machine. You need to verify because to install any module from PowerShell Gallery, you need the PowerShellGet Module,
Get-Module PowerShellGet -list | Select-Object Name,Version,Path

If the PowerShell Get-Module is not installed on your system, click here to install the PowerShellGet Module.
Step 2
To install the Azure PowerShell module, run the following command. Make sure that the Windows PowerShell ISE is opened in "run as administrator” mode.
Install-Module AzureRM -AllowClobber

By default, the PowerShell gallery is not configured as a Trusted repository for PowerShellGet. Click on “Yes to All” to continue with the installation.
Step 3
We need to import the AzureRM module to the PowerShell session. By importing this module you can use the AzureRM cmdlets,
Import-Module AzureRM

Step 4
Run the following command to verify whether the AzureRM Module is installed successfully on your local machine,
Get-Module AzureRM -List | Select-Object Name, Version, Path

Now you can test, deploy, and manage the Azure Resources using AzureRM module cmdlets.
These are the steps to install the Azure PowerShell Module in your local machine. Feel free to fill up the comment box below if you need any assistance.

Vikram NandaPosted Nov 11, 2022, 7:26 PM
It started installing after adding command at the end "-AllowClobber" . command is Install-Module AzureRM -AllowClobber
Ramkumar DabbeeruPosted Jul 23, 2020, 4:07 PM
Currently, I have AzureRm module installed in PowerShell, and Az module in PowerShell Core 6. What should I do in order to install Az modules in PowerShell ISE.
Bikram SandhuPosted May 7, 2019, 8:08 AM
Az : The term 'az' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.At line:1 char:1 I am getting this error+ az + ~~ + CategoryInfo : ObjectNotFound: (az:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
Muthu KumarPosted Aug 28, 2018, 1:14 AM
Nice Article.
Hadshana KamalanathanPosted Aug 26, 2018, 11:24 AM
Nice article...
Abhishek MishraPosted Aug 24, 2018, 11:02 AM
Good one. Azure Powershell is a great for Azure deployments. Highly used more than Azure portal atleast in the project s I have seen.