Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.
Some article numbers may have changed. If this isn't what you're looking for, try searching all articles. Search articles

MS365 Hybrid Deployment Process

Summary: This article describes the MS365 Hybrid Deployment process.

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Instructions


Table of Contents:

  1. What is Hybrid Deployment?
  2. How Hybrid Works
  3. AAD Connect Configuration
  4. Hybrid Configuration Wizard
  5. Migrate a Mailbox in EAC
  6. Migrate a Mailbox in PowerShell

Hybrid Deployment

 

What is Hybrid Deployment?

  • It offers organizations the ability to extend the feature-rich experience and administrative control they have with their existing on-premises exchange organization to the cloud.
  • It provides the seamless look and feel of a single Exchange organization between an on-premises Exchange organization and Exchange Online in Microsoft Office 365.
 

Why Hybrid Deployment?

  • Flexibility
  • Manageability
  • On-premise customization
  • Foster real-time collaboration
  • Scalability
 

Hybrid Features and Benefits

  •  Secure mail routing between on-premises and Exchange Online organizations.
  •  Mail routing with a shared domain namespace. For example, both on-premises and Exchange Online organizations use the @contoso.com SMTP domain.
  •  A unified global address list (GAL), also called a "shared address book."
  •  Free/busy and calendar sharing between on-premises and Exchange Online organizations.
  •  Centralized control of inbound and outbound mail flow. You can configure all inbound and outbound Exchange Online messages to be routed through the on-premises Exchange organization.
  •  A single Outlook on the web URL for both the on-premises and Exchange Online organizations.
  •  The ability to move existing on-premises mailboxes to the Exchange Online organization. Exchange Online mailboxes can also be moved back to the on-premises organization if needed.
  •  Centralized mailbox management using the on-premises Exchange admin center (EAC).
  •  Message tracking, MailTips, and multi mailbox search between on-premises and Exchange Online organizations.
  •  Cloud-based message archiving for on-premises Exchange mailboxes. Exchange Online Archiving can be used with a hybrid deployment. Learn more about Exchange Online Archiving at Archive Features in Exchange Online Archiving.
 

Back to Top


How Hybrid Works

MX record is pointed to On-Premise

Linear path between inbound and outbound mail flow using hybrid connectors.

Mail Flow in Hybrid:

  1. MX record is pointed to On-Premise with disabled-Centralized Mail Flow.

    MX record is pointed to On-Premise

  2. MX record is pointed to Exchange Online with disabled-Centralized Mail Flow.

    MX record is pointed to Exchange Online with Centralized Mail Flow

  3. MX record is pointed to Exchange Online with Centralized Mail Flow.

    MX Record Enabled

 

Stages of Hybrid Exchange Deployment:

  • Adding the domain in Office 365.
  • Adding users to Office 365 using the AAD connect tool.
  • Checking and complying of the Hybrid Prerequisites.
  • Hybrid Configure Wizard deployment.
  • Migration of test mailbox(es).
  • Mail flow test.
  • Free/Busy test.

    Stages of Hybrid Exchange Deployment

 

Scope of the Hybrid Migration:

  • Pre-requisites of Hybrid Exchange Deployment must be completed by organization or the admin before proceeding with the Hybrid Exchange setup.
  • Support only guides the customer but does not perform any changes on any of the customers on-premises configuration.
  • Complete Hybrid Configuration setup assistance.
  • Once we have completed running the Hybrid Configuration Wizard, support migrates a test mailbox to Office 365. Support tests the mail flow and connectivity of Office 365 on and off premises.
  • Once it is confirmed that everything works as expected with the test mailbox, support provides a walkthrough on creating a migration batch.

 

Prerequisites for Hybrid Deployment

