iteal
iteal

Reputation: 461

Configure Azure AD Connect Cloud Sync without Portal?

Is it possible to reproduce the steps to "Configure Azure AD Connect cloud sync" from the Azure portal, in another way using an API?

The steps are described at this link:

https://learn.microsoft.com/en-us/azure/active-directory/cloud-sync/tutorial-single-forest#configure-azure-ad-connect-cloud-sync

I would like to automate this process to have no user interaction. Is it possible with the Graph API? Any example?

Upvotes: 0

Views: 309

Answers (1)

Ansuman Bal
Ansuman Bal

Reputation: 11421

Thank you Marilee Turscak - MSFT for providing the reference Link.

I don't understand this sentence: "You need to use this application ID 1a4721b3-e57f-4451-ae87-ef078703ec94. The displayName is the AD domain url, if used in the portal (for example, contoso.com), but it may be named something else." What is the application id I should use? And what is the display name? I get 401 or 403 errors. Is there an additional step before this?

You have to use the same application ID as its the Application templateID by default which is used to provision entries from active directory to Azure active directory.

enter image description here

But You can use any Display name that you want and Please make sure to have the required permissions as shown below. You can perform the post operation with Graph explorer.

enter image description here

After you have done the above post operation you will get the service principal ID which can be used for further steps mentioned in the document provided by Marilee Turscak - MSFT.

Reference:

How to programmatically configure cloud sync using MS Graph API | Microsoft Docs

Upvotes: 1

Related Questions