How to make AZ Powershell Module backwardcompatible with AzureRM

Activating compatibility with AzureRM

Enable-AzureRmAlias -Scope LocalMachine

Disabling compatibility with AzureRM

Disable-AzureRmAlias -Scope LocalMachine

Reference:

Link