System Center 2019+ Virtual Machine Manager Cloud VMUsageCount

Microsoft.SystemCenter.VirtualMachineManager.CloudVMUsageCountMonitor (UnitMonitor)

Monitors the private cloud virtual machine usage count

Knowledge Base article:

Summary

The Virtual Machine Usage monitor tracks the number of virtual machines and service instances running in the private cloud. When this count approaches the defined private cloud capacity, the monitor will go into a warning or critical state.

Causes

Virtual machine usage within the private cloud is approaching the defined cloud capacity. By default, when virtual machine usage exceeds 90% of private cloud capacity, the monitor will go into a critical state. This threshold is overrideable.

Resolutions

To return the monitor to a healthy state, you may:

Redefine the private cloud capacity limits

Reduce the count of virtual machines within the private cloud

Override critical threshold of the monitor

Element properties:

TargetMicrosoft.SystemCenter.VirtualMachineManager.PrivateCloud
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.VirtualMachineManager.CloudUsageUnitMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Cloud VMUsageCount Has Reached Or Exceeded Threshold
The private cloud virtual machine usage count is {0}, and it has reached or exceeded the threshold {1}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.VirtualMachineManager.CloudVMUsageCountMonitor" Accessibility="Public" Target="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.PrivateCloud" TypeID="Microsoft.SystemCenter.VirtualMachineManager.CloudUsageUnitMonitorType" ParentMonitorID="SystemHealth!System.Health.AvailabilityState">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.VirtualMachineManager.CloudVMUsageCountMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Property[@Name='$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.PrivateCloud"]/VMMId$-VMUsage']$</AlertParameter1>
<AlertParameter2>$Data/Context/Property[@Name='$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.PrivateCloud"]/VMMId$-CriticalThreshold']$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="CloudVMUsageCountHealthy" MonitorTypeStateID="CloudUsageHealthy" HealthState="Success"/>
<OperationalState ID="CloudVMUsageCountCritical" MonitorTypeStateID="CloudUsageCritical" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>1800</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<CriticalThreshold>90</CriticalThreshold>
<PropertyValue/>
<VMMId>$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.PrivateCloud"]/VMMId$-VMUsage</VMMId>
<VMMServer>$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.PrivateCloud"]/VMMServer$</VMMServer>
</Configuration>
</UnitMonitor>