Monitoring DirSync Azure AD status from api

%3CLINGO-SUB%20id%3D%22lingo-sub-330222%22%20slang%3D%22en-US%22%3EMonitoring%20DirSync%20Azure%20AD%20status%20from%20api%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-330222%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20team.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20I%20get%20the%20current%20DirSync%20(AAD%20Connect)%20status%20from%20API%20call%3F%20-%20We%20would%20like%20to%20monitor%20synchronisation%20delay%20between%20on-premisses%20and%20Office365.%20I'm%20wondering%20we%20can%20consume%20a%20public%20API%20instead%20of%20parsing%20admin%20home%20page.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDavi%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-330222%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%20center%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-330325%22%20slang%3D%22en-US%22%3ERe%3A%20Monitoring%20DirSync%20Azure%20AD%20status%20from%20api%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-330325%22%20slang%3D%22en-US%22%3E%3CP%3EBoth%20Get-MsolCompanyInformation%20and%20Get-AzureADTenantDetail%20expose%20the%20last%20sync%20date%2C%20so%20does%20the%20Graph%20API%20(%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Forganization%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Forganization%3C%2FA%3E).%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

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).