Have any solution can output the Azure AD Connect Sync Errors?

BlackFox 1 Reputation point
2021-05-19T01:59:11.977+00:00

Hi everyone

I want Output the AADC Sync Errors to CSV or some text file for monitor(if have any error then i can use some soft like zabbix to notification), have any way to do it?

97733-2021-05-19-105403.png

btw, i found a pwsh cmdlet "Get-ADSyncRunStepResult" and looks like it can output some counts.
but because our test AD no have any errors yet, so we don't know it can output sync errors count or not?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
18,635 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nuno Alexandre 31 Reputation points
    2021-06-11T17:45:52.02+00:00

    Either one of these should get what you need:

    Get-ADSyncRunProfileResult
    Get-ADSyncRunStepResult

    For Example:

    1. Identify the run setup you want to investigate the error
      Get-ADSyncRunStepResult -RunHistoryId 9f78e5b4-4d35-401f-9a7b-491dcfa2a19f
    2. Check the sync errors occurred in that run step
      (Get-ADSyncRunStepResult -RunHistoryId 9f78e5b4-4d35-401f-9a7b-491dcfa2a19f).SyncErrors | Format-List
    2 people found this answer helpful.
    0 comments No comments