How To Do Delta Sync

Delta Sync

The delta sync in Azure AD Connect is the most common form of synchronization. It only performs a partial synchronization of any changes since last synchronization, so it’s very quick.

You trigger the delta sync from PowerShell using the following command:

  1. Start-ADSyncSyncCycle -PolicyType Delta

You must be logged in to the Azure AD Connect server to run this command.

Alternatively, if remote PowerShell is enabled on your AAD Connect server you can remote it like this:

  1. Enter-PSSession [AAD Connect Server]
  2. Start-ADSyncSyncCycle -PolicyType Delta
  3. Exit-PSSession

Troubleshooting

The most common problems you’ll encounter with this command are the following:

Delta Sync Error: AAD is Busy

A busy AAD Connector will throw something like this at you:

Start-ADSyncSyncCycle : System.InvalidOperationException: Connector: skrubbeltrang.onmicrosoft.com - AAD is busy. at Microsoft.MetadirectoryServices.Scheduler.Scheduler.StartSyncCycle (String overridePolicy, Boolean interactiveMode) at SchedulerUtils.StartSyncCycle(SchedulerUtils* , Char* policyType, Int32 interactiveMode, Char** errorString) At line:1 char:1 + Start-ADSyncSyncCycle -PolicyType Delta + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (Microsoft.Ident...ADSyncSyncCycle:StartADSyncSyncCycle) [Start-ADSyncSyncCycle], InvalidOperationException + FullyQualifiedErrorId : System.InvalidOperationException: Connector: skrubbeltrang.onmicrosoft.com - AAD is busy. at Microsoft.MetadirectoryServices.Scheduler.Scheduler.StartSyncCycle (String overridePolicy, Boolean interactiveMode) at SchedulerUtils.StartSyncCycle(SchedulerUtils* , Char* policyType, Int32 interactiveMode, Char** errorString) ,Microsoft.IdentityManagement.PowerShell.Cmdlet.StartADSyncSyncCycle

The meaning of this error message is that the AAD Connector is currently synchronizing, so you’ll have to wait until it’s done.

Depending on the type of synchronization and amount of data you can just try again after waiting a few seconds.

Delta Sync Error: Azure AD Connect scheduler is unable to start

With this type of issue you’ll get an error message similar to this:

Start-ADSyncSyncCycle : System.InvalidOperationException: Azure AD Connect scheduler is unable to start a new sync cycle because Azure AD Connect wizard is open. Please close the wizard if it is not in use. at Microsoft.MetadirectoryServices.Scheduler.Scheduler.StartSyncCycle(String overridePolicy, Boolean interactiveMode) at SchedulerUtils.StartSyncCycle(SchedulerUtils* , Char* policyType, Int32 interactiveMode, Char** errorString) At line:1 char:1 + Start-ADSyncSyncCycle -PolicyType Delta + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (Microsoft.Ident...ADSyncSyncCycle:StartADSyncSyncCycle) [Start-ADSyncSyncCycle], InvalidOperationException + FullyQualifiedErrorId : System.InvalidOperationException: Azure AD Connect scheduler is unable to start a new sync cycle because Azure AD Connect wizard is open. Please close the wizard if it is not in use. at Microsoft.MetadirectoryServices.Scheduler.Scheduler.StartSyncCycle(String overridePolicy, Boolean interactiveMode) at SchedulerUtils.StartSyncCycle(SchedulerUtils* , Char* policyType, Int32 interactiveMode, Char** errorString), Microsoft.IdentityManagement.PowerShell.Cmdlet.StartADSyncSyncCycle

The meaning of this error message is that the AAD Connect wizard is open by someone. It could be yourself or one of your colleagues working in a different session to the server.

To find the culprit use the Get-Process PowerShell command:

PS C:\Windows\system32> Get-Process AzureADConnect -IncludeUserName Handles WS(K) CPU(s) Id UserName ProcessName ------- ----- ------ -- -------- ----------- 576 188748 2.33 2880 GIGACORP\adm.ad.jane AzureADConnect

Or check with TaskManager:

AzureADConnect.exe

Now, that you have the name of the perpetrator who forgot to close the AAD Connect wizard, take a screenshot! It makes for good evidence who should be buying cake next Wednesday 😉

Get more information on Azure AD Connect.

Easy365Manager: Get rid of hybrid Exchange and manage your Office 365 mailboxes and licenses from AD Users & Computers!

Did you like this post? Maybe your friends will too!