UCPrimer
  • Tech Blog
  • About UCPrimer.com

Upgrading DirSync to Azure ADConnect (Prep for Office365 Cloud PBX)

4/29/2016

0 Comments

 
Picture
In a previous post we setup and deployed a Lync2013 environmemt for hybrid split domain with Office365. That environment was later upgraded to Skype for Business 2015 servers while retaining all the hybrid functionality such as users homed on-prem and on-line, as well as Exchange Online with UM. In preparation to deploy and move users to Office365 E5 Cloud PBX with On-Premise PSTN Connectivity, one of the first tasks is to upgrade the existing DirSync server to Azure AD Connect. The version of AAD Connect must be version 1.0.9125.0 or later. This blog posts walk through the steps required and follows the guidance provided in this Azure documentation.
Doing an in-place upgrade of Azure AD Connect will maintain existing filters and settings in the environment and is recommended for installations with less than 50,000 objects in the directory, and should take less than 3 hours. Its important to leave DirSync running while performing the upgrade so that AAD Connect will read and migrate the configuration from DirSync and autmoatically uninstall after inspecting the server. Another important consideration is that DirSync upgrade will fail if there are any unsupported DirSync changes, e.g. removed attributes and using a custom extension DLL, in which case the recommendation is to install a new AAD Connect server in staging mode and re-apply any changes using custom configuration, as described in Azure AD Connect Sync custom configuration. Before starting the upgrade, we also need NET Framework 4.5.1 to be installed on the DirSync server if its running Windows Server 2012, where simply running the Add Roles and Features wizard to add .NET Framework 4.5 is not enough, we also need to download and install the 4.5.1 update from http://www.microsoft.com/en-sg/download/details.aspx?id=40779 which does require a reboot.
We can check our DirSync version by running the following PowerShell cmdlet on the server:
(GP 'hklm:SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Online Directory Sync').DisplayVersion

To begin the in-place upgrade we first download the AAD Connect installation files from https://www.microsoft.com/en-us/download/details.aspx?id=47594 to the DirSync server, which in this lab walkthru happens to be also the Domain Controller. Launch the downloaded .msi file to start the upgrade process:
Picture
After agreeing to the license terms and clicking Continue, the wizard will analyze the current DirSync environment to determine if the ugprade can proceed. If successful, it will present us the option to proceed:
Picture
As shown in the screen, the estimated time to sync directories is under 1 hour. We click on "Next" to continue to the next stage to enter the Office365 tenant administrator credentials followed by the local AD administrator credentials:
Picture
Picture
At this point ,we are ready to perform the actual upgrade of DirSync to AAD Connect and start synchronization once the configuratio is completed:
Picture
The upgrade process will take some time and after upgrading and configuration is complete, the wizard will show a successful status as shown below:
Picture
Unlike DirSync, directory synchronization does not occur every 3 hours. Instead, with AAD Connect a pre-defined scheduler runs the synchronization every 30mins by default, but that can be changed. To start a manual delta sync, we simply start powershell on the server and import the ADSync module to run the "Start-ADSyncCycle -PolicyType delta" cmdlet as shown below:
Picture
Finally, we can verify that the sychronization is working by going to the Office365 Admin Portal under the hom page, look at the DirSync Status and note the last sync time as well as any errors as shown below:
Picture
This concludes the blog post and in the next article, we will start moving users and phones to Cloud PBX on Office365 E5.
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Picture
    Picture

    Important Links

    Microsoft Teams Docs
    Microsoft Learn

    ​Microsoft MVP Blogs

    Michael Tressler’s Blog
    Michael’s MTR Quick Tip Videos
    Jimmy Vaughan’s Blog
    Jeff Schertz
    Adam Jacobs
    James Cussen
    ​Damien Margaritis

    Archives

    September 2022
    August 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    June 2021
    April 2021
    March 2021
    December 2020
    October 2020
    September 2020
    August 2020
    April 2020
    March 2020
    February 2020
    January 2020
    December 2019
    November 2019
    October 2019
    September 2019
    August 2019
    July 2019
    March 2019
    November 2018
    October 2018
    September 2018
    August 2018
    June 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    August 2017
    July 2017
    April 2017
    March 2017
    February 2017
    January 2017
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    January 2016
    November 2015
    October 2015
    September 2015
    August 2015
    July 2015
    June 2015
    May 2015
    April 2015
    March 2015
    February 2015
    January 2015
    December 2014
    November 2014
    October 2014
    September 2014
    August 2014
    July 2014
    June 2014
    May 2014
    April 2014
    March 2014
    February 2014
    January 2014
    December 2013
    November 2013
    October 2013
    September 2013
    August 2013
    July 2013
    June 2013
    May 2013
    April 2013
    March 2013
    February 2013
    January 2013
    December 2012
    November 2012
    September 2012
    August 2012

    Categories

    All
    Edge
    Exchange 2013
    Hybrid
    Lpe
    Lync 2010
    Lync 2013
    Mobility
    Oauth
    Office365
    Polycom
    Ucs

    RSS Feed

    This website uses marketing and tracking technologies. Opting out of this will opt you out of all cookies, except for those needed to run the website. Note that some products may not work as well without tracking cookies.

    Opt Out of Cookies