With one agent, user sync stops whenever that server restarts or fails. A second agent on another server keeps sync running. Microsoft shares the work between them and fails over by itself.
Account sync keeps running when one server is down.
With one agent, new starters and password changes stop syncing whenever that server restarts.
Install a second agent on another server and test failover.
Every name, address and value in this guide is an example. Replace them with your own.
What you will have at the end
| Item | Example |
|---|---|
| Existing agent | CON-SYNC-01 |
| New agent | CON-SYNC-02 |
| Shared service account | svc-entra-gmsa$ |
| Result | Two active agents, automatic failover |
Every active agent registers with your tenant. Entra spreads sync work across them and uses the other if one stops answering. You do not pick a primary and there is nothing to fail back.
Two agents only help on separate servers, ideally on separate hosts. A domain controller works if you would rather not build another server.
The route
- Prepare the second server
Domain-joined, TLS 1.2, reaching Microsoft.
- Share the service account
Add it to the gMSA host group and restart.
- Install the second agent
The same installer and the same answers.
- Confirm and test failover
Two Active agents, then stop one.


