Management

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 785 other subscribers

Social

  • LinkedIn
  • RSS Feed for Posts
  • Twitter
  • StumbleUpon

[Solved] : How to upgrade dirsync to AADConnect and migrate/move to a new server.

This is an example how I upgraded Dirsync to AADConnect, and how to move an old installation to a new server.

You can download AADConnect here :

https://www.microsoft.com/en-us/download/details.aspx?id=47594

Upgrade the server

Start AADConnect

Wait until the configuration is analyzed

Click Next

Use the Office 365 credentials of the administrator used in dirsync

This account must be an Enterprise Admin !

Click Upgrade

Wait until the upgrade is finshed !

After the upgrade click Exit

Export the configuration

Select File => Export

Click OK

Select the export folder and Click OK

When the export is finished, click OK copy the export folder to the new server.

Import the configuration on the new server

There are no connectors available

Click File => Import

Click OK

Select the folder where the exported configuration is saved

Fill in the AD admin credentials

Wait a few seconds

Fill in the Office 365 admin credentials

Click OK

Click OK

After installation reboot the server!

After the reboot, execute a full sync in powershell  (See below)

Disable AADConnect on the old server

Disable the Microsoft Azure AD Sync service.

It is now safe to remove AADConnect or to decommission the old server.

Force an update

Full update

Start Azure powershell;

cd “C:\Program Files\Microsoft Azure AD Sync\Bin”
.\DirectorySyncClientCmd.exe initial

Delta update

Start Azure powershell;

cd “C:\Program Files\Microsoft Azure AD Sync\Bin”
.\DirectorySyncClientCmd.exe
delta

6 comments to [Solved] : How to upgrade dirsync to AADConnect and migrate/move to a new server.

  • Tom

    The one thing you don’t detail is the install of AADConnect on the new server.. Did you use the express settings and just accept all the defaults or how did you do it?

    Thanks

    • Richard Voogt

      This installation depends on the needs of the company.
      When your not sure, or don’t need particular stuff use the express settings.
      You can change your settings, later if needed.

      • Tom

        Thanks for the reply.
        Yes, I understand that.. However, your article is about upgrading DirSync to AADConnect and then moving it to a new server.. If you are moving it to a new server and wanting the settings you just exported, how do you go about doing that?

        I’m assuming you need to fully install AADConnect but then you’ll have two servers running the sync when only one can.. On the new server, you can’t open the screen to import the settings with the service not running.. And if the service IS running then it’s trying to do syncs, right?

      • Richard Voogt

        Hi Tom,
        At the end of the installation on the new server, you can choose to activate the sync, or not.
        Don’t sync, move the database.
        Disable the old server, and than activate the sync on the new server.

        Be aware of the new way of syncing, of AADConnect :
        AADConnect

  • Hi Richard,

    Im currently running AADConnect 1.1.130.0. This instance was installed by a third party. Now I need to change the way the accounts are matching. This is configured to use the e-mailaddress, but I want to change this to the UPN.

    Do you know what will happen when I disable the sync, uninstall AADConnect en install AADConnect with other settings. Will the accounts in O365 still exist, or will those be merged when I run the new sync?

    Also I am using an external SQL database.

    I hope you can answer this shortly.

    Thanks in advance!

    • Richard Voogt

      Hi Stefan,
      Stopping the sync will not remove the users online.
      When the user settings are used correctly, a new sync will not break anything.
      Be sure to check all of your settings before removing the current sync.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.