Validating Moderan hybrid agent for Exchange fails with "The remote server returned an error: (401) Unauthorized"

Debo Ademosu 0 Reputation points
2024-10-29T16:38:13.5866667+00:00

Currently our Modern Full Hybrid configuration is failing when trying to rerun the HCW get all functionality working again.  I have exhausted all I know to try to this point.  I have rerun the wizard many times trying two different credentials both having Global and Domain Admin, Organization rights.   I have followed several articles that point to this issue to no success. Including reset the endpoint password in AD and Exchange online admin center, Deleting the endpoint connection manually, disabling windows extended protection, reviewed and bypassed conditional access policies for MFA, as well as testing using "Test-HybridConnectivity -TestO365Endpoints" which did not find any issues.  I have also updated Azure AD connect to the latest version just to cover that basis. See attached logs and screenshots for additional information.  Here are a few articles I used/referenced:

 

https://learn.microsoft.com/en-us/exchange/hybrid-deployment/hybrid-agent

 

https://www.alitajran.com/mailbox-replication-service-was-unable-to-connect-to-the-remote-server/

 

https://learn.microsoft.com/en-us/exchange/hybrid-configuration-wizard

 

https://learn.microsoft.com/en-us/exchange/plan-and-deploy/post-installation-tasks/security-best-practices/exchange-extended-protection?view=exchserver-2019#extended-protection-and-modern-hybrid-configuration

 

https://learn.microsoft.com/en-us/answers/questions/1615304/hybrid-agent-setup-failing-on-validating-hybrid-ag

 

We are running Exchange 2019 update 14 or 15.2.1544.11 on a patched 2022 Server.  All exchange roles are on this server.

Microsoft Exchange Online
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,578 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,669 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
2,135 questions
{count} votes

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.