2.1.2.3. Design for Microsoft Entra Connect
2.1.2.3. Design for Microsoft Entra Connect
💡 First Principle: A resilient and reliable synchronization service is the critical link for maintaining a consistent and up-to-date hybrid identity, ensuring seamless access to resources across both on-premises and cloud environments.
Scenario: You are designing the hybrid identity solution for an organization with an on-premises Active Directory. They need to ensure that user and group synchronizations to Microsoft Entra ID are highly available and resilient to server failures.
Microsoft Entra Connect is a Microsoft tool designed to connect your on-premises identity infrastructure with Microsoft Entra ID.
Key Components and Functionalities:
- Synchronization Services: The engine that synchronizes directory objects and selected attributes (e.g., username, email, password hashes) from on-premises AD to Microsoft Entra ID, maintaining identity consistency.
- Authentication Options: Microsoft Entra Connect supports three authentication methods:
- Password Hash Synchronization (PHS): Simplest, syncs password hashes.
- Pass-through Authentication (PTA): Authenticates users against on-premises AD in real-time.
- Federation with AD FS (Active Directory Federation Services): For advanced scenarios like smart card authentication.
- Health Monitoring: Microsoft Entra Connect Health provides monitoring and alerting for synchronization services and AD FS, enabling proactive issue detection and resolution.
- Sync cadence: the scheduler runs a delta sync every 30 minutes by default, so an on-premises change reaches Microsoft Entra ID on the next cycle, not instantly (
Start-ADSyncSyncCycle -PolicyType Deltaruns one on demand). Password hash sync runs on its own, roughly every two minutes. - Seamless SSO: silent sign-in for domain-joined devices on the corporate network. It works with PHS or PTA and needs no extra servers, unlike an AD FS farm.
- Password writeback and SSPR: writeback sends a password changed or reset in the cloud (including through self-service password reset) back to on-premises AD, which is what synced users need. Cloud-only users need no writeback and no on-premises component: SSPR works once they have registered the required authentication methods through combined security information registration.
- Deployment order: clean the directory with IdFix (duplicate or malformed attributes), install Entra Connect and choose the sign-in method, scope synchronization with domain, OU or attribute filtering, then run the initial sync and verify the objects in Microsoft Entra ID.
Designing for High Availability and Disaster Recovery:
- Staging Mode: Deploy a secondary Microsoft Entra Connect server in staging mode. It synchronizes but does not export changes to Microsoft Entra ID until activated, allowing rapid failover if the primary server fails. Failover is manual, only one server exports at a time (there is no active-active), and staging mode is also how you validate a new or changed sync configuration against real data before anything is written to Microsoft Entra ID.
- SQL Server Backend: Use a highly available SQL Server (e.g., Always On Availability Groups) for the synchronization database to eliminate single points of failure.
⚠️ Common Pitfall: Treating the Microsoft Entra Connect server as a non-critical component. A failure of this server can halt all identity synchronization, leading to outdated group memberships and provisioning issues for new users.
Key Trade-Offs:
- Simplicity (LocalDB) vs. High Availability (Full SQL): The default Microsoft Entra Connect installation uses a local SQL Express database, which is a single point of failure. For high availability, using a full, external SQL Server (with its own HA configuration) is required but adds complexity and cost.
Practical Implementation: Conceptual Failover Process
- Primary Microsoft Entra Connect server fails.
- Monitoring (e.g., Microsoft Entra Connect Health) alerts administrators.
- Administrator takes the secondary server out of staging mode.
- The secondary server becomes active and starts exporting changes to Microsoft Entra ID.
- Identity synchronization resumes.
Reflection Question: How does designing for Microsoft Entra Connect (using staging mode for high availability and a highly available SQL Server backend) fundamentally ensure resilient, secure, and reliable hybrid identity synchronization, supporting seamless access to both cloud and on-premises resources?