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 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:
1 2 3 | $PSVersionTable.PSVersion |
Install the new Azure PowerShell module
To install the module, run PowerShell console as administrator, and then type:
1 2 3 | Install-Module -Name Az |
Check the version of the AZ module installed
If you want to check or verify that the module is installed, use the following command:
1 2 3 | Get-InstalledModule -Name Az |
Uninstall the AzureRm Modules
To uninstall an installed version of the AzureRm module, use the following command:
1 2 3 | 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