Skip to main content
Jorge Bernhardt Jorge Bernhardt
  1. Posts/

How to install the new Azure PowerShell "Az" Module

·206 words·1 min· 100 views · 5 likes ·
AZ Azure PowerShell Get-InstalledModule Install-Module

This quick blog post shows how to install the Azure Powershell Az module that replaces the AzureRM module. Before starting the module’s installation, it is important to know that Az and AzureRM modules cannot be imported in the same session or used in the same script.

Check the Powershell version installed>

Check the Powershell version installed #

The new Azure module requires PowerShell version 5.1 or above installed on your computer. To check the version of PowerShell running on your machine, run the following command:



Install the new Azure PowerShell module>

Install the new Azure PowerShell module #

To install the module, run the PowerShell console as administrator, and then type:

Install-Module -Name Az

Az Module

Check the version of the AZ module installed>

Check the version of the AZ module installed #

If you want to check or verify that the module is installed, use the following command:

 Get-InstalledModule -Name Az


Uninstall the AzureRm Modules>

Uninstall the AzureRm Modules #

To uninstall an installed version of the AzureRm module, use the following command:

Uninstall-Module `
    -Name AzureRm `

Thanks for reading my post. I hope you find it useful.

If you want to know more about the Azure PowerShell ‘Az’ Module, check out this link.