Capture Error stream output from Azure Automation in Logic App

Peter Svensson 211 Reputation points

I have a Logic App that kicks of a Azure Automation Runbook. When the Runbook hits an error it outputs data to the Error stream of the runbook.
I want to pick up this error in my Logic App using an Action for Automation (Get status of job/job output). However, this doesn't seem to get picked using these actions. I can only pcik up the Status of the Runbook (ex 'Failed').

Do someone know a good solution for doing this?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,891 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,138 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Maxim Sergeev 6,566 Reputation points Microsoft Employee

    Hi there,

    The error occurs in Azure Automation Sandbox. This data is collected in Azure Diagnostics Logs for Azure Automation Accounts only. Enable the diagnostic logs for Azure Automation Account to be collected into a centralized Log Analytics workspace and get the output from it.

    0 comments No comments