services/DesktopVirtualization/hostPools/alerts.yaml [13:78]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    operator: GreaterThanOrEqual
    timeAggregation: Count
    windowSize: PT30M
    evaluationFrequency: PT5M
    threshold: 1
    resouceIdColumn: ResourceId
    dimensions:
    - name: HostPoolName
      operator: Include
      values:
      - '*'
    - name: UserSessionsTotal
      operator: Include
      values:
      - '*'
    - name: UserSessionsDisconnected
      operator: Include
      values:
      - '*'
    - name: UserSessionsActive
      operator: Include
      values:
      - '*'
    - name: UserSessionsAvailable
      operator: Include
      values:
      - '*'
    - name: HostPoolPercentLoad
      operator: Include
      values:
      - '*'
    failingPeriods:
      numberOfEvaluationPeriods: 1
      minFailingPeriodsToAlert: 1
    query: 'AzureDiagnostics

      | where Category has "JobStreams" and StreamType_s == "Output" and RunbookName_s
      == "AvdHostPoolLogData"

      | sort by TimeGenerated

      | where TimeGenerated > now() - 5m

      | extend HostPoolName=tostring(split(ResultDescription, "|")[0])

      | extend ResourceGroup=tostring(split(ResultDescription, "|")[1])

      | extend Type=tostring(split(ResultDescription, "|")[2])

      | extend MaxSessionLimit=toint(split(ResultDescription, "|")[3])

      | extend NumberSessionHosts=toint(split(ResultDescription, "|")[4])

      | extend UserSessionsTotal=toint(split(ResultDescription, "|")[5])

      | extend UserSessionsDisconnected=toint(split(ResultDescription, "|")[6])

      | extend UserSessionsActive=toint(split(ResultDescription, "|")[7])

      | extend UserSessionsAvailable=toint(split(ResultDescription, "|")[8])

      | extend HostPoolPercentLoad=toint(split(ResultDescription, "|")[9])

      | extend HPResourceId=tostring(split(ResultDescription, "|")[13])

      | extend ResourceId=tostring(HPResourceId)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



services/DesktopVirtualization/hostPools/alerts.yaml [110:175]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    operator: GreaterThanOrEqual
    timeAggregation: Count
    windowSize: PT30M
    evaluationFrequency: PT5M
    threshold: 1
    resouceIdColumn: ResourceId
    dimensions:
    - name: HostPoolName
      operator: Include
      values:
      - '*'
    - name: UserSessionsTotal
      operator: Include
      values:
      - '*'
    - name: UserSessionsDisconnected
      operator: Include
      values:
      - '*'
    - name: UserSessionsActive
      operator: Include
      values:
      - '*'
    - name: UserSessionsAvailable
      operator: Include
      values:
      - '*'
    - name: HostPoolPercentLoad
      operator: Include
      values:
      - '*'
    failingPeriods:
      numberOfEvaluationPeriods: 1
      minFailingPeriodsToAlert: 1
    query: 'AzureDiagnostics

      | where Category has "JobStreams" and StreamType_s == "Output" and RunbookName_s
      == "AvdHostPoolLogData"

      | sort by TimeGenerated

      | where TimeGenerated > now() - 5m

      | extend HostPoolName=tostring(split(ResultDescription, "|")[0])

      | extend ResourceGroup=tostring(split(ResultDescription, "|")[1])

      | extend Type=tostring(split(ResultDescription, "|")[2])

      | extend MaxSessionLimit=toint(split(ResultDescription, "|")[3])

      | extend NumberSessionHosts=toint(split(ResultDescription, "|")[4])

      | extend UserSessionsTotal=toint(split(ResultDescription, "|")[5])

      | extend UserSessionsDisconnected=toint(split(ResultDescription, "|")[6])

      | extend UserSessionsActive=toint(split(ResultDescription, "|")[7])

      | extend UserSessionsAvailable=toint(split(ResultDescription, "|")[8])

      | extend HostPoolPercentLoad=toint(split(ResultDescription, "|")[9])

      | extend HPResourceId=tostring(split(ResultDescription, "|")[13])

      | extend ResourceId=tostring(HPResourceId)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



