Hybrid Identity & Entra Connect
Connect Sync · Cloud Sync · password hash sync · pass-through authentication · seamless SSO · AD FS migration · Connect Health
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
Choosing the sync client and sign-in method
| Connect Sync | Cloud Sync | |
|---|---|---|
| Where it is managed | On-premises sync engine plus a service in Entra ID | Cloud-managed in the admin center; lightweight provisioning agent |
| Multiple disconnected forests | - | Natively supported, without complex configurations |
| Schedule | Scheduler: every 30 minutes by default | Every two minutes |
| High availability | Staging mode server | Multiple active agents, 3 recommended |
| Direction | - | AD to Entra ID, and groups from Entra ID to AD |
- Direction of travel: Cloud Sync is replacing Connect Sync, which will be retired after Cloud Sync has full functional parity. Azure AD Connect V1 is retired and no longer supported.
- Sign-in methods are independent of the sync tool. Cloud authentication: password hash synchronization or pass-through authentication. Federated authentication: a trusted system such as AD FS.
- PHS is the simplest. PTA enforces on-premises account state at sign-in. Federation is needed when a requirement isn't natively supported, such as third-party MFA providers, and is more complex to operate.
- Backup: deploy PHS next to PTA or federation as a fallback. Failover from PTA to PHS isn't automatic.
- Licences and roles: Connect V2 is free. Conditional Access needs Entra ID P1; ID Protection needs P2.
Entra Connect Sync operations
- Mandatory upgrade: upgrade Connect Sync to 2.6.84.0 or later and configure application-based authentication by April 7, 2027, or synchronization services stop.
- Prerequisites: domain-joined server with a full GUI (not Server Core); writable domain controller (no RODC); a verified domain; default tenant limit 50,000 objects, 300,000 after verifying a domain; SQL Express LocalDB manages about 100,000 objects.
- Express settings: for a single forest with password hash sync; PHS is enabled automatically. Sign in as Hybrid Identity Administrator and an Enterprise Admin for AD DS.
- Scheduler: two processes, one for password sync and one for objects and maintenance. Default 30 minutes. A cycle must run at least every 7 days.
Get-ADSyncScheduler,Set-ADSyncScheduler,Start-ADSyncSyncCycle -PolicyType Delta|Initial. - Staging mode: import and sync run, exports don't, and neither does password sync or writeback. Configuration changes on the primary must be repeated on the staging server.
- Filtering: group-based (initial install only), domain, OU and attribute-based. Disable the scheduler or use staging mode first. Objects that are filtered out are deleted in Entra ID; the accidental delete threshold is 500 by default. The default configuration takes most objects.
Entra Cloud Sync
- Architecture: a provisioning agent plus a cloud provisioning service using SCIM, with outbound connections only and automatic updates. Synchronization runs every two minutes.
- Agent prerequisites: domain-joined server (not Server Core), Hybrid Identity Administrator that isn't a guest, Domain or Enterprise Admin to create the gMSA, msDS-ExternalDirectoryObjectId in the schema, 4-GB RAM and .NET 4.7.1+. Installing on a domain controller is supported. Run IdFix first.
- Network: outbound ports 80 and 443 (8080 optional for status), plus TCP 389 and 3268 to domain controllers.
- Install path: Entra Connect, Cloud Sync, Agents, Download on-premises agent. The agent runs under a gMSA (provAgentgMSA$ if created for you).
- Configure: New configuration, AD to Microsoft Entra ID sync; choose the domain and whether to enable password hash sync. Scope by all users, selected security groups or selected OUs. No nested groups.
- Operate: accidental delete threshold, quarantine for unhealthy jobs, on-demand provisioning, Restart sync after scope changes.
- Also: device sync (so computers can become hybrid joined), group provisioning to AD, and migration guidance from Connect Sync.
Sign-in methods: PHS, PTA and seamless SSO
| PHS | PTA | |
|---|---|---|
| Where passwords are validated | In the cloud against a synced hash | On-premises AD, by agents |
| On-premises account state | Not immediately enforced | Enforced at sign-in |
| Leaked credentials report | Supported | Needs PHS also |
| Entra Domain Services | Supported | Needs PHS |
| Infrastructure | None beyond Connect | Agents (3 recommended) |
| Licence | Connect V2 is free | Free feature; no paid edition of Entra ID required |
- PHS: runs every 2 minutes and can't be modified; user objects only; the cloud complexity policy is overridden by the on-premises one; password set to never expire by default (PasswordPolicies DisablePasswordExpiration); accountExpires isn't synced.
- PHS security: the SHA256 hash of the original MD4 hash is sent, so it can't be used in a pass-the-hash attack on-premises. Express settings enable PHS automatically.
- PTA: agents make outbound connections only (80 and 443) and don't belong in a perimeter network; treat them as Tier 0. Microsoft recommends a minimum of 3 agents in production. A failed agent drops that sign-in.
- PTA enablement: a tenant-level feature that affects all managed domains. If you stop AD FS, wait at least 12 hours. Keep choosing PTA if you add a staging Connect server.
- PTA limitations: no leaked credential detection, not integrated with Connect Health, Entra Domain Services needs PHS, and AADJ devices can't sign in with a temporary or expired password.
Seamless single sign-on
- What: silently signs in users on corporate, domain-joined devices on the corporate network. Works with PHS or PTA, not AD FS. Free; no paid edition needed.
- Windows 10 and later: SSO uses the primary refresh token and Seamless SSO isn't used on Entra joined or hybrid joined devices. For Windows 7 and 8.1, use Seamless SSO.
- Setup: in Connect, choose Enable single sign on (only available with PHS or PTA); needs domain administrator credentials per forest, which aren't stored. It creates the AZUREADSSOACC computer account in each forest.
- Client side: add
https://autologon.microsoftazuread-sso.comto the intranet zone through Group Policy (value 1; value 4 blocks it for shared kiosks). Modern authentication must be enabled. - Protect the account: disable Kerberos delegation and let only Domain Admins manage it. Roll over the Kerberos decryption key at least every 30 days with
Update-AzureADSSOForest, once per forest. - Opportunistic: if it fails, users just type their password. If both are on, Entra join SSO takes precedence.
Microsoft states that starting with the July 2026 Windows Server update the default Kerberos encryption type in AD DS changes from RC4 to AES-256. Roll over the AZUREADSSOACC key before moving it to an AES type.
Migrating from AD FS
- Document and back up federation settings (Get-MgDomainFederationConfiguration) and plan rollback with New-MgDomainFederationConfiguration.
- Choose PHS (recommended) or PTA, and prepare SSO. Run a full password hash sync cycle first for PHS.
- Optionally test with staged rollout for a pilot group.
- Convert each domain from federated to managed.
- Turn off staged rollout and monitor.
- Staged rollout: a temporary mechanism, not permanent. Needs Hybrid Identity Administrator. Supports PHS, PTA, seamless SSO and others; max 10 groups per feature; first add limited to 200 users; edits can take up to 24 hours. No nested or dynamic groups, no cloud-only users, no legacy authentication.
- It doesn't convert the domain. You still make the final cutover with Connect or PowerShell; conversion can take up to 60 minutes. You don't have to convert all domains at the same time.
- Federated MFA behavior: federatedIdpMfaBehavior is acceptIfMfaDoneByFederatedIdp, enforceMfaByFederatedIdp or rejectMfaByFederatedIdp. If nothing is set, acceptIfMfaDoneByFederatedIdp.
- Options without staged rollout: A switch with Connect (if AD FS was configured with Connect) or B with Connect plus PowerShell (third-party federation).
- Check before converting PTA: agents must show Active, or you risk an authentication outage.
- Plan for: the onload.js customization can't be duplicated, the sign-in experience can't be customized, and Conditional Access can replace AD FS access control policies.
Entra Connect Health
- What: monitoring for on-premises identity infrastructure: AD FS, Connect Sync and AD DS. Requires Microsoft Entra ID P1 or P2. Not available in the China sovereign cloud.
- Agent: one per server, auto-updating, not on Windows Server Core. TLS inspection on outbound traffic can break registration and uploads; the latest agent needs only port 443. For Connect Sync, the agent installs with Connect. For AD FS, install on the AD FS and Web Application Proxy servers.
- Sync monitoring: alerts, sync latency, object change trend and an object-level error report that refreshes every 30 minutes (categories include Duplicate Attribute and Data Mismatch; export as CSV). It needs Connect Sync V2.
- Limited evaluation: with non-default Connect filtering, the agent doesn't upload error events until you enable monitoring in the sync service settings.
- Operations: email notifications are on by default; sync error emails are a daily digest; deleting a server doesn't uninstall the agent and needs P1 or P2.
CLI and PowerShell
| Task | Azure CLI | PowerShell |
|---|---|---|
| Show scheduler configuration | - | Get-ADSyncScheduler |
| Disable the sync scheduler | - | Set-ADSyncScheduler -SyncCycleEnabled $false |
| Run a delta sync cycle | - | Start-ADSyncSyncCycle -PolicyType Delta |
| Run a full sync cycle | - | Start-ADSyncSyncCycle -PolicyType Initial |
| Document current federation settings | - | Get-MgDomainFederationConfiguration -DomainID contoso.com |
| Convert a domain from federated to managed | - | Update-MgDomain -DomainId <domain name> -AuthenticationType "Managed" |
Exam Tips
Tick each tip once you can answer it without looking.
“Multiple disconnected AD forests, cloud-managed sync” → Microsoft Entra Cloud Sync (provisioning agent, SCIM, every 2 minutes). Trap: Connect Sync keeps an on-premises sync engine and is the product Cloud Sync is replacing.
“Connect Sync mandatory upgrade date” → Version 2.6.84.0 or later with application-based authentication by April 7, 2027. Trap: Azure AD Connect V1 was retired on August 31, 2022.
“Connect Sync scheduler” → Every 30 minutes by default; at least one cycle every 7 days; Get-/Set-ADSyncScheduler; Start-ADSyncSyncCycle -PolicyType Delta or Initial. Trap: Initial means full; Delta is delta only.
“Before changing filtering or sync rules” → Disable the scheduler (Set-ADSyncScheduler -SyncCycleEnabled $false) or use staging mode, then verify. Trap: Filtering out previously synced objects deletes them in Entra ID; the 500-deletion default needs extra steps to let deletes through.
“Server in staging mode” → Imports and synchronizes but doesn't export; no password sync or writeback. Trap: Disabling staging mode starts a password sync catch-up; don't restart the sync services.
“Cloud Sync agent prerequisites” → Domain-joined server, Hybrid Identity Administrator (not a guest), gMSA, 3 agents recommended, no Server Core. Trap: Cloud-only Hybrid Identity Administrator account prevents lockout.
“Cloud Sync scoping” → All users, selected security groups or selected organizational units; no nested groups. Trap: Group scoping is for pilots.
“Cloud Sync config accidents and health” → Accidental delete threshold and email; unhealthy jobs go into quarantine; Restart sync; on-demand provisioning for one user or group. Trap: Restart provisioning after changing the scope.
“Password hash sync basics” → Every 2 minutes (fixed); user objects only; cloud complexity policy overridden for synced users; password set to never expire by default. Trap: You can't pick a subset of users; iNetOrgPerson isn't supported.
“Expired AD account still signs in with PHS” → accountExpires isn't synchronized. Trap: A scheduled script that disables the AD account is the recommended workaround.
“Enforce on-premises account state at sign-in, no federation” → Pass-through authentication. Trap: PHS doesn't immediately enforce account state changes.
“Pass-through agents” → Outbound only (80 and 443), 3 agents recommended, treat as Tier 0, not in a perimeter network. Trap: A failed agent drops the sign-in; failover to PHS is manual.
“Leaked credentials report with PTA or federation” → Also deploy password hash synchronization. Trap: PHS is also needed for Entra Domain Services.
“Seamless SSO prompts users anyway” → Add https://autologon.microsoftazuread-sso.com to the intranet zone by Group Policy. Trap: It goes with PHS or PTA, not AD FS. Windows 10 joined devices use PRT.
“Seamless SSO account maintenance” → AZUREADSSOACC: delegation off, roll Kerberos key every 30 days with Update-AzureADSSOForest, once per forest. Trap: Running it twice breaks SSO until tickets are reissued.
“Test cloud authentication on a pilot before cutover” → Staged rollout (Hybrid Identity Administrator; max 10 groups per feature; 200 users on first add). Trap: No nested or dynamic groups; not permanent; it doesn't convert the domain.
“Final step when leaving AD FS” → Convert the domain from federated to managed (Update-MgDomain -AuthenticationType Managed). Trap: Allow up to 60 minutes; PTA agents must be Active before conversion.
“Connect Health requirements” → Entra ID P1 or P2; agent on each server; not on Server Core; not in the China cloud. Trap: The sync agent comes with Connect; PTA isn't integrated with Health.
Sources
- Introduction to Microsoft Entra Connect V2
- What is Microsoft Entra Connect and Connect Health
- Understand Microsoft Entra Connect Sync
- Connect Sync: Scheduler
- Connect prerequisites and hardware
- Connect Sync: express settings
- Authentication for hybrid identity solutions
- What is password hash synchronization
- Implement password hash synchronization
- Pass-through authentication
- Pass-through authentication quickstart
- Pass-through authentication security deep dive
- Pass-through authentication current limitations
- Seamless single sign-on
- Seamless SSO quickstart
- Seamless SSO: how it works
- Seamless SSO FAQ
- Install the Connect Health agents
- Connect Health operations
- Connect Health with sync
- Cloud authentication via staged rollout
- Migrate from federation to cloud authentication
- Connect Sync: staging server and operational tasks
- Connect Sync: configure filtering
- What is Microsoft Entra Cloud Sync?
- Cloud Sync prerequisites
- Install the provisioning agent
- Cloud Sync new agent configuration
Checked against Microsoft Learn on November 13, 2026.