Monitoring with Microsoft Entra Connect Health

Earn 25 points (50 with Pro) in two steps

  1. ① Read through the lesson — each section gets a ✓ as you scroll through it.
  2. ② 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:

  1. 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.
  2. 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.
  3. 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

  1. Log in to the Microsoft Entra admin center.
  2. Navigate to Hybrid management > Microsoft Entra Connect > Connect Health.
  3. Click on Sync services or AD FS services depending on your needs.
  4. Click Download to get the latest version of the Microsoft Entra Connect Health agent.

Step 2: Run the Installer

  1. Transfer the installer (AadConnectHealthSetup.exe) to your on-premises server.
  2. Run the executable as an administrator.
  3. 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.
  4. 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

  1. In the Entra portal, navigate to Microsoft Entra Connect Health > Sync errors.
  2. Click on Alert settings.
  3. Enable email notifications for the administrators. You can add multiple email addresses, including distribution lists (e.g., [email protected]).
  4. 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:

  1. Identify the duplicate value in the error report.
  2. Search your local Active Directory for the object that has the conflicting attribute.
  3. Rename or remove the attribute on-premises.
  4. Trigger a delta sync using PowerShell:
    Start-ADSyncSyncCycle -PolicyType Delta
    
  5. 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:

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.