Azure REST API to force AD Connect Sync

MS Techie 2,751 Reputation points
2021-11-09T14:39:45.987+00:00

we are syncing on-prem AD users to Azure AD using Azure AD Connect.

I know we can force AD Sync using the Az PowerShell.
https://techcommunity.microsoft.com/t5/itops-talk-blog/powershell-basics-how-to-force-azuread-connect-to-sync/ba-p/887043

But do we have any REST API to force the AD Sync between on-prem AD and Azure AD.

Windows for business Windows Client for IT Pros Directory services Active Directory
Microsoft Security Microsoft Entra Microsoft Entra ID
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Pierre Audonnet - MSFT 10,191 Reputation points Microsoft Employee
    2021-11-09T14:58:52.313+00:00

    Triggering synchronization is something that takes place locally on the Azure AD Connect server (and not with the Az PowerShell module but with the ADSync module).
    There is no REST API on the Azure AD Connect server to allow you doing that. However, if the challenge is to trigger remotely, you can use remote PowerShell to do it from another system.

    Unless REST API is a must... But then, what is the use case? I am curious :)

    1 person found this answer helpful.

  2. Limitless Technology 39,916 Reputation points
    2021-11-10T19:35:45.13+00:00

    Hello @MS Techie

    Yes, you have the Azurd AD Sync API:
    https://learn.microsoft.com/en-us/graph/api/resources/synchronization-overview?view=graph-rest-beta

    And the V2:
    https://learn.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-sync-endpoint-api-v2

    Hope this helps with your query,

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


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.