API Reference
Command
Test-ADXEntraConnect
Tests Microsoft Entra Connect Sync service and event telemetry.
Examples
Example 1: Check an Entra Connect Sync server without starting the monitoring service
Test-ADXEntraConnect -ComputerName 'sync01.contoso.com'
Example 2: Check event-only Entra Connect telemetry
Test-ADXEntraConnect -ComputerName 'sync01.contoso.com' -SkipService -FailureEventId 650,680
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Test-ADXEntraConnect -ComputerName <string[]> [-AllowedRecentErrorEvents <int>] [-AllowedRecentWarningEvents <int>] [-EventLogChannel <string[]>] [-EventLookbackHours <int>] [-EventProviderName <string[]>] [-FailureEventId <int[]>] [-FailureLookbackHours <int>] [-IgnoreWarnings] [-IncludeChildResults] [-MaxConcurrency <int>] [-Name <string>] [-QueryTimeoutSeconds <int>] [-ServiceName <string[]>] [-SkipService] [-StaleSuccessCriticalHours <int>] [-StaleSuccessWarningHours <int>] [-SuccessEventId <int[]>] [-TimeoutSeconds <int>] [<CommonParameters>]#Parameters
- ComputerName string[]
- Microsoft Entra Connect Sync servers to test.
- AllowedRecentErrorEvents int
- Recent Entra Connect error events tolerated before the result changes state.
- AllowedRecentWarningEvents int
- Recent Entra Connect warning events tolerated before the result changes state.
- EventLogChannel string[]
- Event log channels to query for Entra Connect telemetry.
- EventLookbackHours int
- Event lookback window in hours.
- EventProviderName string[]
- Event provider/source names to query.
- FailureEventId int[]
- Event IDs treated as failures. Empty means warning/error levels are used.
- FailureLookbackHours int
- Failure lookback window in hours.
- IgnoreWarnings SwitchParameter
- Does not degrade the result for warning-level Entra Connect events.
- IncludeChildResults SwitchParameter
- Writes child per-server results when a multi-target aggregate is returned.
- MaxConcurrency int
- Maximum concurrent server checks.
- Name string
- Probe name written to the result object.
- QueryTimeoutSeconds int
- Timeout in seconds for each WMI and event-log query.
- ServiceName string[]
- Windows service names that must exist and run.
- SkipService SwitchParameter
- Skips service checks and evaluates only event telemetry.
- StaleSuccessCriticalHours int
- Success evidence age in hours that marks the result down. Zero disables stale-success critical status.
- StaleSuccessWarningHours int
- Success evidence age in hours that marks the result degraded. Zero disables stale-success warning.
- SuccessEventId int[]
- Event IDs treated as successful sync evidence.
- TimeoutSeconds int
- Overall per-target timeout in seconds.
Outputs
ADPlayground.Monitoring.Probes.ProbeResult