ISSUE: Unexpected authentication failure when using O365 admin account

Last modified:


Overview

When EV Complete running command that require O365 Admin account you may see following error in the EV Complete Exchange log file:

2023-03-24T09:33:15|WARN |192.168.21.254|T:103|PsBaseWrapper             | ||0    |66ae3a2c-b9aa-430e-9997-b4eeb43fb390| ||Failed to establish the connection to MSOnline Powershell.Error msg: Authentication Error: Unexpected authentication failure.
2023-03-24T09:33:15|ERROR|192.168.21.254|T:103|PsBaseWrapper | ||0 |66ae3a2c-b9aa-430e-9997-b4eeb43fb390| ||Initialization failed for cloudficient.cloud@contonso.com|MSOnline
EXCEPTION: System.Exception: Failed to establish the connection to MSOnline Powershell. Error msg: Authentication Error: Unexpected authentication failure.
at cloudficient.Common.Powershell.PsBaseWrapper.InitMSOnlinePowershellSession(RunspacePool runspacePool)
at cloudficient.Common.Powershell.PsBaseWrapper.InitSession(SessionPoolType type, Sessions sessionPool)
at cloudficient.Common.Powershell.PsBaseWrapper.InitSessionPool(SessionPoolType type)

Solution

This error is caused by wrong credentials (account or Password) being store in the credential editor. Update the credentials for O365 admin account and restart Remad.Exchange service.


Is this article helpful for you?