Overview

Add a second Cloud Sync agent

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.

5 minute readFollows: Set up Entra Cloud SyncReviewed 15 November 2026
What improves

Account sync keeps running when one server is down.

Why it matters

With one agent, new starters and password changes stop syncing whenever that server restarts.

How you do it

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

ItemExample
Existing agentCON-SYNC-01
New agentCON-SYNC-02
Shared service accountsvc-entra-gmsa$
ResultTwo active agents, automatic failover
How the failover works

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.

Use a different server

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

  1. Prepare the second server

    Domain-joined, TLS 1.2, reaching Microsoft.

  2. Share the service account

    Add it to the gMSA host group and restart.

  3. Install the second agent

    The same installer and the same answers.

  4. Confirm and test failover

    Two Active agents, then stop one.

Your progress is kept in this browser only.