Outlined below are the requirements to meet before deploying the exchange-hybrid environment. If one requirement is missed, expect technical issues to occur. Errors may occur running the Hybrid Configuration Wizard, during mailbox migration or even on mail flow after deploying hybrid.

 

  1. On-Premise Exchange Server - Exchange Server build numbers and release dates.
    • Exchange 2010
      • Must be on Service Pack 3 and Rollup 29 or 30.
      • At least one server with the mailbox, Hub Transport, and Client Access server roles installed.
      • While it is possible to install the mailbox, Hub Transport, and Client Access roles on separate servers, we recommend you install all roles on each server. This provides additional reliability and improved performance.
        • Get-Command Ex-Setup | ForEach {$_.FileVersionInfo}
    • Exchange 2013
      • Must be on CU 22 or 23.
      • At least one server with the mailbox and Client Access server roles installed.
        • While it is possible to install the mailbox, Hub Transport, and Client Access roles on separate servers, we recommend you install all roles on each server. This provides additional reliability and improved performance.
          • Get-ExchangeServer | Format-List Name,Edition,AdminDisplayVersion
    • Exchange 2016
      • Must be on CU 18 or 19.
      • At least one server that has the mailbox server role installed.
        • Get-ExchangeServer | Format-List Name,Edition,AdminDisplayVersion
    • Exchange 2019
      • Must be on CU 7 or 8.
      • At least one server that has the mailbox server role installed.
        • Get-ExchangeServer | Format-List Name,Edition,AdminDisplayVersion
  2. Custom and Vanity domains to use should have been verified and added in O365. - Add a domain to Microsoft 365
  3. Azure AD Connect installed and configured for Hybrid Migration.
    • Ensure that users are synced with AD.

      Azure AD Connect installed and configured for Hybrid Migration.

  4. Obtain a third-party SSL Certificate (Certificate requirements for hybrid deployments).
    • It must not be self-signed.
    • When configuring a hybrid deployment, you must use and configure certificates that you have purchased from a trusted third-party CA.
    • The certificate must be installed on all on-premises mailbox (Exchange 2016 and newer), and mailbox and Client Access (Exchange 2013 and older) servers.
    • Hybrid deployment in organizations with Exchange servers that are deployed in multiple Active Directory forests must use separate third-party CA certificates for each Active Directory forest.
    • Wild-card certificate is supported.
    • For nonwild card, it must contain the three major services within the certificates' Subject Alternative Name (SAN):
      • Exchange FQDN - mail.company.com
      • Autodiscover - autodiscover.company.com
      • Primary-shared SMTP domain - companydomain.com

        Primary shared SMTP domain certificate

    • To verify if the certificate requirements have been met, ask for the URL of their webmail.
  5. Published Autodiscover DNS records.
    • It must be pointed to on-premises Exchange servers:
      • For Exchange 2010 and 2013 - must be pointed to Client Access server.
      • For Exchange 2016 and 2019 - mailbox Server.
  6. To test if Autodiscover is published, go to Microsoft Remote Connectivity Analyzer Outlook Connectivity.

    To test if Autodiscover is published

  7. OWA must be accessible externally.
    • Ensure that OWA is published and accessible outside of the network to avoid any issues.
    • After deployment, On-premise mailbox servers redirect Outlook web requests to either On-premise Exchange 2016 mailbox servers or provides a link to log in to Office 365.
    • Ask their OWA URL and try to check if it is accessible in your browser. If it prompted you to log in, then their OWA is accessible. There is no need for you to log in as you are just testing if the OWA is accessible on external network.
  8. Allow Office 365/Exchange Online IP address on firewall ports (443, 25 and 80).
    • The admin must create a rule in their firewall to allow or allowlist the Exchange Online IP address to ports 443, 25 and 80. This article provides the list of Exchange Online IP Addresses and ports that are required to allow or allowlist - Office 365 URLs and IP address ranges.
  9. Ensure that all Windows Patches are installed on the Server.
    • The Windows Server where the On-Premise Exchange Server is housed must be on the latest update.
    • There must be no pending Windows Server updates and ensure that all necessary updates have been installed. Hybrid Configuration Wizard only runs in Internet Explorer browser.
  10. Enable MRS Proxy Server in Exchange Server.
    • The MRS proxy must be enabled before running the Hybrid Configuration Wizard (HCW).
      • To confirm if it is enabled or not:
        • Get-WebservicesVirtualDirectory | FL server,mrs
      • To enable the MRS Proxy
        • Get-WebServicesVirtualDirectory | FL Identity,MRSProxyEnabled Or Set-WebServicesVirtualDirectory -Identity "EWS (Default Web Site)" -MRSProxyEnabled $true

 

Back to Top


