Microsoft Azure Stack Update Run State Monitor

Microsoft.SystemCenter.AzureStack.UpdateRun.State.Monitor (UnitMonitor)

Microsoft Azure Stack update run state monitor. This monitor checks the state of the update run.

Knowledge Base article:

Summary

The monitor checks the state of the update run. If the update run is in the "Failed" state, the monitor is switched to the "Critical" state. When the update run is in the "Completed" state, the monitor is switched to the "Healthy" state. If the update run is in the "Canceled" or "Running" state, the monitor remains in its previous state.

Causes

Update run failed.

Resolutions

Try to reinstall update.

Element properties:

TargetMicrosoft.SystemCenter.AzureStack.UpdateRun
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.AzureStack.UpdateRun.State.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Update run has failed

Update run {0} is in a "Failed" state.

Region: {1}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.AzureStack.UpdateRun.State.Monitor" TypeID="Microsoft.SystemCenter.AzureStack.UpdateRun.State.MonitorType" Accessibility="Public" Enabled="true" Target="Microsoft.SystemCenter.AzureStack.UpdateRun" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" ConfirmDelivery="true">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.AzureStack.UpdateRun.State.Monitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Property[Type="Microsoft.SystemCenter.AzureStack.Update"]/Name$</AlertParameter1>
<AlertParameter2>$Target/Host/Host/Property[Type="Microsoft.SystemCenter.AzureStack.Region"]/Name$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Healthy" MonitorTypeStateID="Healthy" HealthState="Success"/>
<OperationalState ID="Critical" MonitorTypeStateID="Critical" HealthState="Error"/>
</OperationalStates>
<Configuration>
<DeploymentId>$Target/Host/Host/Host/Property[Type="Microsoft.SystemCenter.AzureStack.Deployment"]/EndpointUrl$</DeploymentId>
<TimeoutSeconds>60</TimeoutSeconds>
<IntervalSeconds>180</IntervalSeconds>
<RegionId>$Target/Host/Host/Property[Type="Microsoft.SystemCenter.AzureStack.Region"]/RegionId$</RegionId>
<UpdateId>$Target/Host/Property[Type="Microsoft.SystemCenter.AzureStack.Update"]/Id$</UpdateId>
<UpdateRunId>$Target/Property[Type="Microsoft.SystemCenter.AzureStack.UpdateRun"]/Id$</UpdateRunId>
<DefaultRegion>$Target/Host/Host/Host/Property[Type="Microsoft.SystemCenter.AzureStack.Deployment"]/Region$</DefaultRegion>
<Region>$Target/Host/Host/Property[Type="Microsoft.SystemCenter.AzureStack.Region"]/Name$</Region>
<Update>$Target/Host/Property[Type="Microsoft.SystemCenter.AzureStack.Update"]/Name$</Update>
<UpdateRun>$Target/Property[Type="Microsoft.SystemCenter.AzureStack.UpdateRun"]/Name$</UpdateRun>
</Configuration>
</UnitMonitor>