Forum Discussion

Antoineb's avatar
Antoineb
Former Employee
Dec 03, 2018
Solved

When monitoring the alerts of my Runbooks jobs ResultType provides wrong values.

In Log Analytics records, ResutlType column shows "Completed" or "In Progress" instead of "Failed" for all Runbooks jobs completed with errors.
  • Antoineb's avatar
    Antoineb
    Dec 05, 2018

    I have resolved this issue by adding the following PowerShell variable in my code before the cmdlet:

    $ErrorActionPreference = 'Stop'

Resources