AAD Connect Configuration

  1.  Create a local AD Account that is dedicated for the Azure AD Connect.
    • Choose a name that could easily distinguish that it is for Azure AD connect i.e. AADConnectuser@domain.com
    • Do not set the account or password to expire.
    • This account must be a member of Domain Users and Administrators security group.
    • This account must not be a member of Enterprise and Doman admins.
    • This account must be assigned with the "Replicating Directory Changes" and "Replicating Directory Changes All" permission in AD.
    • Reference:
  2. Install and configure the AAD Connect for a Hybrid migration. Download AAD here:
  3. Select the "I agree to the license terms and privacy notice" check box, then click Continue.

    Azure AD Connect welcome screen

  4. On the Express Settings tab, click "Use express settings" if the environment has a single Active Directory forest, otherwise click "Customize".

    Express Settings screen

  5. Select the required components that suit your environment, then click "Install".

    Installation of required components screen

  6. Select the desired user sign-in attributes, then click "Next".

    User sign-in screen

  7. To connect to Azure AD, enter the global administrator credentials and then click "Next".

    Credentials screen to connect to Azure AD

  8. Select the Directory type, then add forest directories by clicking Add Directory.

    Connect directory type and forests screen

  9. In the AD forest account pop-up screen, enter the domain credentials and click "Ok".

    AD Forest credentials screen

  10. With the Directory and Forests defined, click "Next".

    Connect directories screen with forest added

  11. On the Azure AD sign-in tab, select "Continue without matching all UPN suffixes to verified domains".

    Sign-in configuration screen

  12. Click "Next".

    AAD sign-in screen complete

  13. Select "Sync all domain and OUs", then click "Next".

    Domain and OU filtering screen

  14. Select how your users are identified, then click "Next".

    Uniquely identifying users screen

  15. On the Filter users and devices, select "Synchronize all users and devices", then click "Next".

    Filter users screen

  16. Select the desired optional features, then click "Next".

    Optional features screen

  17. On the Enable single sign-on tab, select "Enter credentials".

    Selecting the Credentials button

  18. Click "Next".

    Enter Credentials selected screen

  19. Select additional conditions if desired, then click "Install".

    Ready to configure screen

  20. Progress of configuration is displayed.

    Configuring in progress

  21. Click "Exit" when configuration is complete.

    Configuration complete screen

 

Back to Top


Hybrid Configuration Wizard (HCW)

  1. Remote into your On-premise Exchange server.
  2. Open a browser and login to the Office 365 Exchange Admin Center > hybrid. Under Exchange Hybrid Deployment, you can connect and manage both your on-premises and Exchange Online organizations. Click "Configure".

    Exchange Admin Center screen

  3.  Download and run the downloaded HCW exe file.
  4.  Follow the steps in the wizard:
    1. On the initial page, click "Next".

      HCW welcome screen

    2. The HCW detects the Exchange server automatically, unless you want to specify the server. Click "Next".

      HCW server screen

    3. Sign in to respective and global accounts for Exchange on-premises and Office 365 using the "Change" button.

      On premises exchange server screen

    4. Once the configuration information is gathered, click "Next".

      Gathering Configuration screen

    5. Select "Full Hybrid Configuration", then click "Next".

      Hybrid features configuration screen

    6. Select "Use Exchange Modern Hybrid Topology", then click "Next".

      Hybrid Topology screen

    7. Enter the local admin account, then click "Next".

      Local Admin account screen

    8. Click "Next" once the Hybrid Agent completes setup.

      Hybrid Agent performing setup screen

    9. Select the typical mail flow direction. Click "Next".

      Mail flow configuration screen

    10. The Receive Connector is also created on the same server. Click "Next".

      Receive Connector configuration screen

    11. Similar to the Receive Connector, click "Next".

      Send Connector Configuration screen

    12. Select your third-party SSL certificate. If more than one certificate is available, ensure that the ones for the Exchange Server are selected. Click "Next".

      Transport Certificate screen

    13. Enter the on-premises Exchange FQDN. This must be the same FQDN shown in the third-party SSL certificates' SAN (i.e. Mail.companydomain.com). Click "Next".

      FQDN screen

    14. Click "Update" and let it run until it completes.

      Update screen

    15. You have successfully deployed the Hybrid environment. You may start migrating mailboxes!

      Configuration complete screen

 

Back to Top


Migrate a mailbox in EAC

There are two ways to migrate an on-premises exchange mailbox:
  1. Using the interface via the Remote mailbox move tool in Exchange Admin center.
  2. Using PowerShell scripts.

