(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:

  1. Connect to Azure Active Directory (Azure AD) by using Windows PowerShell. For more info about how to do this, see Manage Azure AD using Windows PowerShell.

  2. Run the following command:

    Set-MsolDirSyncEnabled -EnableDirsync $true
    

Still need help? Go to Microsoft Community or the Exchange TechNet Forums.