Try for free Book a demo

Watch Logic App failures using Turbo360


3 Mins Read | Last modified on February 28th, 2024


Are you finding it difficult to know your Logic App Run Action Failures?

This use case is a simplified version of a production level issue faced by one of our potential customers. They have a logic app playing a critical role in their business orchestration. The problem is that they are not aware of a failure in one of the Run Actions in the Logic App. A specific run action is failing due to OAuth token not being refreshed as expected from the authentication provider.

Hence, we proposed a solution to this scenario through the ‘Watch’ monitoring feature in Turbo360.

Every Logic App would have one or more trigger definitions which would be followed by a sequence of run actions that define the workflow. There could be scenarios where the trigger would have been successful but one of the run actions would have failed. This would break the workflow and an immediate notification of the run action failure with details would be of great help to bring the workflow up.
A Logic App with name “EmailProcessor” is created with a recurrence trigger that has a frequency of 5 minutes. It has a run action to send an email from a shared mailbox account. We have authenticated this with the email id that has necessary permissions on the shared mailbox account.

Logic Apps Configuration

Logic Apps Watch Monitor

This Logic App is now associated with Turbo360 Composite Application and ‘Watch’ monitoring is enabled. From this moment the Logic App will be continuously watched, an alert will be forwarded to the configured notification channels within in 5 minutes of the failure (this is the default notification frequency in Turbo360, not to be confused with the Logic App Frequency set above).

Logic Apps watch monitor

This logic app is expected to trigger email to the recipient email at a frequency of 5 minutes. Unlike what the customer was mentioning, we did not face any failure in the logic app run actions. The OAuth token in our case was refreshed properly.

Hence, we forced the workflow to create an OAuth error. Therefore we can check if Turbo360 ‘Watch’ monitor can generate an alert. So we removed the API connection that will be used by the logic app to get the OAuth token. Now the attempt to get the token should fail for sure, and in turn, the run action will fail. As a result, we received a Logic Apps watch monitor alert from Turbo360 – “Failure report of Logic App, EmailProcessor”.

Watch Logic Apps Alert

With Turbo360 you can get more clarity on the failure by looking deep into the run history of the logic app and identify the run with the run identifier. The output of the failed run action will have the failure reason in detail.

Logic App Run Details

The run action failed at 2018-07-27 15:37:53

The Azure Logic Apps watch monitor detected the failure and generated the alert at 2018-07-27 15:41:35 and most importantly, the alert is forwarded to the Notification Channels for corrective actions.

Likewise, you would have requirements to get notified of the failure of an invocation in Azure Function. Getting notified on the failure of Logic Apps and Azure Functions invocation in near real-time is now possible with Turbo360.

Strengthen your Azure Logic Apps monitoring and get powerful toolsets, actionable insights to troubleshoot issues with the help of Turbo360.

This article was originally published on Jul 30, 2018. It was most recently updated on Feb 28, 2024.

Related Articles