Search code examples
azureoffice365apiazure-logic-appsoffice365connectors

How to get alerted when Logic Apps connection becomes Invalid


I setup a Logic App workflow that runs each time I receive an email in my Exchange mailbox on Office 365.

From time to time my connection to Office 365 becomes invalid, e.g. expired token. This breaks my Logic App. Is there a way I can get alerted about invalid connections?

Invalid connection in Logic App


Solution

  • There is no direct way to trigger an alert if your connections become invalid (within logic apps)

    However, you can config an alert for your logic apps (as a whole service).

    Alerts

    You can set up an Alert-Rules in Logic apps to achieve this

    enter image description here

    Diagnostic Logging/Alerts

    You can also enable the diagnostic logging to send all the logs to Log analytics (previously called OMS)

    Then configure alerts in Log Analytics based on the logs/telemetrics.