Migrate to Microsoft Entra Connect

 Migrate to Microsoft Entra Connect KB ID 0001857

Problem

You want to migrate from Microsoft Azure AD Connect to Microsoft Entra ID connect.

Let me let you into a secret, (at time of writing) Entra ID connect and Azure AD connect ARE THE SAME THING, if you go to download Entra ID connect, the file you will download is called AzureADConnect.msi. So what you want to do is, upgrade Azure AD Connect.

If your existing Azure AD connect is running on Window Server 2016 (or newer) you can simply ‘in place upgrade‘ the existing Azure AD connect to version 2 and there’s no need to migrate anything.

If you MUST Migrate, because you are deploying on a new server for example, the process is straight forward.

  • Install on New Server and put into Staging Mode.
  • Put Old Server into Staging Mode.
  • Take New Server out of  Staging Mode, (ensure there are no errors/problems).
  • Uninstall from Old Server.

Solution: Migrate to Microsoft Entra Connect

So if you simply want to perform an in place upgrade because your OS is Windows Server 2016 (or newer), use the following article.

Upgrade Azure AD Connect

If you’ve made it this far then you are WANTING to Migrate to Microsoft Entra ID Connect, or as previously mentioned migrate to Azure AD connect on another server!

Migrate to Microsoft Entra Connect Step One: Export Settings

On the Old Server, launch the Azure AD connect shortcut > Configure.

Migrate to Microsoft Entra Connect

Select  ‘View or export current configuration’ > Next.

Export Azure AD Connect Settings

Export Settings > Save them (by default in C:\ProgramData\AADConnect) > Save > Exit.

Migrate to Microsoft Entra Connect

Migrate to Microsoft Entra Connect Step Two: Import Settings

Assuming you’ve done nothing other than download the install package on the new server  > Run the installer package > Agree to the EULA > Continue.

Customise.

Custom Install Microsoft Entra ID Connect

Select ‘Import synchronisation settings > In the Location section enter \\old-server-name\c$\ProgramData\AADConnect\filename.json >  Install.

Migrate to Microsoft Entra Connect Import Settings

From this point forward I will assume you want everything set the same, so other than usernames and passwords accept the defaults > Next.

Configure Entra ID Connect Settings

Enter the password to authenticate to M365/Azure AD.

Connect to Entra ID

This next screen can be confusing because you can’t click Next, and it’s not apparent why! Next to your domain there should be a green tick, if there’s a red cross you need to select ‘change password’ > Then enter the (local AD account) account you use for synchronisation > Next.

Connect to Entra ID Directories

Next.

Entra ID Single Sign On

Both options should be ticked by default > Install.

Configure Entra ID Single

Exit.

Configure Entra ID Connect

Migrate to Microsoft Entra Connect Step Three: Put Old Server Into Staging Mode

I find this much easier to do with PowerShell, but I’ll put the graphical procedure below if you prefer. Issue the following two commands.

$aadSyncSettings=Get-ADSyncGlobalSettings
$aadSyncSettings.parameters

Locate the ‘Microsoft.synchronize.StagingMode‘ section and you will see its value is set to ‘False‘ i.e. staging mode is NOT enabled (or it’s in production mode).

Entra ID Connect Display Staging Status

To change the value to ‘True‘ i.e. enable staging mode use the following command.

($aadSyncSettings.parameters | ?{$_.name -eq "Microsoft.Synchronize.StagingMode"}).value="True"
Set-ADSyncGlobalSettings $aadSyncSettings

You can then  confirm that the staging mode value is set to ‘True’ with the following command.

$aadSyncSettings.parameters

Entra ID Connect Enable Staging Mode

Migrate to Microsoft Entra Connect Step Four: Take the New Server Out of Staging Mode

On the New Server, use the following two commands.

$aadSyncSettings=Get-ADSyncGlobalSettings
($aadSyncSettings.parameters | ?{$_.name -eq "Microsoft.Synchronize.StagingMode"}).value="False"
Set-ADSyncGlobalSettings $aadSyncSettings

You can then  confirm that the staging mode value is set to ‘False’ with the following command.

$aadSyncSettings.parameters

Entra ID Connect Disable Staging Mode

Migrate to Microsoft Entra Connect Step Five: Check for Errors

On Premises: You can look in ‘Azure AD Connect Synchronisation Service.’

Microsoft 365: The main Admin console will tell you (in the user management pane).

Entra ID Connect Sync Status M365

Microsoft Entra Admin Panel: Look under identity > Provision from Active Directory.

Entra ID Connect Sync Status

Alternate Steps to Enable Staging Mode (From GUI)

On the Old Server, launch the Azure AD connect shortcut > Configure.

Enable Entra ID Connect Staging Mode

Configure Staging Mode > Next.

Enable Entra ID Connect Staging Mode

Enter your admin password > Next.

Enable Entra ID Connect Staging Mode

Tick to select ‘Enable Staging Mode‘ > Next.

Enable Entra ID Connect Staging Mode

Configure.

Enable Entra ID Connect Staging Mode

Exit

Enable Entra ID Connect Staging Mode

Alternate Steps to Disable Staging Mode (From GUI)

On the New Server, launch the Azure AD connect shortcut > Configure.

Disable Entra ID Connect Staging Mode

Configure Staging Mode > Next

Disable Entra ID Connect Staging Mode

Enter your admin password > Next.

Disable Entra ID Connect Staging Mode

Untick to deselect ‘Enable Staging Mode‘ > Next.

Disable Entra ID Connect Staging Mode

Configure.

Disable Entra ID Connect Staging Mode

Exit

Disable Entra ID Connect Staging Mode

Migrate to Microsoft Entra Connect Step Five: Uninstall Microsoft Azure AD Connect

On the Old Server, search for appwiz.cpl > run it > Select Microsoft Azure AD Connect > Uninstall > Yes > Remove.

Uninstall Microsoft Azure AD Connect

Exit.

Uninstall Microsoft Azure AD Connect

Related Articles, References, Credits, or External Links

Locate Your Azure AD Connect Server

Azure AD Connect: Correct Or Remove Duplicate Values

Cannot Recreate Azure AD ‘Local’ AD Connector

Forcing Azure AD Connect Sync

Author: PeteLong

Share This Post On

Submit a Comment

Your email address will not be published. Required fields are marked *