Yes, I do have more than one.
But before getting to that, when you start a PowerShell Azure session, login like this (in a “proper” environment you might have a secured credentials file):
This is the THE way to log in. Just do it. And notice the presence of RM for Resource Manager. Where there is a “with-RM” option, always take that, as alternative verb-nouns which do not include RM will tend to refer to the so-called “Classic” Azure components, aka Legacy, aka deprecated.
Moving on… I have more than 1 subscription:
I found that no permutation of Set-AzureSubscription actually set my subscription to the requested one, even though it claimed it had. For me at least, only this worked:
So, got that?
Login to your account: [Add–AzureRmAccount]
Set your subscription to the required one: [Set-AzureRmContext]
And while on the basics, if PowerShell fails to recognise these commands, then run
to pick up both Resource Manager and Classic modules.
Later… turns out that Login-AzureRmAccount is just an alias for Add–AzureRmAccount