Remote mailbox Move

 

Once HCW has been successfully installed without errors, you may now start moving or migrating mailboxes from on-premises Exchange to Office 365. Achieve this via the Remote mailbox Move tool available in the Exchange Admin center.

  1. Log in to the Microsoft 365 Admin portal and go to Exchange Admin Center.

    Exchange admin center

  2. In the left pane, click "Recipients", then go to the Migration tab by clicking "migration" at the top. Click the add button (Plus sign) and select "Migrate to Exchange Online".

    Exchange admin center screen

  3. On the Select a migration type page, select "Remote move migration" and then click "Next".

    Migration tab screen

  4. On the Select the users page, click the "Add" icon and select the on-premises users to move to Microsoft 365 or Office 365. Click "Add", click "OK", and then click "Next".

    User selection screen

  5. On the Confirm the migration endpoint page, verify that the FQDN of your on-premises Exchange Server is listed when the wizard confirms the migration endpoint.

    Confirmation screen

  6. On the Move configuration page, enter name in the New migration batch name field and then click "Next". (The bad item limit is for corrupted items).

    Move configuration page

  7. On the Start the batch page, select at least one recipient to receive the batch-complete report. Verify that the Automatically start the batch option is selected. You can opt to manually or automatically complete a migration batch.
    For this example, the Manual Complete the batch was selected. Click "New".

    Start batch page screen

  8. The migration progress is displayed.

    Migration progress screen

 

Back to Top


Migrate a mailbox in PowerShell

Before using the Windows PowerShell in migrating a mailbox, ensure it can connect to Exchange Online and all necessary PowerShell modules are installed.
  • To ensure you can run scripts, run below one-time only:
    • Set-ExecutionPolicy Unrestricted -Force
  • Install the modules:
    • install-module AzureAD
    • install-module MSOnline
  • Ensure your Windows PowerShell is on the latest version. As of now the latest-supported version is 5.1
  • Download and install Windows PowerShell 5.1

     

Once the Windows PowerShell is geared up, you can start migrating mailboxes using PowerShell scripts.

  1. Run Windows PowerShell in admin mode.
  2. Run the scripts below to connect to Exchange Online and Exchange on-premises.
    • $UserCredential = Get-Credential
    • $ONPREMCREDS = Get-Credential
    • $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
    • Import-PSSession $SESSION -AllowClobber
    • Connect-MsolService -Credential $UserCredential
  3. Move or Migrate a mailbox.
    • New-MoveRequest -Identity "INSERT_USER_ALIAS_HERE" -Remote -RemoteHostName hybridserver.domainname.com -TargetDeliveryDomain domainname.mail.onmicrosoft.com -RemoteCredential $ONPREMCREDS -BadItemLimit 1000
  4. Monitor the migration through the scripts below. You may select which one on the following would work for you.
    • Get-MigrationUserStatistics -Identity ex@corp.contoso.com -IncludeReport | Format-List Status,Error,Report
    • Get-MigrationUserStatistics -Identity davidp@corp.contoso.com | Format-List SkippedItemCount,SkippedItems
    • Get-MigrationUserStatistics -Identity davidp@corp.contoso.com -LimitSkippedItemsTo 20 | Format-List SkippedItemCount,SkippedItems
    • Get-MigrationUser -BatchId StagedBatch1 | Get-MigrationUserStatistics
    • Get-MigrationUser | Get-MigrationUserStatistics
    • Get-MoveRequest | Get-MoveRequestStatistics
  5. To remove a migration batch, run below:
    • Get-MoveRequest | Remove-MoveRequest

 


References:

 

Demo Video - Configuring your exchange Hybrid deployment - in a nutshell

 

Monitoring the Migration - Admins can monitor the migration through the Exchange Admin Center interface or PowerShell.

 

M365 Exchange Admin Center

 

Windows PowerShell

 

Post Migration Key points
  • Customers use their existing Outlook profile.
  • No changes made on their current mail flow (MX records, and so forth).
  • Mailbox only resides on one location.
  • To verify source set up if on hybrid, log in to EAC > Mail flow > Connectors.

    EAC screen

 


Hybrid Deployment Process

Hybrid process flow overview

 

Back to Top

Article Properties


Affected Product

Microsoft 365 from Dell

Last Published Date

10 May 2024

Version

4

Article Type

How To