M365 Connection State monitor

Microsoft.SystemCenter.M365.UnitMonitor.ConnectionState (UnitMonitor)

Microsoft 365 Connection State monitor

Knowledge Base article:

Summary

The monitor oversees the availability of connection to Microsoft 365 API EndPoint.

Causes

An error state is caused by having issues with connecting to Microsoft 365 API EndPoint. It can be caused by the following:

Resolutions

Resolution depends on the specific error. Verify and/or fix the following:

Element properties:

TargetMicrosoft.SystemCenter.M365.Subscription
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.M365.MonitorType.ConnectionState
RemotableTrue
AccessibilityPublic
Alert Message
Connection State

Authentication message: {0}
Endpoint message: {1}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.M365.UnitMonitor.ConnectionState" Accessibility="Public" Enabled="true" Target="Microsoft.SystemCenter.M365.Subscription" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Microsoft.SystemCenter.M365.MonitorType.ConnectionState" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.M365.UnitMonitor.ConnectionState.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Property[@Name='AuthenticationMessage']$</AlertParameter1>
<AlertParameter2>$Data/Context/Property[@Name='EndPointMessage']$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Error" MonitorTypeStateID="Error" HealthState="Error"/>
<OperationalState ID="Success" MonitorTypeStateID="Success" HealthState="Success"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
<AuthorityUrl>$Target/Property[Type="Microsoft.SystemCenter.M365.Subscription"]/AuthorityUri$</AuthorityUrl>
<MicrosoftGraphUrl>$Target/Property[Type="Microsoft.SystemCenter.M365.Subscription"]/ManagementServiceUri$</MicrosoftGraphUrl>
<TenantId>$Target/Property[Type="Microsoft.SystemCenter.M365.Subscription"]/TenantId$</TenantId>
<MatchCount>1</MatchCount>
</Configuration>
</UnitMonitor>