Download the agent from your tenant and run the installer. It registers the server with Microsoft and connects it to AD.
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
| Screen | Choose or enter |
|---|---|
| Welcome | Microsoft Entra Connect cloud sync |
| Connect Microsoft Entra ID | con-cloudsync-admin@contoso.onmicrosoft.com, then MFA. Choose Sign in to this app only if Windows asks |
| Configure Service Account | Use custom gMSA › ad.contoso.com\svc-entra-gmsa$ |
| Connect Active Directory | Add ad.contoso.com with CONTOSO\Administrator |
| Confirm | Check 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.


