Wednesday, December 16, 2020

Welcome to Azure PowerShell Az module, goodbye to AzureRM

As outlined on Overview of Azure PowerShell (AzureRM) - Microsoft new recommends you to use the Az PowerShell module (released in October 2018) to interact with Azure.

The Azure Az PowerShell module  introduces a number of benefits such as shorter commands, cross-platform support and increased stability.  From a supportability perspective, the AzureRM module is still officially maintained and will receive critical fixes through February 2021. I recommend keeping tabs on the supportability section of the Azure Az PowerShell module documentation page as this date has already shifted.

When you first start to use the connect-AzAccount - you might receive a warning that you still have the old AzureRm modules installed. If you have installed the AzureRM PowerShell modules using a MSI package, you must uninstall it through the Windows system rather than using PowerShell


A nice enhancement is the warning around having multiple Azure subscription linked to the account that you use to login  (something quite common for cloud consultants)  - as outlined in the warning  you can use  Set-AzContext to select another subscription.


References:

No comments: