Blog/On-premises & hybrid

Entra Connect staging mode as your safety net

A second sync server in staging mode lets you test rule changes before they reach the cloud and recover fast when the main server fails.

On-premises & hybridEntra ID

What staging mode does

A server in staging mode imports from Active Directory and Entra ID and runs synchronization like the active server, but never exports. You can see exactly what it would change before you trust a new rule, and switch it to active if the main server fails.

Active directorySync serversEntra ID1Users and groupsSource of truth2Active serverImports, syncs, exports3Cloud objectsUpdated4Staging serverImports and syncs only5Compare exportsBefore any change
  1. 1

    Install the second server in staging mode

    On-premises

    Run the installer with the same configuration as the active server and tick "Enable staging mode".

  2. 2

    Make the change on the staging server

    On-premises

    Change the rule or the scope there first, then run a full synchronization.

  3. 3

    Review pending exports

    On-premises

    Export what the staging server would send and read it before you go further.

    PowerShell · On-premises
    csexport "harbor.onmicrosoft.com - AAD" C:\Temp\pending.xml /f:x
  4. 4

    Apply on the active server

    On-premises

    When the pending changes are what you expect, make the same change on the active server and run a delta cycle.

    PowerShell · On-premises
    Import-Module ADSync
    Start-ADSyncSyncCycle -PolicyType Delta
Watch out. Keep the accidental-deletes threshold on. A wrong scope change can otherwise soft-delete thousands of accounts in one cycle.
See sync scope in the consoleLearn console · Entra admin center › Microsoft Entra Connect

Get the next guide by email

The Cutover is a monthly email with new guides and what we learned on recent waves.

Related

GuideEntra IDMigrations

Set up PIM before the migration starts

Engineers need Exchange and SharePoint admin rights in two tenants. Make them eligible, not permanent, and keep a clean audit trail.

3 Nov 20269 min read
GuideEntra IDMigrations

Cross-tenant sync for coexistence during a merger

Let people find and work with each other across two tenants months before their mailboxes move.

6 Oct 20269 min read