Use this option to select your default subscription:
Select-AzureSubscription -Default -SubscriptionName "My Production (Pay-As-You-Go)"
You can also use -SubscriptionId (and GUID) instead of a name.
For more information about the Select-AzureSubscription ; type Get-Help Select-AzureSubscription .
If this does not work, try first before choosing your subscription:
Add-AzureAccount
Update if you are still encountering a problem:
If you are using AzureRM / with old cmdlets (or just AzureRM) and still run into problems, I highly recommend that you check if you have multiple versions of the AzureRM.Profile module. I came across this many times when one version is installed in Program Files and another under my user profile (or somewhere else in PSModulePath).
To find out which modules / versions are installed:
Get-Module AzureRm.Profile -ListAvailable
If you have multiple instances and versions of this, this may create some problems with some of your cmdlets.
source share