HOW TO MIGRATE AZURE AD CONNECT TO A NEW SERVER

Muneer Jahangeer 341 Reputation points
2023-05-19T10:39:32.91+00:00

Hello Team,

I am currently in the process of migrating Azure AD Connect from one server (Windows Server 2012 R2) to another server (Windows Server 2022).

This is my first time performing this migration, so I have sought assistance from various technical forums. After researching, I have identified two standard migration steps (described below) from a trusted source. I kindly request you to review these steps and advise me on the option that involves less risk and ensures a smooth migration. If you believe any modifications are necessary, please let me know, and I will be happy to incorporate them before proceeding further.

 

Please note:

The difference between Migration Step 1 and Migration Step 2 is that Migration Step 1 only exports only one JSON file for Azure AD Connect,

User's image

while Migration Step 2 exports sub directories as well,

 

 

I do not want to miss any configurations from the existing server, so kindly let me know which approach I need to follow.

User's image

 

 

                                                                       __Migration step: 1__
  1. On the old server, export the Azure AD Connect configuration.
  2. Install Azure AD Connect on the new server.
  3. Import the Azure AD Connect configuration on the new server.
  4. Configure the new server to use the same Azure AD tenant and directory synchronization settings as the old server.
  5. Test the new server to make sure that it is working properly.

Here are the detailed steps for each of these tasks:

Exporting the Azure AD Connect configuration.

  1. Open Azure AD Connect.
  2. Click on the Configure tab.
  3. Click on the View or export current configuration link.
  4. Click on the Export Settings button.
  5. Save the JSON file to a location on your computer.

Installing Azure AD Connect on the new server

  1. Download the latest version of Azure AD Connect from the Microsoft website.
  2. Run the Azure AD Connect installer.
  3. Follow the on-screen instructions to install Azure AD Connect.

Importing the Azure AD Connect configuration

  1. On the new server, open Azure AD Connect.
  2. Click on the Configure tab.
  3. Click on the Import synchronization settings link.
  4. Browse to the JSON file that you exported from the old server.
  5. Click on the Import button.

Configuring the new server to use the same Azure AD tenant and directory synchronization settings as the old server

  1. On the new server, open Azure AD Connect.
  2. Click on the Configure tab.
  3. In the Azure AD Tenant section, enter the same Azure AD tenant that you used on the old server.
  4. In the Directory Synchronization section, make sure that the same directory synchronization settings are configured as on the old server.
  5. Click on the Save button.

 

                                                                      __Migration step: 2__

 1.    Run the following script to export the configuration,

 

C:\Program Files\Microsoft Azure Active Directory Connect\Tools\MigrateSettings.ps1 -ServerConfiguration "c:\AdConnect"

2.       Copy the entire directory to the new staging server or just save it for backup on another server.

3.       Install Azure AD connect on a new server.

4.       Import the JSON file using “Import Synchronization settings”

User's image

      

Azure Migrate
Azure Migrate
A central hub of Azure cloud migration services and tools to discover, assess, and migrate workloads to the cloud.
720 questions
Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,693 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andy David - MVP 142.5K Reputation points MVP
    2023-05-19T11:21:31.49+00:00

    Put the old server in staging mode, then disable staging mode on the new server and monitor

    If everything is working as expected, then you can uninstall the old server and delete the Health Agent for it in Azure

    https://learn.microsoft.com/en-us/azure/active-directory/hybrid/connect/how-to-connect-health-operations#delete-a-server-or-service-instance

    3 people found this answer helpful.

3 additional answers

Sort by: Most helpful
  1. Samdi 26 Reputation points
    2023-06-25T16:33:35.0233333+00:00

    Everything is explained in the below article:

    https://www.alitajran.com/migrate-azure-ad-connect/

    2 people found this answer helpful.
    0 comments No comments

  2. Andy David - MVP 142.5K Reputation points MVP
    2023-05-19T10:59:26.7066667+00:00

    Use the wizard in AADConnect - option 1

    https://learn.microsoft.com/en-us/azure/active-directory/hybrid/connect/how-to-connect-import-export-config

    You would only use option 2 if:

    If an existing server doesn't support settings management, you can either choose to upgrade the server in-place or migrate the settings for use on a new staging server

    1 person found this answer helpful.

  3. Sophién FELKAOUI 0 Reputation points
    2023-06-14T10:11:51.37+00:00

    Hello,

    On the new server where I want to install Azure AD Connect, I unfortunately don't have the import option.

    How can I get it?

    It's a Windows server 2012 r2 datacenter server