Saturday, August 6, 2016

Azure AD Connect 1.1: Forcing a Synchronization

When a new Azure Active Directory synchronization tool or a new version of an existing tool is released, there´s also a good chance the synchronization interval scheduling method changes, which again means that the way in which force a synchronization changes as well.

Guess what? This is no different for the recently released version 1.1 of the Azure AD Connect (AAD Connect) tool, which by the way brings several significant changes and improvement with it as you can read in the blog post, I link to.

With AAD Connect 1.1, we no longer have a Windows scheduled task running every 3 hour. Now the tool has a built-in scheduler, which by default performs a delta sync every 30 minutes. You can change this interval schedule, however bear in mind that 30 minutes is the lowest interval supported.

Although a synchronization now runs every 30 minutes, there may be occasions, where you still want to force a sync. To do so, you launch Windows PowerShell on the respective server on which AAD Connect has been installed and type the following to import the AAD Connect PowerShell module:

Import-Module ADSync

You check the current settings for the new scheduler, you can use the new Get-ADSyncScheduler as shown below.



To force a delta sync, you the following PowerShell command:

Start-ADSyncSyncCycle -PolicyType Delta



If you want to force an initial (full) sync, use this command:

Start-ADSyncSyncCycle -PolicyType Initial

No comments:

Post a Comment