Monitoring with Microsoft Entra Connect Health
Earn 25 points (50 with Pro) in two steps
- ① Read through the lesson — each section gets a ✓ as you scroll through it.
- ② When every section has a ✓, tap Complete lesson.
0 of 11 read · keep scrolling
✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro
Monitoring Identity Synchronization with Microsoft Entra Connect Health
Introduction: The Critical Role of Identity Monitoring
In modern hybrid cloud environments, the bridge between your on-premises Active Directory (AD) and Microsoft Entra ID (formerly Azure AD) is the most critical piece of infrastructure you own. When this bridge—typically managed by Microsoft Entra Connect (or the newer Microsoft Entra Cloud Sync)—fails, users cannot log in, password resets stop syncing, and group memberships become stale. This leads to immediate productivity loss and significant security risks, as users might be unable to access the resources they need, or worse, offboarded users might retain access to cloud applications because their account deletion failed to replicate.
Monitoring this synchronization process is not merely a "nice to have" administrative task; it is a fundamental requirement for maintaining a secure and functional organization. Microsoft Entra Connect Health is the primary tool designed to provide visibility into this identity bridge. It acts as a sentry, watching over your synchronization servers, AD Federation Services (AD FS), and even your domain controllers. By centralizing health data, alerts, and performance metrics, it allows administrators to shift from reactive firefighting to proactive maintenance.
This lesson explores how to implement, configure, and manage Microsoft Entra Connect Health. We will move beyond the basic installation and look at how to interpret the data, set up effective alerting, and troubleshoot common synchronization failures that often plague hybrid identity environments.
Not read yet
Understanding the Architecture of Entra Connect Health
Before we dive into the configuration steps, it is important to understand what happens under the hood. Entra Connect Health is not a local application that runs solely on your server; it is a cloud-based service that relies on an agent installed on your on-premises servers. This agent collects telemetry data, performance counters, and error logs, and securely transmits them to the Microsoft Entra portal.
The Components of the Health Service
The architecture consists of three main parts:
- The Health Agent: This lightweight service runs on your on-premises Windows Server (where Entra Connect or AD FS is installed). It gathers metadata, synchronization statistics, and event logs.
- The Data Pipeline: Data is encrypted and sent over HTTPS (port 443) to the Microsoft Entra cloud. This means you do not need to open inbound ports on your firewall, which keeps your internal network secure.
- The Portal Interface: This is where you view the reports, configure alerts, and manage the health of your identity infrastructure. It provides a "single pane of glass" view across multiple servers, even if they are geographically dispersed.
Callout: Entra Connect vs. Entra Cloud Sync It is important to distinguish between the two synchronization agents. Microsoft Entra Connect (the classic sync engine) has been the standard for years. Microsoft Entra Cloud Sync is a newer, lightweight agent-based model. Entra Connect Health supports both, but the way you view data and manage the agents differs slightly based on the sync model you choose. Always ensure your agent version matches the sync tool you are using to avoid reporting discrepancies.
Not read yet
Preparing for Installation
Before deploying the agents, you must ensure that your environment meets the necessary prerequisites. Many synchronization failures occur because of misconfigured networking or insufficient permissions during the initial setup.
Networking Requirements
The Health agent requires outbound connectivity to specific Microsoft endpoints. If your servers are behind a strict proxy or firewall, you must whitelist the following URLs:
*.adhybridhealth.azure.com*.queue.core.windows.net*.blob.core.windows.net
Ensure that the servers can communicate over HTTPS (port 443). If you are using a proxy server, you may need to configure the agent to use that proxy via the netsh command or by updating the registry, though modern versions of the agent usually detect system-wide proxy settings automatically.
Permissions
To install the agent, you need to be a local administrator on the server. However, to view the data in the Entra portal, you need specific roles in Microsoft Entra ID. The recommended roles for monitoring are:
- Global Reader: Allows viewing of all reports and health alerts.
- Security Reader: Provides access to security-related alerts within the health dashboard.
- Global Administrator: Required if you need to perform configuration changes, though it is best practice to use a more limited role for daily monitoring.
Not read yet
Step-by-Step: Installing the Entra Connect Health Agent
Installing the agent is a straightforward process, but it must be done on every server that participates in the synchronization or federation process.
Step 1: Download the Agent
- Log in to the Microsoft Entra admin center.
- Navigate to Hybrid management > Microsoft Entra Connect > Connect Health.
- Click on Sync services or AD FS services depending on your needs.
- Click Download to get the latest version of the Microsoft Entra Connect Health agent.
Step 2: Run the Installer
- Transfer the installer (
AadConnectHealthSetup.exe) to your on-premises server. - Run the executable as an administrator.
- Follow the prompts. You will be asked to sign in with a Microsoft Entra account that has the necessary permissions to register the server with the service.
- The installation process will register the server in the portal and start the
Microsoft Entra Connect Health Sync Insights Service(and related services).
Tip: Automating Deployment If you have a large environment with dozens of servers, you don't need to manually install the agent on each one. You can use PowerShell to deploy the agent silently. Use the command:
AadConnectHealthSetup.exe /q /t C:\InstallLogs. This is useful for scripted deployments via Group Policy or Configuration Manager.
Not read yet
Configuring Monitoring and Alerts
Once the agent is running, you will start seeing data in the portal within 30 to 60 minutes. However, the true value of the tool lies in its alerting capabilities. By default, you might not be notified when something goes wrong, so you must configure your notification preferences.
Setting Up Alerts
- In the Entra portal, navigate to Microsoft Entra Connect Health > Sync errors.
- Click on Alert settings.
- Enable email notifications for the administrators. You can add multiple email addresses, including distribution lists (e.g.,
[email protected]). - Define the alert severity levels. It is recommended to set alerts for "High" and "Medium" severity.
Understanding Alert Types
- Sync Errors: These are the most common alerts. They occur when an object fails to synchronize because of a validation error, such as a duplicate UPN or a missing attribute value.
- Sync Latency: This monitors how long it takes for a change on-premises to appear in the cloud. If the sync cycle is consistently taking too long, it indicates resource contention on the sync server.
- Service Health: These alerts trigger if the sync services themselves stop running. This is a critical alert that requires immediate attention.
Not read yet
Troubleshooting Common Synchronization Errors
Monitoring is only half the battle. When an alert hits your inbox, you need to know how to resolve the underlying issue. The Entra Connect Health portal provides a detailed breakdown of synchronization errors, often including the specific object that failed and why.
Common Error: Duplicate Attribute
One of the most frequent errors is AttributeValueMustBeUnique. This happens when you try to create or update a user with a proxyAddresses or userPrincipalName that already exists in the cloud.
How to fix it:
- Identify the duplicate value in the error report.
- Search your local Active Directory for the object that has the conflicting attribute.
- Rename or remove the attribute on-premises.
- Trigger a delta sync using PowerShell:
Start-ADSyncSyncCycle -PolicyType Delta - Wait for the next sync cycle or monitor the progress in the Health portal.
Common Error: Data Validation
Sometimes an object fails because it doesn't meet the requirements for a cloud user, such as an invalid character in an attribute or a missing mandatory field. The Health portal will flag these as "Data Validation" errors.
Warning: Bulk Editing Never attempt to fix sync errors by manually editing attributes in the cloud (via the Entra portal). Any change you make in the cloud will be overwritten by the next synchronization cycle from your on-premises environment. Always fix the source of truth—the on-premises Active Directory—and let the sync engine push the change to the cloud.
Not read yet
Advanced Monitoring: Performance Counters and Usage
Entra Connect Health isn't just about errors; it's about performance. You can use the Sync Insights section to view the "Sync Throughput" and "Sync Latency" graphs. These are vital for capacity planning.
Analyzing Throughput
If your organization is planning a large-scale migration, such as moving 5,000 users to a new department or performing a bulk update of attributes, you should monitor your throughput. If you see the sync latency spike, it means your server is struggling to process the queue.
Best Practices for Performance
- Server Resources: Ensure your sync server has enough RAM and CPU. The sync engine is a database-heavy application; it relies heavily on SQL Server (or SQL Express).
- Database Maintenance: Periodically re-index your SQL database. As the sync database grows, performance can degrade.
- Exclude Unnecessary OUs: Do not sync every single object in your Active Directory. Only sync the Organizational Units (OUs) that contain objects that actually need cloud access. This reduces the load on the sync engine and decreases the chance of sync errors.
Not read yet
Comparison: Entra Connect Health vs. Native Windows Event Logs
While Entra Connect Health is excellent, some administrators wonder why they can't just use standard Windows Event Logs. The following table highlights the difference.
| Feature | Windows Event Logs | Entra Connect Health |
|---|---|---|
| Centralization | Requires log forwarding/SIEM | Built-in cloud portal |
| Visualization | None (raw text) | Graphical dashboards |
| Proactive Alerts | Requires complex setup | Native email alerts |
| Context | Server-specific | Tenant-wide (multi-server) |
| Ease of Use | High technical barrier | Low (GUI-based) |
As shown, while Event Logs are useful for deep-dive forensic analysis, they are not a replacement for a health monitoring solution. Entra Connect Health provides the "big picture" that is necessary for managing an enterprise identity environment.
Best Practices for Identity Monitoring
To keep your identity synchronization healthy, follow these industry-standard practices:
1. Implement a "Zero-Error" Policy
Do not let sync errors accumulate. Treat every sync error as a potential security or productivity incident. If you have a backlog of 50 errors, you will eventually lose track of which ones are critical. Aim to clear the error queue daily.
2. Monitor the Service Account
The service account used by the Entra Connect tool is a high-privilege account. Monitor its password expiration and ensure it is not locked out. If the service account loses its permissions, the sync will stop entirely.
3. Use PowerShell for Proactive Checks
While the portal is great, you can automate health checks using the ADSync PowerShell module. Create a scheduled task that runs a script to check the status of the sync cycles and emails you if a cycle has failed to complete in the last 24 hours.
# Example: Check the last successful sync time
$lastSync = Get-ADSyncScheduler | Select-Object -ExpandProperty LastSyncCycleStartTime
$threshold = (Get-Date).AddHours(-24)
if ($lastSync -lt $threshold) {
Send-MailMessage -To "[email protected]" -Subject "Sync Failure Alert" -Body "The last sync occurred at $lastSync"
}
4. Keep the Agent Updated
Microsoft frequently releases updates for the Entra Connect Health agent. These updates often include security patches and performance improvements. Set a maintenance schedule to update the agent at least once a quarter.
5. Document Your Sync Rules
If you have custom sync rules (e.g., filtering users based on a specific attribute), document them clearly. When an object fails to sync, knowing the custom rules will help you determine if it is a bug or if the object is being intentionally filtered out.
Not read yet
Common Pitfalls to Avoid
Even experienced administrators can fall into traps when managing hybrid identities. Here are the most common mistakes:
- Ignoring "Warning" Alerts: Many admins focus only on "Error" status and ignore "Warning" status. Warnings often precede failures. For example, a warning about a pending password expiration for the sync service account can save you from a complete outage.
- Over-complicating the Sync Engine: Adding too many custom attributes or complex transformations to the sync rules makes the system fragile. Keep the sync logic as simple as possible.
- Failing to Test in Staging: If you are using the "Staging Mode" feature of Entra Connect, use it! It allows you to run a standby sync server that doesn't write to the cloud but processes all the data. This is the perfect place to test configuration changes before they go live.
- Lack of Disaster Recovery: What happens if your sync server dies? Do you have the configuration exported? Always export your Entra Connect configuration to a secure location. This allows you to rebuild the server quickly if hardware fails.
Not read yet
Deep Dive: Managing AD FS Health
If your organization uses AD FS for Single Sign-On (SSO), Entra Connect Health provides even deeper monitoring. It tracks:
- Token Issuance: Are users able to get tokens?
- Authentication Success/Failure: Are there spikes in failed logins?
- Network Latency: Is the latency between the AD FS server and the domain controllers within acceptable limits?
If you are using Password Hash Sync (PHS) or Pass-Through Authentication (PTA), the monitoring focus shifts to the health of the agents. For PTA, ensure you have multiple agents installed. Entra Connect Health will alert you if your primary agent goes down and you have no redundancy.
Callout: High Availability for PTA If you rely on Pass-Through Authentication, do not settle for a single agent. Install a minimum of two agents on separate servers. Entra Connect Health will monitor both. If one agent fails, the system automatically routes traffic to the other, and the Health portal will notify you that your high-availability configuration is degraded.
Not read yet
Integrating with SIEM Systems
For large enterprises, the Entra portal might not be enough. You may want to ingest your identity health data into a Security Information and Event Management (SIEM) system like Microsoft Sentinel or a third-party tool.
You can export the data from the Entra portal via the Microsoft Graph API. This allows you to create custom dashboards that combine identity sync health with other infrastructure metrics. For example, you could correlate a spike in sync errors with a recent change in your group policy settings, providing a much faster root-cause analysis.
Key Takeaways
After completing this lesson, you should be equipped to manage the health of your hybrid identity environment effectively. Keep these core principles in mind:
- Visibility is Paramount: You cannot fix what you cannot see. Microsoft Entra Connect Health is the primary source of truth for your identity bridge; ensure it is deployed on all sync and federation servers.
- Proactive Alerting Saves Time: Configure email notifications immediately upon deployment. Waiting for a user to report a login issue is the "old way" of managing IT—be the first to know when a sync error occurs.
- Fix the Source, Not the Cloud: Always remember that your on-premises Active Directory is the source of truth. Never manually force-edit cloud attributes to fix sync errors, as those changes will be reverted by the next sync cycle.
- Redundancy is Mandatory: For Pass-Through Authentication and AD FS, redundancy isn't optional. Use the Health portal to ensure your secondary agents are active and healthy.
- Maintain the Infrastructure: Treat your sync servers like production database servers. Keep them patched, monitor their resource usage, and perform database maintenance to ensure they can handle your organization's growth.
- Regular Audits: Periodically review the "Sync Errors" list. Even minor, non-blocking errors can hide larger systemic issues that might eventually lead to a service outage.
- Documentation Matters: Keep your sync rules and custom configurations documented. If the primary identity admin is unavailable, the rest of the team must understand how the synchronization logic works to perform effective troubleshooting.
By following these practices, you transform identity synchronization from a fragile, error-prone process into a resilient, monitored service that supports your organization's security and productivity goals. Monitoring is the foundation of a stable identity infrastructure; invest the time to set it up correctly, and it will pay dividends in reduced downtime and improved administrative efficiency.
Not read yet
Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.
- Creating a Microsoft 365 Tenant
- Creating a Microsoft 365 Tenant Quiz5q
- Implementing and Managing Domains
- Implementing and Managing Domains Quiz5q
- Configuring Organization Settings
- Configuring Organization Settings Quiz5q
- Monitoring Microsoft 365 Service Health
- Monitoring Microsoft 365 Service Health Quiz5q
- Configuring Network Connectivity Insights
- Configuring Network Connectivity Insights Quiz5q
- Managing Software Updates in Microsoft 365
- Managing Software Updates in Microsoft 365 Quiz5q
- Monitoring Microsoft 365 Adoption and Usage
- Monitoring Microsoft 365 Adoption and Usage Quiz5q
- Configuring Microsoft 365 Backup
- Configuring Microsoft 365 Backup Quiz5q
- Creating and Managing Users in Microsoft Entra ID
- Creating and Managing Users in Microsoft Entra ID Quiz5q
- Managing External Users and Guest Access
- Managing External Users and Guest Access Quiz5q
- Creating and Managing Contacts
- Creating and Managing Contacts Quiz5q
- Creating and Managing Microsoft 365 Groups
- Creating and Managing Microsoft 365 Groups Quiz5q
- Managing Shared Mailboxes
- Managing Shared Mailboxes Quiz5q
- Managing Microsoft 365 Licenses
- Managing Microsoft 365 Licenses Quiz5q
- Performing Bulk User Management with PowerShell
- Performing Bulk User Management with PowerShell Quiz5q
- Implementing Group-Based Licensing
- Implementing Group-Based Licensing Quiz5q
- Implementing Roles in Microsoft 365
- Implementing Roles in Microsoft 365 Quiz5q
- Managing Microsoft Entra ID Roles
- Managing Microsoft Entra ID Roles Quiz5q
- Managing Permissions for Microsoft Defender XDR
- Managing Permissions for Microsoft Defender XDR Quiz5q
- Managing Delegation with Administrative Units
- Managing Delegation with Administrative Units Quiz5q
- Managing Roles with Privileged Identity Management
- Managing Roles with Privileged Identity Management Quiz5q
- Managing Microsoft Purview Permissions
- Managing Microsoft Purview Permissions Quiz5q
- Preparing for Identity Synchronization
- Preparing for Identity Synchronization Quiz5q
- Using IdFix for Directory Cleanup
- Using IdFix for Directory Cleanup Quiz5q
- Implementing Microsoft Entra Connect Sync
- Implementing Microsoft Entra Connect Sync Quiz5q
- Implementing Microsoft Entra Cloud Sync
- Implementing Microsoft Entra Cloud Sync Quiz5q
- Monitoring with Microsoft Entra Connect Health
- Monitoring with Microsoft Entra Connect Health Quiz5q
- Troubleshooting Synchronization Issues
- Troubleshooting Synchronization Issues Quiz5q
- Implementing Authentication Methods
- Implementing Authentication Methods Quiz5q
- Implementing Self-Service Password Reset
- Implementing Self-Service Password Reset Quiz5q
- Implementing Microsoft Entra Password Protection
- Implementing Microsoft Entra Password Protection Quiz5q
- Investigating Authentication Issues
- Investigating Authentication Issues Quiz5q
- Configuring Passwordless Authentication
- Configuring Passwordless Authentication Quiz5q
- Planning for Identity Protection
- Planning for Identity Protection Quiz5q
- Implementing Microsoft Entra Identity Protection
- Implementing Microsoft Entra Identity Protection Quiz5q
- Planning Conditional Access Policies
- Planning Conditional Access Policies Quiz5q
- Implementing Conditional Access Policies
- Implementing Conditional Access Policies Quiz5q
- Implementing Multifactor Authentication
- Implementing Multifactor Authentication Quiz5q
- Configuring Named Locations
- Configuring Named Locations Quiz5q
- Understanding Microsoft Security Exposure Management
- Understanding Microsoft Security Exposure Management Quiz5q
- Managing Microsoft Secure Score
- Managing Microsoft Secure Score Quiz5q
- Reviewing and Responding to Incidents
- Reviewing and Responding to Incidents Quiz5q
- Using Advanced Hunting in Defender XDR
- Using Advanced Hunting in Defender XDR Quiz5q
- Reviewing Defender XDR Reports
- Reviewing Defender XDR Reports Quiz5q
- Using Microsoft Defender Threat Intelligence
- Using Microsoft Defender Threat Intelligence Quiz5q
- Configuring Custom Detection Rules
- Configuring Custom Detection Rules Quiz5q
- Implementing Threat Policies in Defender for Office 365
- Implementing Threat Policies in Defender for Office 365 Quiz5q
- Configuring Alert Policies
- Configuring Alert Policies Quiz5q
- Investigating Email and Collaboration Threats
- Investigating Email and Collaboration Threats Quiz5q
- Managing Attack Simulation Training
- Managing Attack Simulation Training Quiz5q
- Managing Restricted Entities
- Managing Restricted Entities Quiz5q
- Onboarding Devices to Defender for Endpoint
- Onboarding Devices to Defender for Endpoint Quiz5q
- Configuring Endpoint Settings
- Configuring Endpoint Settings Quiz5q
- Using Vulnerability Management Dashboard
- Using Vulnerability Management Dashboard Quiz5q
- Responding to Endpoint Vulnerabilities
- Responding to Endpoint Vulnerabilities Quiz5q
- Managing Automated Investigation and Remediation
- Managing Automated Investigation and Remediation Quiz5q
- Configuring App Connector for Microsoft 365
- Configuring App Connector for Microsoft 365 Quiz5q
- Configuring Cloud Apps Policies
- Configuring Cloud Apps Policies Quiz5q
- Interpreting Activity Logs
- Interpreting Activity Logs Quiz5q
- Configuring Cloud App Discovery
- Configuring Cloud App Discovery Quiz5q
- Responding to Cloud App Discovery Issues
- Responding to Cloud App Discovery Issues Quiz5q
- Implementing Sensitive Information Types
- Implementing Sensitive Information Types Quiz5q
- Using Keywords and Regular Expressions
- Using Keywords and Regular Expressions Quiz5q
- Implementing Retention Labels and Policies
- Implementing Retention Labels and Policies Quiz5q
- Implementing Sensitivity Labels and Policies
- Implementing Sensitivity Labels and Policies Quiz5q
- Monitoring Label Usage with Content Explorer
- Monitoring Label Usage with Content Explorer Quiz5q
- Using Activity Explorer and Label Reports
- Using Activity Explorer and Label Reports Quiz5q
- Configuring Auto-Labeling Policies
- Configuring Auto-Labeling Policies Quiz5q
- Configuring DLP Policies for Exchange Online
- Configuring DLP Policies for Exchange Online Quiz5q
- Configuring DLP for SharePoint and OneDrive
- Configuring DLP for SharePoint and OneDrive Quiz5q
- Configuring DLP for Teams and Power BI
- Configuring DLP for Teams and Power BI Quiz5q
- Configuring DLP for Microsoft 365 Copilot
- Configuring DLP for Microsoft 365 Copilot Quiz5q
- Configuring Endpoint DLP
- Configuring Endpoint DLP Quiz5q
- Reviewing DLP Alerts and Events
- Reviewing DLP Alerts and Events Quiz5q
- Responding to DLP Reports
- Responding to DLP Reports Quiz5q
Spend your points to unlock exam-style practice questions
Spend points to unlock MS-102 exam-style practice questions.
Practice for MS-102