Azure AD Connect – forcing synchronisation

I often have to force synchronisation in Azure AD Connect, mainly when testing & troubleshooting when I can’t wait for the next sync cycle (every 30 minutes is the default), and I always forget the PowerShell commands!.  So I’ve documented them here for my reference more than anything, if you find them useful then even better.

From the server where Azure AD Connect is installed, launch a Windows PowerShell session.

Run the following PowerShell command:

Import-Module ADSync

ForceADSync1

Then you can force a full sync or a delta sync.

Full (Initial) Sync

A full sync will run the following Connector Operations:

  • Local AD Domain – Full Import
  • Azure AD Domain – Full Import
  • Local AD Domain – Full Synchronization
  • Azure AD Domain – Full Synchronization
  • Azure AD Domain – Export
  • Local AD Domain – Export

For a full (initial) sync, run the following PowerShell command:

Start-ADSyncSyncCycle -PolicyType Initial

ForceADSync2

Delta Sync

A delta sync will run the following Connector Operations:

  • Local AD Domain – Delta Import
  • Azure AD Domain – Delta Import
  • Local AD Domain – Delta Synchronization
  • Azure AD Domain – Delta Synchronization
  • Azure AD Domain – Export
  • Local AD Domain – Export

For a delta sync, run the following PowerShell command:

Start-ADSyncSyncCycle -PolicyType Delta

ForceADSync3

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s