Active DirectoryAzure servicesMicrosoft Technologies

How to force Azure AD Sync to sync data with Azure AD?

Azure AD Sync is used to sync on-premises AD data with Azure AD. By default Azure AD sync will sync data with Azure AD in every 3 hours’ time. But will it be enough? Do we need to wait for 3 hours to get data sync?

Answer is no. there is 2 options to do this.

1)    Change the Default schedule to lower the sync intervals from 3 hours to match with your requirement.
2)    Forcefully sync data with Azure AD when required.

In this demo I am using on premises AD server which running windows server 2016 TP4.

Change Default Sync Schedule

1)    Log in to the On-premises AD server which have AD sync tool installed as Domain/Enterprise admin
2)    Go to > Task Scheduler
3)    Then you will be able to see the schedule called “Azure AD Sync Scheduler

adsync1

4)    Double click on the schedule, then go to triggers tab. Double click on trigger to edit.

adsync2

5)    In here you can define the time to sync.
6)    When you save it will ask which user account to use for the job. You can define service account to run this task.


Force to sync data via PowerShell

1)    Log in to the On-premises AD server which have AD sync tool installed Domain/Enterprise admin
2)    Load the powershell with admin privileges.

adsync3

3)    Then change directory to C:\Program Files\Microsoft Azure AD Sync\Bin

adsync4

4)    Then run .\DirectorySyncClientCmd.exe

adsync5

5)    This will run full sync of your on-premises AD with Azure AD

If you have any questions feel free to contact me on rebeladm@live.com

Related posts
Azure servicesMicrosoft Entra IDMicrosoft Technologies

Step-by-Step Guide: Configure Entra ID lifecycle workflow to trigger mover task on user profile changes

The Entra ID lifecycle workflow is a feature of Microsoft Entra ID identity governance and Microsoft…
Read more
Cyber SecurityMicrosoft Entra IDMicrosoft Technologies

Step-by-Step Guide: How to setup Entra ID Restricted management Administrative Units ?

In my previous blog post, I discussed what Entra ID Administrative Units are and how they can be…
Read more
Microsoft Entra IDMicrosoft Technologies

Step-by-Step Guide: How to setup Entra ID Administrative Units ?

If you have worked with Microsoft Active Directory before, you may be familiar with…
Read more
Newsletter
Become a Trendsetter

Sign up and get the best of RebelAdmin, tailored for you.

Leave a Reply

Your email address will not be published. Required fields are marked *