Microsoft Azure Stack Infrastructure Role State Monitor

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

Microsoft Azure Stack infrastructure role state monitor. This monitor checks the status of the Infrastructure Role.

Knowledge Base article:

Summary

The monitor checks the state of the infrastructure role. If the state is warning, it is switched to the “Warning" state. If the state is critical, the state is switched to the “Critical".

Causes

Infrastructure role has warning or critical alerts.

Resolutions

Check infrastructure role instances.

Element properties:

TargetMicrosoft.SystemCenter.AzureStack.InfrastructureRole
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.AzureStack.InfrastructureRole.State.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Infrastructure Role {0} is unhealthy

Infrastructure Role {0} is not running properly

Region: {1}
RunAsDefault

Source Code:

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