I have the same challenge - there does not seem to be any Cmdlet in the AzureRM module for it version 4.2.0: Get-Command set-.subscription.Module AzureRMSubscription objects returned by Get-AzureSubscription (Azure module) are obviously different from those returned by the GetAzureRmSubscription - ie there's not a IsDefault property on the ARM-ones.Following the mindset of 4c74356b41 you could add a less 'disturbing' line in your profile: $PSDefaultParameterValues'Login-AzureRmAccount:SubscriptionName' = 'my subscriptionName'.
My Azure subscription is associated with an MS Live account, which was later also included in the AD Directory of my old company, but although apparently disabled there when I left was still available in the list of Directories in Azure Portal. I have inadvertently switched to it and since then remain locked out of Azure Portal.The steps are:. go to portal.azure.com. enter account name / email. enter password. click Yes to Stay Signed in.now I start getting, the URL being microsoftonline.com and one of the parameters actually what I think is the name of the tenant of the old company.This message blinks for about half a dozen times, interleaved with a white screen to login.live.com.
finally the appears and stuck there.So I work my way though 5(!) Azure support teams passing it to each other by now, but no resolution yet. Is there any process that I could do on my side to switch back to whatever the default Directory for a Live/personal account in Azure Portal should be and log back in?I can log into the Account portal just fine. Thanks for replying!
It is just one account, the account is my personal email address at a public server, such as Google Mail or so. It does not correspond to that company domain but is a MS Live/personal account. They just had to add it to their AD somehow, then locked it when I left? I can now see their Directory / Tenant name being passed to login.microsoftonline.com during the sign-in sequence, but that ends in the Account Locked error.
Change Default Directory Azure
Switch subscription offer. Sign in at Azure Account Center. Select your Pay-As-You-Go subscription. Click Switch to another offer. The button is only available if you're on Pay-As-You-Go and done with your first billing period. Select the offer you want from the list of offers your subscription can be switched to. Once you complete the above, you will have set the current azure subscription context Login via PowerShell I like to use the Windows PowerShell ISE console app because I find it more friendly, but choose you own approach.
Note that I can log into the Azure Accounts portal just fine, the password verification appears to pass every time. Yes I tried clearing cookies etc.–Jan 14 at 3:53. Thanks for the info. I’m a little confused on what symptoms you are experiencing. You shouldn’t be redirected to your company’s directory unless you enter an email address that is part of their domain. Perhaps I’m overlooking the obvious, but it may be more beneficial for you if you could your post outlining the actual process and steps you are following and the results you are seeing.
Screenshots would help a lot, with the obvious redaction of private info. Please take us step by step through the logon process.–Jan 14 at 4:24. I've updated the description with steps and screenshots. I keep getting suggestions from Microsoft Azure Technical support to reset my password but I believe that the fact that I can log into the account.azure.com portal no problem, and also that I passed the password screen and got the the 'Stay signed in' dialog is kind of contrary to this explanation. Also eventually I should not see that other company tenant (name or id) anywhere in the process, but it always comes up in the URL in screen 1.–Jan 14 at 6:02.
Internally Microsoft calls the tenant for these MS Live accounts 'Outlook tenant' because they are there with the 'Outlook' accounts but that's all that I can find out, not it's name or ID. So the resolution was finally, in order for me to be able to use the url above, to create a fresh new 'company' tenant, add my azure account to it and then switch to it when logging in from the default directory causing the problem by navigating to the above link after you've been signed in but before you are redirected to the portal itself, in a new tab while waiting for the Stay signed In dialog. Phew!–Jan 25 at 4:24.