Cmdlet not found

Microsoft.LS.2019.Monitoring.UnitMonitor.TimerResetEvent.ProvisionService.CommandNotFoundException (UnitMonitor)

Knowledge Base article:

Summary

Command Not Found Exception is thrown while running BVD and CPC Cmdlets during Sub Provisioning.

Causes

Provisioning service is not able to load the Skype for Business Online PowerShell module

Resolutions

Please switch the sub provisioning task to another machine.

Element properties:

TargetMicrosoft.LS.2019.Component.ProvisionService
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityHigh
Alert Auto ResolveTrue
Monitor TypeMicrosoft.LS.2019.MonitorType.TimerResetEvent.Repeated
RemotableTrue
AccessibilityPublic
Alert Message
[Skype] Command Not Found Exception is thrown while running BVD and CPC Cmdlets during Sub Provisioning.
{0}

Please see the 'Product Knowledge' and the 'Alert Context' tab on Alert Properties view for more information.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.LS.2019.Monitoring.UnitMonitor.TimerResetEvent.ProvisionService.CommandNotFoundException" Accessibility="Public" Enabled="true" Target="SFBDiscovery!Microsoft.LS.2019.Component.ProvisionService" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Microsoft.LS.2019.MonitorType.TimerResetEvent.Repeated" ConfirmDelivery="true">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Alert_Command_Not_Found_Exception_is_thrown_while_running_BVD_and_CPC_Cmdlets_during_Sub_Provisioning.">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>High</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Context/DataItem/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Microsoft.LS.2019.Monitoring.UnitMonitor.TimerResetEvent.ProvisionService.CommandNotFoundException.Timer" MonitorTypeStateID="TimerEventRaised" HealthState="Success"/>
<OperationalState ID="Microsoft.LS.2019.Monitoring.UnitMonitor.TimerResetEvent.ProvisionService.CommandNotFoundException.Repeated" MonitorTypeStateID="RepeatedEventRaised" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Lync Server</LogName>
<ErrorExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">23364</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">LS Provisioning Service</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</ErrorExpression>
<AutoResolveInterval>7200</AutoResolveInterval>
<TimerWindowInSeconds>1020</TimerWindowInSeconds>
<RepeatCount>3</RepeatCount>
</Configuration>
</UnitMonitor>