Azure AD Connect not syncing automatically
Setting up Azure AD Connect isn’t the hardest thing to do in our business, but for one client Azure AD Connect didn’t work as you would expect it to work.
The installation and initial synchronisation were going smoothly: the desired OU’s were synced, together with all the attributes. When changing an attribute and forcing a delta sync (I think everybody knows the oneliner “Start-AdSyncSyncCycle -PolicyType Delta”), the new value was correctly synced with O365. So my first thought: Job done, time to go back to the headquarters of Orbid.
After working a couple of hours for other customers, I still had to finish my documentation of the work I did in the morning. In need of some screenshots, I logged in into the O365 portal and what do I see: “last synced 4 hours ago”.
How was this possible? I have verified the setup, the sync and forced a delta sync without any issues. Checking the schedule (by executing Get-ADSyncScheduler), the next sync was scheduled 30min after the previous. So why is it not syncing?
After looking closer to the SyncScheduler, the issue was found:
The synchronisation was disabled. How did this happen? Honestly, no idea. During the installation, there is no option to disable the schedule (or not that I know of). Luckily, it’s pretty easy to enable this again: execute “Set-ADSyncScheduler -SyncCycleEnabled $true” and the Sync schedule is enabled again.
Important note: a week later I did a fresh install of Azure AD Connect for another client, and the schedule was again disabled. So be aware of this setting and I would suggest to double check it.
Hi, after majoring in programming and after a couple of years doing end user support, I now have shifted to the back-end (backups, servers, switching, firewalls, virtualization,..) with specific dedication to Exchange/O365 and automatisation. Working currently as a system engineer for Orbid, I am mostly going to different clients as a consultant/engineer to perform maintenances or projects. Besides that, I’m also taking the lead on the automatisation program within Orbid and I’m writing scripts for client.