Forum Discussion
Exchange Hybrid without publishing Autodiscover externally
CloudTechie I believe you can publish autodiscover externally (using the FQDN of your choice) and limit the firewall rule to only allow Exchange Online IP's (row #1's IPv4 addresses here). If you use autodiscover.<domain>.<tld>, this will increase the odds that the HCW will naturally succeed and a migration endpoint be successfully created. Even if the HCW complains that it couldn't locate Exchange on-premises due to Autodiscover service not found, you can ignore that then use Exchange Online PowerShell to set your TargetAutodiscoverEpr (i.e., full URL to your on-premises Autodiscover, ending in /autodiscover/autodiscover.svc/WSSecurity (instead of /Autodiscover/Autodiscover.xml).
You may have to redo this manual TargetAutodiscoverEpr step each time your run the HCW, as it may recreate the organization relationship object. This leads me to option B.
You can also just NOT publish Autodiscover and instead skip to updating the organization relationship in EXO, but this time just update TargetSharingEpr to be the on-premises EWS URL (which does need to be published externally, at least to the EXO IP's). Doing this will tell EXO to not bother trying Autodiscover to find on-premises Exchange, and instead just go directly to the URL in TargetSharingEpr. Again, you may have to re-set this TargetSharingEpr each time you run the HCW (check it to be sure it is still set after running HCW, set it again if it is no longer populated).
Hope this helps.
- CloudTechieJul 21, 2021Copper ContributorThanks! We are looking into it.
- selvp1Jul 07, 2022Copper Contributor
We are planning to remove External ECP url in order to restrict access from public network.
Please advice us.
- JeremyTBradshawJul 07, 2022Iron ContributorHi there,
Instructions for Exchange 2016 are here: https://docs.microsoft.com/en-us/Exchange/architecture/client-access/disable-exchange-admin-center-access?view=exchserver-2016
New instructions specific to Exchange 2019 are to use Client Access Rules instead, which is a nice new way to get familiar with since these rules can have lots of other use cases too, and they're also ready to be harnessed in EXO:
https://docs.microsoft.com/en-us/Exchange/architecture/client-access/disable-exchange-admin-center-access?view=exchserver-2019 (links to this page: https://docs.microsoft.com/en-us/Exchange/clients/client-access-rules/client-access-rules?view=exchserver-2019)