Set alert for Azure AD Synch error or not synching longer than 1 hour ?

EnterpriseArchitect 4,621 Reputation points
2021-11-10T04:55:42.67+00:00

People,

I'm running Hybrid Active Directory AD DS OnPremise synchronization to Azure AD with Azure AD Connect.

How can I get some report or alert via email that if the Azure AD Sync is not working or not synching longer than 1 hour?
Like from: https://admin.microsoft.com, Home > Directory sync status

Because I found it when the Azure AD Sync wizard is opened, the Sync is stopped, hence causing more issues until this window is closed.

Thank you in advance.

Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,103 questions
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. Andy David - MVP 139.8K Reputation points MVP
    2021-11-10T12:26:30.26+00:00

    You can install the AADConnect Health Agent to assist:
    https://learn.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-health-sync

    But that wont alert if more than an hour

    You could script something to look at

    LastDirSyncTime

    with Get-MsolCompanyInformation in Azure

    Check out Solution 2 for a script:
    https://insterswap.wordpress.com/2020/03/29/align-office-365-licensing-automation-with-azure-ad-connect-successful-sync-cycle/

    1 person found this answer helpful.
    0 comments No comments

  2. Limitless Technology 39,301 Reputation points
    2021-11-12T09:24:21.233+00:00

    Hi there,

    To enable Azure AD Connect Health email notifications you can follow the below steps

    In the Azure Portal, search for Azure AD Connect Health
    Select Sync errors
    Select Notification Settings.
    At the email notification switch, select ON.
    Select the check box if you want all global administrators to receive email notifications.
    If you want to receive email notifications at any other email addresses, specify them in the Additional Email Recipients box. To remove an email address from this list, right-click the entry and select Delete.
    To finalize the changes, click Save. Changes take effect only after you save.

    You can get more info from here https://learn.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-health-operations

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer--

    1 person found this answer helpful.

  3. Venkat Kiran 5 Reputation points
    2023-03-24T08:45:10.8233333+00:00

    People,

    Any update on this? like any successful process??

    1 person found this answer helpful.
    0 comments No comments