Activating compatibility with AzureRM

Enable-AzureRmAlias -Scope LocalMachine

Disabling compatibility with AzureRM

Disable-AzureRmAlias -Scope LocalMachine

Reference:

Link