The term 'Get-AzureSubscription' is not recognized as a name of a cmdlet, function, script file, or executable program

I installed Az Module with the following command, but I still get the following error.

Install-Module -Name Az -AllowClobber -Scope AllUsers
Get-AzureSubscription: The term 'Get-AzureSubscription' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Get-AzureSubscription not recognized

Any ideas?


The command to get the subscription is Get-AzSubscription.

Most Azure commands include Az, not Azure.

You might need to login first with Connect-AzAccount, and logging in through the browser popup.

Sign in with Azure Powershell - Microsoft