When running the Exchange Hybrid Wizard for multiple domains, you may find it fails and shows you the error below:
Execution of the Get-FederationInformation cmdlet had thrown an exception. This may indicate invalid parameters in your Hybrid Configuration settings.
Federation information could not be received from the external organization.
In addition to this, if you check the Update-HybridConfiguration log file in the Exchange Logging directory, you will find that the failure occurs just after the command Get-FederationInformation is run on one of your domains.
The first test you can run is to login to Microsoft Online PowerShell and try running:
Get-FederationInformation -DomainName domain.com
If this comes back with an error, then you likely have an issue with Autodiscover. It may be that autodiscover is not configured for all your domains, which is quite a common occurrence. There are 2 traditional ways to get around this:
- Configure multiple SRV DNS records to point Autodiscover at your primary Autodiscover service
- Add all your autodiscover domains to your SAN certificate and configure A records to point autodiscover to the public facing IP of your Exchange server/s
As of Exchange 2010 SP3 UR6 and Exchange 2012 SP1 however, there is a much cleaner way of doing this.
- Make sure Autodiscover is configured and working on your Primary SMTP domain (use https://testconnectivity.microsoft.com/ to verify functionality)
- Run the HCW (Hybrid Configuration Wizard) for just your Primary domain. This should complete without issues
- Go into the Exchange Management Shell on your On Premise Exchange environment and run:
Set-HybridConfiguration -Domains domainb.com,domainc.com,domain.com,autod:domaina.com
Where domaina.com is your Primary SMTP domain. This sets your autodiscover domain for all domains to domaina.com.
- Re-run the HCW. You should now see all domains populated and the HCW should complete successfully.