Home

Azure AD Connect not manually syncing

%3CLINGO-SUB%20id%3D%22lingo-sub-194452%22%20slang%3D%22en-US%22%3EAzure%20AD%20Connect%20not%20manually%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-194452%22%20slang%3D%22en-US%22%3E%3CP%3ESorry%20if%20this%20isn't%20the%20right%20forum%2C%20but%20I%20just%20installed%20Azure%20AD%20Connect%20on%20a%20new%20Windows%202016%20domain%20controller.%26nbsp%3B%20Azure%20AD%20Connect%20was%20originally%20upgraded%20from%20DirSync%20and%20was%20running%20on%20a%20Windows%202012%20R2%20domain%20controller.%26nbsp%3B%20We're%20decommissioning%20that%20server%2C%20hence%20the%20new%20Windows%202016%20DC%20and%20Azure%20AD%20Connect%20on%20the%20new%20DC.%20I%20have%20left%20the%20old%20server%20in%20staging%20mode%20until%20I'm%20positive%20the%20new%20system%20is%20working%20correctly.%20My%20issue%20is%20when%20I%20manually%20run%20start-adsyncsynccycle%20-policytype%20delta%20(on%20the%20new%20server)%2C%20it%20shows%20it%20is%20successful%2C%20and%20monitoring%20via%20the%20Synchronization%20Service%20Manager%20shows%20it%20is%20running%2C%20but%20no%20changes%20are%20actually%20synced%20with%20Azure.%26nbsp%3B%20Once%20the%20delta%20sync%20runs%20at%20scheduled%20time%2C%20the%20changes%20are%20synced%20to%20Azure.%26nbsp%3B%20If%20I%20change%20back%20to%20the%20original%20server%20(change%20staging%20mode%20around)%2C%20and%20manually%20run%20the%20delta%20sync%2C%20it%20works%20as%20it%20should.%20Is%20there%20anything%20else%20required%20to%20do%20a%20manual%20sync%20when%20Azure%20AD%20Connect%20is%20running%20on%20a%20Windows%202016%20DC%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-194452%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-206272%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20not%20manually%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-206272%22%20slang%3D%22en-US%22%3EI'll%20try%20removing%20the%20old%20AD%20connect%2C%20via%20Pontus'%20suggestion%20in%20a%20few%20days.%20If%20that%20doesn't%20work%2C%20I'll%20open%20a%20ticket.%20Thanks%20for%20your%20help%2C%20everyone.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-206270%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20not%20manually%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-206270%22%20slang%3D%22en-US%22%3EMax%2C%3CBR%20%2F%3E%3CBR%20%2F%3ECorrect.%20Doing%20the%20exact%20same%20steps%20that%20the%20Powershell%20commandlet%20runs%2C%20in%20the%20same%20order%2C%20via%20the%20manager%2C%20works.%20I'll%20try%20the%20other%20Pontus'%20suggested%20step%20of%20removing%20AD%20connect%20in%20a%20few%20days.%20Until%20the%2C%20I'll%20just%20manually%20run%20the%20syncs%20when%20required.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-206230%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20not%20manually%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-206230%22%20slang%3D%22en-US%22%3E%3CP%3EMy%20recommendation%20would%20be%20to%20do%20one%20of%20two%20things%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20Create%20a%20Support%20Request%20with%20Microsoft%20Azure%20Support%20(Identity%20Team).%20Submit%20with%20the%20new%20case%20a%20zipped%20folder%20from%20the%20following%20path%2C%20C%3A%5CProgram%20Data%5CAADConect.%20Zip%20that%20as%20it%20contains%20Trace%20Logs%20and%20Installation%20Logs%20from%20the%20latest%20install%20of%20the%20Software%20which%20is%20giving%20you%20the%20issues%20with%20the%20PS%20Module.%20They%20can%20help%20troubleshoot%20why%20this%20is%20happening%20and%20resolve%20the%20issue%20once%20and%20for%20all.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E2.%20If%20you%20are%20not%20worried%20about%20the%20root%20cause%20of%20the%20issue.%20Follow%20the%20guidance%20of%20the%20other%20reply(ies)%2C%20and%20uninstall%20reinstall%20Azure%20AD%20Connect.%20This%20should%20resolve%20the%20issue.%20If%20it%20doesn't%20follow%20Step%201%20for%20sure.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-206223%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20not%20manually%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-206223%22%20slang%3D%22en-US%22%3EYou're%20correct%2C%20there%20is%20no%20button%20or%20right%20click%20to%20run%20the%20whole%20process.%20the%20Start-ADSyncSyncCycle%20Powershell%20Commandlet%20is%20for%20that.%20But%20you're%20saying%20that%20isn't%20actually%20processing%20changes%3F%20Is%20it%20showing%20the%20exact%20same%20steps%20as%20the%20ones%20you%20ran%20manually%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-205864%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20not%20manually%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-205864%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20I%20do%20a%20manual%20sync%2C%20using%20PowerShell%20(%22import-module%20adsync%22%20followed%20by%20%22start-adsyncsynccycle%20-policytype%20delta%22)%2C%26nbsp%3Band%20monitor%20with%20the%20Sync%20Service%20Manger%2C%20the%20sync%20starts%20and%20runs%2C%20but%20my%20changes%20are%20not%26nbsp%3Bactually%20synced%2C%20nor%20even%20detected%20in%20the%20sync%20stats%20window.%26nbsp%3B%20Those%20changes%20are%20synced%20during%20normal%20sync%20cycle%2C%20though.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20part%202%2C%20using%20the%20Sync%20Service%20Manager%2C%20if%20I%20run%20the%20various%26nbsp%3Bimports%2Fsyncs%2Fexports%20(6%20of%20them)%20manually%2C%26nbsp%3Bin%20the%20same%20order%20as%20they're%20run%20during%20the%20PowerShell%20sync%2C%20then%20the%20changes%20are%20synced%20properly.%26nbsp%3B%20By%20the%20way%2C%20I%20did%20not%20know%20we%20could%20sync%20this%20way%2C%20so%20thanks%20for%20that%20tip.%20But%2C%20I%20didn't%20see%20anything%20I%20could%20just%20right-click%20on%20and%20then%20run%20the%20entire%20sync%20process.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPaul%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-205834%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20not%20manually%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-205834%22%20slang%3D%22en-US%22%3E%3CP%3EPaul%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20you%20run%20the%20Delta%20Cycle%20via%20Powershell%20vs%20when%20the%20scheduler%20runs%2C%20are%20there%20expected%20changes%20that%20are%20supposed%20to%20be%20syncing%3F%20What%20I%20mean%20is%2C%20by%20chance%20is%20there%20actually%20nothing%20for%20the%20sync%20cycle%20to%20pick%20up%20when%20you%20run%20it%20manually%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHave%20you%20also%20tried%20to%20right%20click%20%26gt%3B%20Run%20(manually%20sync)%20a%20sync%20cycle%3F%20Does%20that%20work%20not%20work%26nbsp%3Bcompared%20to%20the%20scheduler%20sync%20cycles%20every%2030%20min%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-204915%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20not%20manually%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-204915%22%20slang%3D%22en-US%22%3EHi%20Paul%2C%3CBR%20%2F%3EI%20would%20uninstall%20the%20old%20Azure%20AD%20Connect%20client%20first%2C%20then%20re-run%20the%20wizard%20on%20the%20new%20server%20and%20run%20a%20start-adsyncsynccycle%20-policytype%20initial%20after%20that%2C%20just%20for%20making%20sure.%3CBR%20%2F%3EThere%20no%20other%20command%20to%20force%20a%20sync%20in%20Windows%20Server%202016%2C%20there%20is%20no%20difference.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-823265%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20not%20manually%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-823265%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F90640%22%20target%3D%22_blank%22%3E%40Paul%20Long%3C%2FA%3E%26nbsp%3BWere%20you%20ever%20able%20to%20get%20your%20Azure%20AD%20Connect%20to%20sync%20via%20the%20adsyncsyncclycle%20-policytype%20delta%20command%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-823266%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20not%20manually%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-823266%22%20slang%3D%22en-US%22%3E%3CP%3EAny%20luck%20with%20this%3F%26nbsp%3B%20I%20am%20experiencing%20the%20same%20issue.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-823360%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20not%20manually%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-823360%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F244404%22%20target%3D%22_blank%22%3E%40mwilliams1895%3C%2FA%3E%26nbsp%3BActually%2C%20I%20ended%20up%20doing%20a%20full%20sync%2C%26nbsp%3B%3CSTRONG%3Estart-adsyncsynccycle%20-policytype%20initial%3C%2FSTRONG%3E.%20Once%20I%20did%20that%2C%20I've%20had%20no%20further%20issues.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-823362%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20not%20manually%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-823362%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F90640%22%20target%3D%22_blank%22%3E%40Paul%20Long%3C%2FA%3EThanks%20for%20your%20response.%20I%20run%20this%20script%20often.%26nbsp%3B%20Is%20there%20any%20disadvantage%20to%20running%20the%20initial%20vs%20the%20delta%3F%26nbsp%3B%20After%20I%20have%20run%20the%20initial%20will%20the%20delta%20sync%20work%20properly%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-823377%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20AD%20Connect%20not%20manually%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-823377%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F244404%22%20target%3D%22_blank%22%3E%40mwilliams1895%3C%2FA%3E%26nbsp%3BThe%20initial%20takes%20longer%20to%20finish%2C%20but%20other%20than%20that%2C%20there's%20no%20issues%20which%20I%20know%20of.%26nbsp%3B%20I've%20only%20run%20the%20initial%20that%20one%20time%20to%20fix%20an%20issue%2C%20and%20one%20other%20when%20I%20thought%20I%20was%20having%20the%20issue%20again%20(just%20a%20few%20months%20ago).%26nbsp%3B%20However%2C%20I%20think%20I%20was%20just%20impatient%20and%20forgot%20what%20DC%20I%20made%20the%20original%20AD%20change%20to%20and%20got%20flustered%20when%20the%20delta%20sync%20didn't%20seem%20to%20work%20(didn't%20wait%20for%20replication).%3C%2FP%3E%3C%2FLINGO-BODY%3E
Paul Long
Occasional Contributor

Sorry if this isn't the right forum, but I just installed Azure AD Connect on a new Windows 2016 domain controller.  Azure AD Connect was originally upgraded from DirSync and was running on a Windows 2012 R2 domain controller.  We're decommissioning that server, hence the new Windows 2016 DC and Azure AD Connect on the new DC. I have left the old server in staging mode until I'm positive the new system is working correctly. My issue is when I manually run start-adsyncsynccycle -policytype delta (on the new server), it shows it is successful, and monitoring via the Synchronization Service Manager shows it is running, but no changes are actually synced with Azure.  Once the delta sync runs at scheduled time, the changes are synced to Azure.  If I change back to the original server (change staging mode around), and manually run the delta sync, it works as it should. Is there anything else required to do a manual sync when Azure AD Connect is running on a Windows 2016 DC?

12 Replies
Hi Paul,
I would uninstall the old Azure AD Connect client first, then re-run the wizard on the new server and run a start-adsyncsynccycle -policytype initial after that, just for making sure.
There no other command to force a sync in Windows Server 2016, there is no difference.

Paul,

 

When you run the Delta Cycle via Powershell vs when the scheduler runs, are there expected changes that are supposed to be syncing? What I mean is, by chance is there actually nothing for the sync cycle to pick up when you run it manually?

 

Have you also tried to right click > Run (manually sync) a sync cycle? Does that work not work compared to the scheduler sync cycles every 30 min?

When I do a manual sync, using PowerShell ("import-module adsync" followed by "start-adsyncsynccycle -policytype delta"), and monitor with the Sync Service Manger, the sync starts and runs, but my changes are not actually synced, nor even detected in the sync stats window.  Those changes are synced during normal sync cycle, though.

 

For part 2, using the Sync Service Manager, if I run the various imports/syncs/exports (6 of them) manually, in the same order as they're run during the PowerShell sync, then the changes are synced properly.  By the way, I did not know we could sync this way, so thanks for that tip. But, I didn't see anything I could just right-click on and then run the entire sync process.

 

Paul

You're correct, there is no button or right click to run the whole process. the Start-ADSyncSyncCycle Powershell Commandlet is for that. But you're saying that isn't actually processing changes? Is it showing the exact same steps as the ones you ran manually?

My recommendation would be to do one of two things:

 

1. Create a Support Request with Microsoft Azure Support (Identity Team). Submit with the new case a zipped folder from the following path, C:\Program Data\AADConect. Zip that as it contains Trace Logs and Installation Logs from the latest install of the Software which is giving you the issues with the PS Module. They can help troubleshoot why this is happening and resolve the issue once and for all.

 

2. If you are not worried about the root cause of the issue. Follow the guidance of the other reply(ies), and uninstall reinstall Azure AD Connect. This should resolve the issue. If it doesn't follow Step 1 for sure.

Max,

Correct. Doing the exact same steps that the Powershell commandlet runs, in the same order, via the manager, works. I'll try the other Pontus' suggested step of removing AD connect in a few days. Until the, I'll just manually run the syncs when required.
I'll try removing the old AD connect, via Pontus' suggestion in a few days. If that doesn't work, I'll open a ticket. Thanks for your help, everyone.

@Paul Long Were you ever able to get your Azure AD Connect to sync via the adsyncsyncclycle -policytype delta command?

Any luck with this?  I am experiencing the same issue.

@mwilliams1895 Actually, I ended up doing a full sync, start-adsyncsynccycle -policytype initial. Once I did that, I've had no further issues.

@Paul LongThanks for your response. I run this script often.  Is there any disadvantage to running the initial vs the delta?  After I have run the initial will the delta sync work properly?

@mwilliams1895 The initial takes longer to finish, but other than that, there's no issues which I know of.  I've only run the initial that one time to fix an issue, and one other when I thought I was having the issue again (just a few months ago).  However, I think I was just impatient and forgot what DC I made the original AD change to and got flustered when the delta sync didn't seem to work (didn't wait for replication).

Related Conversations
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
7 Replies