After Migration - AADConnect Database & Azure AD out of sync

Jason Granat 106 Reputation points
2020-09-16T16:35:32.9+00:00

Issue: Sync process indicates success, but users not syncing.

Background: We have had an older version of Azure AD Connect/Sync running successfully/correctly without issues for the last year or so in our environment. Last month we performed a migration to move our Azure AD Connect software to new hardware and we’re having issues where it appears the process is showing success and users/changes are syncing to the AADConnect database but not to Azure AD.

On the server, the Synchronization Service Manager shows success for all sync operations and they are executing on a schedule (Delta Import, Delta Sync, & Export.) [Full instead of delta also shows "success'.] Manually executing/running the connections from the connectors tab also shows "success".

The Azure AD Connect health service page from the Azure portal also indicates that the sync service is enabled, the last sync was an hour ago, and that password has synchronization is enabled.

Original setup:
Server1, using the local/express database installed as part of the setup. It was an older version, unfortunately, we don't have it installed still as we thought had been successfully syncing for the last month.

New setup:
Server2, using a SQL server standard database for the ADSync database. Version 1.3.21.0 as noted on the Azure AD Connect synchronization service manager "about" tab.

Troubleshooting steps taken:

  • When I run the troubleshooter powershell script and using the "Diagnose object synchronization issues", I can get the diagnostic report that shows the "On-Premises Active Directory" & "AADConnect Database" with the same values, but the "Azure AD" object is showing that it has been several weeks according to the LastDirSyncTime value. We made a changes to a user's display name yesterday, which should have caused a sync/change, but that sync time hasn't changed and the display name doesn't match, see the pictures below. (The AADConnect Database sourceAnchor value matches the Azure AD ImmutableId.)

25194-image.png

25255-image.png

  • Filtered the Application event log by the event source of "Directory Synchronization" and there are no errors noted during the synchronization process. I can see it start, go through the process, and end successfully.
  • Tried to manually execute delta & full syncs from both the connectors tab of the Synchronization Services Manager application on the server and via the powershell command Start-ADSyncSyncCycle. Success is shown with no errors. There is still no sync from the AAD Connector database to Azure AD. The synchronization actions show "Connectors with Flow Updates" greater than zero, but the export actions show no adds/updates/renames/deletes/delete adds.
    25164-image.png
  • Used the Get-MsolCompanyInformation powershell command and it shows a LastDirSyncTime/LastPasswordSyncTime that is recent from today. Interestingly enough, the account that is shown here doesn't exist in our AAD anymore. It has the format of the old server name, not the new one.
    25269-image.png
  • Confirmed the connector for Azure AD was set to use the correct user showing the new server name and confirmed that that new user exists in the Azure portal.
    25277-image.png
  • Confirmed that the attributes in question were set to sync.

Is there a set of logs or additional information that I can pull in to see what exactly is occurring? It really seems like everything should be working as expected, but clearly our user attributes are not syncing. Currently stumped, but hopefully someone out there has seen this before.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} vote

Accepted answer
  1. Jason Granat 106 Reputation points
    2020-09-28T17:48:10.683+00:00

    After working with MS Support, we found that the older version of the software we were originally using allowed for the usage of both the OU filtering & Security Group filtering method. With the newest version, it appeared that having both set was causing an issue where the local AD & AAD Connect databases were in sync, but it never pushed the changes to Azure.

    Hopefully this will help someone in the future, as when we changed to just filtering by OU only, the syncs starting performing correctly to Azure.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Andy David - MVP 157.8K Reputation points MVP Volunteer Moderator
    2020-09-16T16:53:29.247+00:00

    Dumb question. Are sure that some other AADConnect server is not still syncing? Is there more than one AADConnect server here in the mix? Do the Azure Sign Logs show logins for that old account Sync_ ?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.