Microsoft Azure Stack Hub App Service Role Instance State Monitor

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

Microsoft Azure Stack Hub App Service Role Instance state monitor. This monitor checks the App Service Role Instance state.

Knowledge Base article:

Summary

The monitor checks app service role instance state. If the app service role instance is in the Offline/Not Ready/Installing state, the monitor is switched to the "Warning" state. When the app service role instance is in the Ready state, the monitor is switched to the "Healthy" state. If the app service role instance is in any other state, the monitor remains in its previous state.

Causes

App Service Role Instance is in Offline/Not Ready/Installing state.

Resolutions

Check if App Service Role Instance is available and working correctly.

Element properties:

TargetMicrosoft.SystemCenter.AzureStack.WebAppsRoleInstance
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.AzureStack.WebAppsRoleInstance.State.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
App Service Role Instance {0} is in Offline/Not Ready/Installing state

App Service Role Instance {0} is in Offline/Not Ready/Installing state

Region: {1}
App Service Role: {2}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.AzureStack.WebAppsRoleInstance.State.Monitor" TypeID="Microsoft.SystemCenter.AzureStack.WebAppsRoleInstance.State.MonitorType" Accessibility="Public" Enabled="true" Target="Microsoft.SystemCenter.AzureStack.WebAppsRoleInstance" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" ConfirmDelivery="true">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.AzureStack.WebAppsRoleInstance.State.Monitor.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="Microsoft.SystemCenter.AzureStack.WebAppsRoleInstance"]/Name$</AlertParameter1>
<AlertParameter2>$Target/Host/Host/Property[Type="Microsoft.SystemCenter.AzureStack.Region"]/Name$</AlertParameter2>
<AlertParameter3>$Target/Host/Property[Type="Microsoft.SystemCenter.AzureStack.WebAppsRole"]/Name$</AlertParameter3>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Healthy" MonitorTypeStateID="Healthy" HealthState="Success"/>
<OperationalState ID="Warning" MonitorTypeStateID="Warning" HealthState="Warning"/>
</OperationalStates>
<Configuration>
<DeploymentId>$Target/Host/Host/Host/Property[Type="Microsoft.SystemCenter.AzureStack.Deployment"]/EndpointUrl$</DeploymentId>
<TimeoutSeconds>120</TimeoutSeconds>
<IntervalSeconds>900</IntervalSeconds>
<RegionId>$Target/Host/Host/Property[Type="Microsoft.SystemCenter.AzureStack.Region"]/RegionId$</RegionId>
<RegionName>$Target/Host/Host/Property[Type="Microsoft.SystemCenter.AzureStack.Region"]/Name$</RegionName>
<DefaultRegion>$Target/Host/Host/Host/Property[Type="Microsoft.SystemCenter.AzureStack.Deployment"]/Region$</DefaultRegion>
<WebAppsRoleInstanceId>$Target/Property[Type="Microsoft.SystemCenter.AzureStack.WebAppsRoleInstance"]/Id$</WebAppsRoleInstanceId>
<WebAppServiceEndpointUrl>$Target/Host/Host/Host/Property[Type="Microsoft.SystemCenter.AzureStack.Deployment"]/WebAppServiceEndpointUrl$</WebAppServiceEndpointUrl>
<WebAppServiceApiVersion>$Target/Host/Host/Host/Property[Type="Microsoft.SystemCenter.AzureStack.Deployment"]/WebAppServiceApiVersion$</WebAppServiceApiVersion>
<OverrideWebAppServiceEndpointUrl>
$Target/Host/Host/Host/Property[Type="Microsoft.SystemCenter.AzureStack.Deployment"]/OverrideWebAppServiceEndpointUrl$
</OverrideWebAppServiceEndpointUrl>
</Configuration>
</UnitMonitor>