"Unable to determine the routing domain for the cloud organization" error when running Hybrid Configuration wizard
Original KB number: 3068010
Symptoms
When you run the Hybrid Configuration wizard, you receive an Unable to determine the routing domain for the cloud organization error message. The full text of this message resembles the following:
ERROR:Updating hybrid configuration failed with error 'Subtask CheckPrereqs execution failed: Check Prerequisites
Microsoft.Exchange.Data.Common.LocalizedException: Unable to determine the routing domain for the cloud organization.
Unable to determine the routing domain for the cloud organization.
at Microsoft.Exchange.Management.Hybrid.Engine.ExecuteTask(ITask taskBase, ITaskContext taskContext)
Resolution
Enable directory synchronization. When directory synchronization is enabled, the routing domain is created. To enable directory synchronization, follow these steps.
Note
Azure AD and MSOnline PowerShell modules are deprecated as of March 30, 2024. To learn more, read the deprecation update. After this date, support for these modules are limited to migration assistance to Microsoft Graph PowerShell SDK and security fixes. The deprecated modules will continue to function through March, 30 2025.
We recommend migrating to Microsoft Graph PowerShell to interact with Microsoft Entra ID (formerly Azure AD). For common migration questions, refer to the Migration FAQ. Note: Versions 1.0.x of MSOnline may experience disruption after June 30, 2024.
Connect to Microsoft Entra ID by using Windows PowerShell. For more information about how to do so, see Connect to Microsoft Entra ID.
Run the following command:
Set-MsolDirSyncEnabled -EnableDirsync $true
Still need help? Go to Microsoft Community or the Exchange TechNet Forums.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for