Step 3

Install the agent

Download the agent from your tenant and run the installer. It registers the server with Microsoft and connects it to AD.

15 minutesSigned in to the server as CONTOSO\Administrator

Download it

Whereentra.microsoft.com›Entra ID›Entra Connect›Cloud sync›Agents›Download on-premises agent

Select Accept terms & download. The file is AADConnectProvisioningAgentSetup.exe.

Can't see the button?

It is on the Agents page, not Configurations. On a small server screen the portal hides toolbar buttons, so maximise the browser. The installer is the same for every tenant; the sign-in during setup decides which tenant the agent joins.

Run the installer

ScreenChoose or enter
WelcomeMicrosoft Entra Connect cloud sync
Connect Microsoft Entra IDcon-cloudsync-admin@contoso.onmicrosoft.com, then MFA. Choose Sign in to this app only if Windows asks
Configure Service AccountUse custom gMSA › ad.contoso.com\svc-entra-gmsa$
Connect Active DirectoryAdd ad.contoso.com with CONTOSO\Administrator
ConfirmCheck both accounts, then Confirm

Check the service

CON-SYNC-01
Get-Service AADConnectProvisioningAgent | Select-Object Status, StartType
(Get-CimInstance Win32_Service -Filter "Name='AADConnectProvisioningAgent'").StartName

The service should be Running, Automatic, and running as the gMSA.

Performance counter errors are harmless

Event IDs 12009 and 12033 ("Failed to initialize performance counters") appear each time the agent starts under a gMSA. They affect only the agent's own metrics.

Done when

Check

Cloud sync › Agents lists CON-SYNC-01 as Active.

Your progress is kept in this browser only.