Lesson 30 — Microsoft Entra Cloud Sync Troubleshooting
Microsoft Entra Cloud Sync is designed to provide lightweight, resilient hybrid identity synchronisation, but successful operation still depends on healthy provisioning agents, working network paths, correct scope, valid source data and stable target processing.
When synchronisation stalls, the visible symptom may be a missing user, stale attribute, duplicate object, growing failure count or a configuration placed into quarantine. The fastest route to recovery is a structured investigation that separates agent health, connectivity, scope, matching, attribute and service problems.
This lesson explains how to troubleshoot Microsoft Entra Cloud Sync from the source directory through the agent pool and provisioning service to Microsoft Entra ID, using Provisioning Logs, agent status, object identifiers, error patterns and controlled retesting.

What you will learn
This lesson explains how to troubleshoot Microsoft Entra Cloud Sync across provisioning agents, network connectivity, scope, matching, mappings and configuration health.
Learning objectives
After completing this lesson, you should be able to investigate Microsoft Entra Cloud Sync problems methodically and restore synchronisation without relying on trial and error.
- Define the major Cloud Sync troubleshooting boundaries.
- Validate provisioning agent and agent-pool health.
- Investigate service, registration and connectivity failures.
- Use Provisioning Logs to isolate object-level problems.
- Diagnose scope, matching and attribute-mapping issues.
- Recognise quarantine, retry and stalled-processing patterns.
- Separate single-object failures from configuration-wide outages.
- Build a safe recovery and verification workflow.
The problem this solves
Cloud Sync incidents rarely present as one clear failure. An agent may appear active while one configuration is unhealthy, one organisational unit is excluded or a target object is blocked by a duplicate value.
A structured workflow prevents unnecessary agent reinstalls, broad scope changes and repeated restarts that hide the original evidence.
Cloud Sync troubleshooting boundaries
Start with the symptom
Write down exactly what is wrong before changing anything. The troubleshooting path for one missing user differs from the path for an entire configuration that has stopped processing.
- One object missing
- One attribute stale
- Many objects failing
- No recent provisioning activity
- Duplicate objects created
- Configuration in quarantine
Establish the blast radius
Determine whether the issue affects one identity, one organisational unit, one agent, one configuration or every Cloud Sync workflow.
The blast radius is one of the strongest clues to the failure boundary.
Symptom-to-boundary guide
| Symptom | Likely boundary | First evidence |
|---|---|---|
| One user missing | Scope, source data, matching or object-level error | Provisioning Logs for that identity |
| One OU missing | Configuration scope or directory permissions | Scope configuration and source placement |
| All users in one job failing | Configuration, credentials, mapping or target service | Failure grouping by job and error |
| No activity from one server | Agent service, registration, proxy or network | Agent status and local service logs |
| Duplicate cloud users | Matching rules or non-unique attributes | Source and target object identifiers |
| Configuration quarantined | Persistent high failure rate or unrecoverable processing issue | Configuration health and repeated error pattern |
Agent health
Confirm that each provisioning agent is installed, registered and reporting as expected. A healthy agent pool should not depend on a single server.
Check whether the agent service is running, whether the server was recently restarted and whether security software or patching changed local behaviour.
Agent pool resilience
Multiple agents provide resilience only when they are independently healthy and able to reach the required services.
Two agents behind the same failed proxy or network path do not provide meaningful redundancy.
Agent validation checklist
| Check | Question | Evidence |
|---|---|---|
| Service state | Is the provisioning agent service running? | Windows service status and recent restarts |
| Registration | Is the agent associated with the expected tenant and configuration? | Portal status and registration details |
| Version | Are agents running supported and consistent versions? | Installed version inventory |
| Host health | Is the server resource constrained or unstable? | CPU, memory, disk, event logs and uptime |
| Security controls | Did antivirus, firewall or hardening block the service? | Protection history and policy changes |
| Redundancy | Can another agent process work successfully? | Agent-pool status and recent activity |
Connectivity failures
The provisioning agent requires outbound connectivity to Microsoft cloud services and reliable access to the source Active Directory environment.
Proxy authentication, TLS inspection, DNS, firewall rules and service-account restrictions can interrupt processing even when the server remains online.
Connectivity questions
- Can the agent resolve required endpoints?
- Can it establish outbound HTTPS sessions?
- Was a proxy, firewall or inspection policy changed?
- Can it reach the required domain controllers?
- Are certificates and system time valid?
- Is the same failure present on every agent?
Connectivity decision tree
Provisioning Logs
Provisioning Logs remain the primary source for object-level Cloud Sync evidence. Search by identity, status, action, job and time range.
Read the detailed record, not only the summary row. The skip reason, processing step, source and target identifiers and modified properties usually reveal the next action.
Group failures by pattern
Do not investigate hundreds of events individually when they share the same error.
Group by job, status, error code, time and affected object type to identify whether the root cause is common.
Object-level outcomes
| Outcome | Meaning | Troubleshooting action |
|---|---|---|
| Success | The recorded action completed | Verify target attributes and object state |
| Failure | The service attempted the operation but could not complete it | Read the full error and identify the failing boundary |
| Skipped | The object was evaluated but no target action was taken | Review scope, eligibility, assignment and matching |
| Repeated retry | The service continues attempting recovery | Determine whether the issue is transient or persistent |
| No event | The object may not have been discovered or the job may not be processing | Check source visibility, scope and agent activity |
Scope problems
Cloud Sync can operate normally while expected users remain absent because they are outside the configured organisational units, groups or attribute filters.
Always compare the object's current source placement with the intended scope.
Scope checks
- Correct organisational unit
- Required group membership
- Expected attribute-filter values
- Configuration enabled and assigned
- No exclusion rule taking precedence
- Source object visible to the agent
Missing-object workflow
Object matching failures
Cloud Sync must identify whether a source object should join an existing cloud identity or create a new one.
Non-unique or inconsistent matching values can cause duplicate objects, incorrect joins or provisioning failures.
Matching evidence
- Source object ID
- Target object ID
- User principal name
- Mail and proxy addresses
- Matching attribute values
- Soft-deleted or conflicting targets
Matching failure patterns
| Pattern | Possible cause | Validation |
|---|---|---|
| Duplicate cloud object | Existing target did not satisfy the matching rule | Compare source and target matching values |
| Duplicate-value error | UPN, mail or proxy address already exists | Search active and deleted target objects |
| Wrong object updated | Matching value was not unique | Review stable object IDs and authoritative data |
| Join never occurs | Source or target value differs in format or content | Compare exact values, including hidden characters |
Attribute-mapping failures
A user may be created successfully while one or more attributes remain missing, invalid or stale.
Review the source value, mapping or transformation, value sent to the target and the target response.
Common mapping issues
- Required source value is empty
- Invalid format or excessive length
- Transformation produces an unexpected result
- Attribute is not included in the mapping
- Target value conflicts with another object
- Source authority is misunderstood
Common Cloud Sync failures
| Failure | Likely cause | First action |
|---|---|---|
| Agent unavailable | Stopped service, host issue, registration or network failure | Validate agent service, host and portal status |
| Authentication or authorisation error | Credential, role or directory permission issue | Review recent credential and permission changes |
| Object outside scope | OU, group or attribute filter exclusion | Compare source object with configured scope |
| Duplicate attribute | UPN, mail or proxy address collision | Search target and deleted objects |
| Invalid attribute | Unsupported value, format or transformation | Review modified properties and mapping |
| No recent events | Job disabled, agent path broken or source not discovered | Check configuration health and agent activity |
| Persistent retries | Unresolved transient-looking error | Group repeated events and identify common cause |
Quarantine
A provisioning configuration can enter quarantine when persistent failures make continued normal processing unsafe or ineffective.
Quarantine is a protective state and a symptom of an unresolved root cause—not the root cause itself.
Quarantine mistakes
- Restarting without reading repeated errors
- Assuming the agent itself is broken
- Clearing the state before correcting the cause
- Ignoring the percentage of failed objects
- Making broad scope changes during recovery
Quarantine recovery workflow
Configuration-wide failures
When many objects fail at the same time, prioritise shared dependencies: credentials, permissions, agent connectivity, target availability, mapping changes and configuration scope.
A sudden common start time often points to a recent administrative or infrastructure change.
Single-object failures
When other users continue to synchronise, focus on the affected source object, scope eligibility, unique values, matching and attribute quality.
Do not reinstall agents to solve a problem isolated to one identity.
Safe recovery workflow
Agent Foskett investigation: “The synchronisation stopped…”
Common mistakes
- Reinstalling agents before checking object-level logs.
- Assuming active means fully healthy.
- Ignoring skipped events.
- Changing multiple settings at once.
- Clearing quarantine without correcting the cause.
- Testing recovery with the entire directory.
- Closing the incident before verifying target objects.
Best practices
- Maintain at least two independently healthy agents.
- Baseline normal event and failure volumes.
- Keep scope narrow and documented.
- Use stable, unique matching attributes.
- Validate mapping changes with test objects.
- Capture identifiers and timestamps for every incident.
- Document root cause, correction and verification.
Key takeaways
- Cloud Sync troubleshooting should begin with the exact symptom and blast radius.
- Agent health, connectivity, scope, matching, mappings and target processing are separate failure boundaries.
- A healthy agent does not prove that every configuration or object is synchronising.
- Provisioning Logs provide the strongest object-level evidence.
- One missing user usually requires a different investigation from a configuration-wide outage.
- Skipped events commonly reveal scope and eligibility problems.
- Duplicate attributes and matching failures can create widespread provisioning errors.
- Quarantine is a protective state caused by persistent failure, not a diagnosis.
- Recovery should correct one root cause and retest a controlled object.
- Verification must include target objects, failure trends, agent health and recurrence monitoring.
Related Agent Foskett resources
Continue learning
Microsoft Entra Cloud Sync Troubleshooting
Microsoft Entra Cloud Sync troubleshooting includes validating provisioning agents, agent pools, connectivity, configuration health, source scope, object matching, attribute mappings, Provisioning Logs, retries and quarantine.
Microsoft Entra Academy Lesson 30 — Cloud Sync Troubleshooting
This Agent Foskett lesson explains how to diagnose missing identities, stalled synchronisation, duplicate objects, persistent failures and quarantined Cloud Sync configurations using a repeatable evidence-driven workflow.
