Monitoring DirSync Azure AD status from api

Copper Contributor

Hi team.

 

Can I get the current DirSync (AAD Connect) status from API call? - We would like to monitor synchronisation delay between on-premisses and Office365. I'm wondering we can consume a public API instead of parsing admin home page.

 

Regards,

 

Davi

1 Reply

Both Get-MsolCompanyInformation and Get-AzureADTenantDetail expose the last sync date, so does the Graph API (https://graph.microsoft.com/v1.0/organization).