PowerShell won't accept my Azure credentials

Project Pluto 1 Reputation point
2020-10-05T14:27:59.58+00:00

I'm trying to get rid of AD Connect settings in Azure. Support has given me this link +, however, PowerShell won't accept my credentials as provided in step 3. The credentials are correct, I've checked, and they work fine for logging in to Azure through the web portal. I've tried the address of my MS account, and also the "onmicrosoft" variation, no success.
The first error message (MS account) was:
connect-msolservice : Authentication Error: Bad username or password. In Zeile:1 Zeichen:1 + connect-msolservice -credential $msolcred + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: (:) [Connect-MsolService], Exception + FullyQualifiedErrorId : System.Exception,Microsoft.Online.Administration.Automation.ConnectMsolService

The second one:
("onmicrosoft" address, same PW): connect-msolservice : Authentication Error: Unexpected authentication failure. In Zeile:1 Zeichen:1 + connect-msolservice -credential $msolcred + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: (:) [Connect-MsolService], Exception + FullyQualifiedErrorId : System.Exception,Microsoft.Online.Administration.Automation.ConnectMsolService

I don't know whether it matters, but it is a free trial Azure account, and there is no active O365 subscription, just the basic access to office.com that comes with the account. Any ideas?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,420 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. 2020-10-05T18:31:40.61+00:00

    Are you trying to login using a personal (outlook, hotmail, etc) account? Those are not supported.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.