Forum Discussion
Antoineb
Dec 03, 2018Former Employee
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.
- Dec 05, 2018
I have resolved this issue by adding the following PowerShell variable in my code before the cmdlet:
$ErrorActionPreference = 'Stop'
Antoineb
Dec 05, 2018Former Employee
I have resolved this issue by adding the following PowerShell variable in my code before the cmdlet:
$ErrorActionPreference = 'Stop'
Dec 06, 2018
Hi,
You should have marked my reply as answer as I've pointed you to the documentation where this is described.