December 2018 saw the first stable release from Microsoft of the “Az” module. The Az module replaces AzureRm which has now receive bug fixes only, any new features and/or development will take place for Az.

To check the latest version of Az, take a look at this page in the Powershell Gallery.

The new Az module allows for the cross-platform running of Azure Powershell.

The Az and AzureRm modules cannot be used side-by-side in the same scripts or Powershell sessions so the advice is to install the Az module, convert existing scripts to use the new cmdlets and then remove the AzureRm module.

To install the Az module, open a Powershell ISE or command prompt with elevated rights and then run the following:

Install-Module Az -AllowClobber

As an example, you can now use Connect-AzAccount rather than Connect-AzureRm.

To check what will be removed when uninstalling the AzureRm module, use:

The Az module includes a cmdlet to help with the removal of the AzureRm module, look here for more info on Uninstall-AzureRm.

Uninstall-AzureRm -WhatIf
Uninstall-AzureRm -WhatIf

If you’re happy with the results then go ahead and use:

Uninstall-AzueRm -PassThru

This will remove the modules and return a list of the module names.

Uninstall-AzureRm -PassThru

1 thought on “AzureRm is dead, long live Az!

  1. It’s very good that they made a replacement. We worked with Azur for a long time, and now it’s easier. Everyone who came across Azure Powershell will appreciate it))

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.