Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.7k views
in Technique[技术] by (71.8m points)

azure - Error - Connect-MsolService : Your credentials could not be authenticated. Try again

In Powershell, I executed the below cmdlets

Connect-MsolService

Getting error like below

Connect-MsolService : Your credentials could not be authenticated. Try again
or contact Technical Support.
At line:1 char:1
+ Connect-MsolService
+ ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [Connect-MsolService], Mic
   rosoftOnlineException
    + FullyQualifiedErrorId : 0x80048820,Microsoft.Online.Administration.Autom
   ation.ConnectMsolService

I am giving the credentials of Azure portal account, what is wrong with this ? What credentials should I give ?

Tried below link:

https://msdn.microsoft.com/library/azure/jj151815.aspx#BKMK_connect -- I have latest version of MSOL libraries.

https://support.microsoft.com/en-in/kb/2412085 -- I am able open the azure management portal.

The below link says "Enter the user name and password of your B2C tenant administrator account."

https://azure.microsoft.com/en-us/documentation/articles/active-directory-b2c-devquickstarts-graph-dotnet/

I am using the username, that is co-administrator for the Azure Portal. Is it possible the co-administrator can connect to the MSOL Services.

Please suggest.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I had excatly the same problem. I solved it with creating a new Global Administrator as already mentioned.

Just wantend to state that:

-this must be done in the old portal, not the new one

-adding a native account to that AAD B2C, guest accounts do not work


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...