Reputation: 19598
When I am trying to run Get-AzureRmResourceGroup
powershell command, I am getting an error like this.
I am able to execute Connect-AzAccount
command and I am able to login to my subscription.
Upvotes: 0
Views: 412
Reputation: 28204
You need to use compatibility mode with cmdlet Enable-AzureRmAlias to enable AzureRm prefix aliases for Az modules.
By Default, This cmdlet will enable AzureRM aliases in the Az module for the current PowerShell session. You also could add Scope
parameter like this.
Enable-AzureRmAlias [-Module <string>] [-Scope Process | CurrentUser | LocalMachine]
Ref: Azure PowerShell – Cross-platform “Az” module replacing “AzureRM”
Upvotes: 3