Exchange 2013 Cutover Migration to M365 - unable to create migration endpoint in M365, .local AD domain

Al Doman 61 Reputation points
2023-03-06T06:25:22.06+00:00
    • On-prem Exchange 2013 CU23 + all patches, on Server 2012 R2
  • On-prem Windows domain is company.local, Exchange server hostname is srv.company.local
  • Public/external domain is company.com. The server has a valid wildcard cert for *.company.com. External DNS is configured so the server can be reached at mail.company.com on port 443
  • All Exchange virtual directory external URLs are configured to point to mail.company.com as the FQDN

Trying to create a migration endpoint in M365 for a cutover migration fails with a message "Error creating endpoint. We weren't able to connect to the remote server. Please verify the migration endpoint settings are correct...". It suggests using the Exchange Remote Connectivity Analyzer (ExRCA). That has interesting results. Testing done against "Exchange Server...Outlook Connectivity" option (as cutover migration appears to require Outlook Anywhere):

ExRCA using default AutoDiscover: connectivity test failed:

  • Testing RPC over HTTP connectivity to server srv.company.local
  • Host srv.company.com couldn't be resolved in DNS InfoDomainNonexistent

This is somewhat expected, because AutoDiscover.xml points in many places to srv.company.local.

ExRCA using manually specified server settings: Connectivity test successful with warnings:

  • RPC proxy server: mail.company.com
  • Exchange server: srv.company.local
  • Mutual authentication principal name: <blank>
  • RPC proxy authentication method: Ntlm

The warnings were about validating the cert using Root Certificate Update functionality from Windows Update, and testing the MAPI Referral Service on the Exchange Server (not sure if this is needed for a cutover migration (?))

When trying to create the migration endpoint in M365, it looks up server information based on the test mailbox address, presumably using AutoDiscover to start. This is not auto-filled, it comes up blank. However, there's the opportunity to enter the same Exchange server hostname and RPC proxy server hostname as in the ExRCA test. The same mailbox and AD user credentials were used for the endpoint and in ExRCA.

One thing I tested was enabling the MRSProxy in the EWS virtual directory. This made no difference to the inability to create the migration endpoint. I'm not sure if this needs to be enabled for a cutover migration, it seems to be related to mailbox move functions (correct me if I'm wrong).

Conceptually the simplest solution is to get autodiscover.xml to return mail.company.com instead of srv.company.local but I have zero idea how to do that - it may be generated (?)

Alternately, if there's some other setting needed on-prem to get the M365 migration endpoint to be accepted, that would be great.

Thanks for taking the time to go through all this.

Microsoft Exchange Online
Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,094 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,364 questions
{count} votes

Accepted answer
  1. Aholic Liang-MSFT 13,741 Reputation points Microsoft Vendor
    2023-03-23T10:05:52+00:00

    Hi @ Al Doman

    Great to know that you've already got of a solution and really appreciate it for your sharing!
    By the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others.". and according to the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:

    [Exchange 2013 Cutover Migration to M365 - unable to create migration endpoint in M365, .local AD domain]
    Issue Symptom:

    Trying to create a migration endpoint in M365 for a cutover migration fails with a message "Error creating endpoint. We weren't able to connect to the remote server. 

    on-prem server passes migration endpoint availability testing:

    ·         In Exchange Remote Connectivity Analyzer (ExRCA) https://testconnectivity.microsoft.com/tests/o365

    ·         In Exchange Online PowerShell (ExOPS) using the Test-MigrationServerAvailability cmdlet

    However, trying to create a new migration endpoint as part of creating a new migration batch in the web UI fails, even when using the exact same parameters as the successful tests above.

    The Workaround :

    Use ExOPS and the new migration endpoint cmdlets.

    This allows endpoints to be created with the correct parameters. Then, when creating a new migration batch in the web UI, you can bypass web UI issues by selecting this pre-existing endpoint instead of dynamically creating a new endpoint.


    You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community member's to see the useful information when reading this thread. Thanks for your understanding!

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Aholic Liang-MSFT 13,741 Reputation points Microsoft Vendor
    2023-03-07T06:35:57.45+00:00

    Hi @ Al Doman

    Error creating endpoint. We weren't able to connect to the remote server. Please verify the migration endpoint settings are correct.

    For this error, please follow these steps to verify that the configuration is correct:

    1. Make sure that the RPC proxy server is correctly set up to use specific ports to communicate with Outlook Anywhere and that the on-premises domain controllers are listening on port 6004.

    2. Make sure that the RPC proxy server is correctly set up to use specific ports to communicate with Outlook Anywhere and that the on-premises domain controllers are listening on port 6004.

    1. Verify Outlook Anywhere connectivity to the on-premises Exchange server. 
    $pscred=Get-Credential
    
    Test-MigrationServerAvailability -Credentials $pscred -ExchangeOutlookAnywhere -ExchangeServer <Internal FQDN of the Exchange server> -RPCProxyServer <FQDN of the proxyserver> -Authentication Basic -EmailAddress <AdminEmail>
    

    Please refer to this link for more information:We weren't able to connect to the remote server error - Exchange | Microsoft Learn

     

    If you are still unable to create an endpoint after performing the above steps, can you post a screenshot of the ExRCA test after anonymizing your personal information for us further research and troubleshooting?

    Thank you for your patience and understanding~


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread

    0 comments No comments

  2. Amit Singh 4,846 Reputation points
    2023-03-13T07:29:26.6566667+00:00

    Please describe in detail which test you have performed using the RCA. Select Exchange Server -> Microsoft Office Outlook Connectivity Tests -> Outlook Autodiscover to run the test.

    Besides, please refer to Perform a cutover migration of email to Office 365 and make sure you have done everything under the Prepare for a cutover migration section.

    And if the Autodiscover is OK and all those preparations are done, but the issue persists, I suspect network factors could be the cause. If you have any firewall settings, please try temporarily bypassing it at an off-work hour to see if the issue is gone.

    0 comments No comments

  3. Al Doman 61 Reputation points
    2023-03-15T05:44:43.2633333+00:00

    Thanks for your suggestions. It turns out this is a bug/inconsistency in the web-based Exchange Admin Center.

    Our on-prem server passes migration endpoint availability testing:

    However, trying to create a new migration endpoint as part of creating a new migration batch in the web UI fails, even when using the exact same parameters as the successful tests above.

    For now, the workaround is to use ExOPS and the New-MigrationEndpoint cmdlet. This allows an endpoint to be created with the proper parameters. Then, when creating a new migration batch in the web UI, this pre-existing endpoint can be selected rather than creating a new one on the fly, thus sidestepping the web UI issue.

    I've been working on this in parallel with M365 Exchange Online migration support and they've validated my findings. The support ticket is 35029447 if either of you can access it.

    0 comments No comments