How to install the new Azure PowerShell “Az” Module

Jorge Bernhardt
Cloud Computing
June 27, 2020
This quick blog post shows how to install the new Azure Powershell Az module that replaces the AzureRM module. Before starting the installation of the module, it is important to know that Az and AzureRM modules cannot be imported in the same session or used in the same script.
Check 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:
 
  
$PSVersionTable.PSVersion
 

Install the new Azure PowerShell module

To perform the installation of the module, run PowerShell console as administrator, and then type:
 
  
Install-Module -Name Az
 

Check the version of 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

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


 
  
Uninstall-Module -Name AzureRm -AllVersions
 

If you want to know more about Azure PowerShell ‘Az’ Module, check out this link: https://www.powershellgallery.com/packages/Az/1.0.1

Jorge Bernhardt

Hi! I am Jorge Bernhardt and I have been an IT professional for almost 20 years. During this time, I have worked as a helpdesk operator, systems administrator, and cloud architect. I am specialised in Microsoft Technologies, particularly Microsoft Cloud & Datacenter solutions, Microsoft Virtualisation, and Microsoft 365. I love learning from other professionals and, when possible, share my knowledge back with the community.

https://www.jorgebernhardt.com

Related Posts

Newsletter BrazilClouds.com

Thank you! Your submission has been received!

Oops! Something went wrong while submitting the form