Skip to content

Microsoft Entra Connect Staging Mode Deployment & High Availability Failover

SOP-SYS-070 Standard Operating Procedure v1.0.0
Last Updated 2026-10-15
Author Systems Administration Team
πŸ’» Target OS / Systems:
Microsoft Entra Connect v2.3+ (Azure AD Connect)Windows Server 2022 / 2025Active Directory Domain Services (AD DS)Microsoft Entra ID (Azure AD Tenant)

Before you begin

  • Applies to:Microsoft Entra Connect Sync on Windows Server 2022 or 2025, with an active server and a staging server.
  • Where to start:Start on the active sync server and record its configuration. Use the standby for staging and validation before the approved cutover.
  • What you need:Have access to both servers, authorized AD DS and Entra credentials, a protected configuration export, and a rollback plan. Confirm which server is allowed to export.
Guide tools
Guide tools
0/0 Steps (0%)

Scope, High Availability Architecture & Disaster Recovery

This standard operating procedure governs the deployment, lifecycle maintenance, and failover procedure for Microsoft Entra Connect (AADC) between on-premises Active Directory and Microsoft Entra ID.

In an enterprise topology, a single Entra Connect server is a single point of failure (SPOF). To guarantee continuous identity synchronization and zero-downtime server upgrades, a Standby Staging Server must be maintained in parallel.

Microsoft Entra Connect Staging Mode High Availability and Failover Architecture Diagram

Microsoft Entra Connect High Availability Architecture: Active primary node handling exports alongside a parallel Staging standby server running delta sync without cloud exports, enabling instantaneous role inversion during disaster recovery or maintenance.


Pre-Flight Sizing & Prerequisites

RequirementActive Primary (CORP-AADC01)Standby Staging (CORP-AADC02)
OS VersionWindows Server 2022 / 2025Windows Server 2022 / 2025
AADC VersionExact matching version (e.g. 2.3.6.0)Exact matching version (2.3.6.0)
Database EngineSQL Server 2022 Standard / LocalDBSQL Server 2022 Standard / LocalDB
Service AccountDedicated AD Connector account (MSOL_)Dedicated AD Connector account (MSOL_)
Staging Mode StateDisabled (Exporting)Enabled (Non-Exporting)

Execution: Phase 1 β€” Deploying the Secondary Staging Server

01

Export Configuration from Active Primary Server

Configuration Export

On CORP-AADC01, launch Microsoft Entra Connect and export the active synchronization rules, connector space filters, and attribute mappings to a secure JSON file.

\\filesrv\admin\AADC-Config-Backup.json
# Open Entra Connect wizard and export configuration:
# 1. Launch Microsoft Entra Connect
# 2. Select Configure -> View or export current configuration
02

Install AADC on Secondary Server in Staging Mode

Staging Deployment

On CORP-AADC02, launch the installer, import the JSON configuration, and ensure the Enable staging mode checkbox is selected before completing configuration.

Installation Steps on CORP-AADC02:
1. Launch Entra Connect installer and click Customize.
2. Select "Import synchronization settings" and select \\filesrv\admin\AADC-Config-Backup.json.
3. Authenticate with Hybrid Identity Administrator credentials for Entra ID.
4. MANDATORY CHECK on Ready to Configure page:
- [x] Enable staging mode (MANDATORY: Prevents export collisions)
- [x] Start the synchronization process when configuration completes
5. Click Install.

Execution: Phase 2 β€” Controlled Planned Failover Procedure

When performing scheduled OS patching, hardware upgrades, or decommissioning the primary sync server:

03

Place Primary Server into Staging Mode

Step 1: Quench Primary

On CORP-AADC01 (Current Active), stop the sync scheduler and enable Staging Mode to immediately prevent further cloud export operations.

Terminal window
# 1. Disable synchronization scheduler to prevent mid-operation exports
Set-ADSyncScheduler -SyncCycleEnabled $false
# 2. In Entra Connect Wizard: Configure -> Configure Staging Mode -> Enable Staging Mode
# Or verify via PowerShell:
Get-ADSyncScheduler | Select-Object StagingModeEnabled, SyncCycleEnabled
# Expected Output: StagingModeEnabled = True
04

Promote Secondary Server to Active

Step 2: Promote Standby

On CORP-AADC02 (New Active), disable Staging Mode and trigger an immediate delta sync cycle to take over cloud synchronization.

Terminal window
# 1. In Entra Connect Wizard on CORP-AADC02: Configure -> Configure Staging Mode -> UNCHECK Staging Mode
# 2. Verify staging mode is off and scheduler is armed:
Get-ADSyncScheduler | Select-Object StagingModeEnabled, SyncCycleEnabled
# Expected Output: StagingModeEnabled = False, SyncCycleEnabled = True
# 3. Trigger immediate delta synchronization cycle to Entra ID:
Start-ADSyncSyncCycle -PolicyType Delta

Execution: Disaster Recovery Unplanned Failover

If CORP-AADC01 experiences catastrophic hardware destruction, hypervisor failure, or OS corruption:

05

Force Emergency Standby Promotion via PowerShell

Disaster Recovery

Execute directly on Standby Server CORP-AADC02 to immediately assume active cloud synchronization without waiting for the primary host.

Terminal window
# 1. Check current staging status
Get-ADSyncScheduler
# 2. Disable Staging Mode directly via PowerShell
Set-ADSyncScheduler -StagingModeEnabled $false
# 3. Force initial full sync cycle to ensure all on-premises state matches cloud
Start-ADSyncSyncCycle -PolicyType Initial
# 4. Check Entra ID admin center (Identity -> Hybrid management -> Microsoft Entra Connect)

Verification & Sync Monitoring

Launch the Synchronization Service Manager (miisclient.exe) on the active server:

Terminal window
# Launch Service Manager GUI
& "C:\Program Files\Microsoft Azure AD Sync\UIShell\miisclient.exe"
  • Operations Tab: Verify completed run profiles for:
    • corp.internal - Full Import / Delta Sync
    • <tenant>.onmicrosoft.com - Export
  • Error Counters: Verify Export Errors counter equals 0.

Rollback Plan

If the newly promoted server encounters unexpected sync errors or schema mismatches:

Terminal window
# 1. Re-enable Staging Mode on CORP-AADC02:
Set-ADSyncScheduler -StagingModeEnabled $true
# 2. Restore active status on CORP-AADC01:
Set-ADSyncScheduler -StagingModeEnabled $false
Set-ADSyncScheduler -SyncCycleEnabled $true

Comments