Home

Monitor Azure Logic Apps

Why Monitoring Matters

Effective monitoring helps you understand runtime performance, detect failures early, and maintain SLA compliance for your enterprise workflows.

Built‑in Run History

Every Logic App execution is recorded in the Run History view of the Azure portal.

  1. Open the Logic App resource in the Azure portal.
  2. Select Runs history from the left navigation.
  3. Inspect individual runs to view input, output, and any errors.
Runs history view

Azure Monitor Integration

You can forward Logic App diagnostics to Azure Monitor, Log Analytics, and Application Insights.

Log Analytics
Application Insights

Enable Diagnostic Settings

  1. Navigate to Diagnostic settings in the Logic App resource.
  2. Click Add diagnostic setting.
  3. Select Send to Log Analytics workspace and choose your workspace.
  4. Enable WorkflowRuntime and RunHistory logs.
// Example query in Log Analytics (Kusto)
AzureDiagnostics
| where ResourceProvider == "MICROSOFT.LOGIC"
| summarize count() by StatusCode, bin(TimeGenerated, 5m)
| order by TimeGenerated desc

Connect to Application Insights

Application Insights provides end‑to‑end tracing and performance counters.

  1. Create an Application Insights resource.
  2. In the Logic App, go to Diagnostic settingsAdd setting.
  3. Select Send to Application Insights and provide the Instrumentation Key.
// Sample telemetry query
requests
| where cloud_RoleName == "my-logic-app"
| summarize count() by resultCode, bin(timestamp, 1m)

Alert Rules

Set up alerts to be notified of failures, latency spikes, or custom conditions.

Alert NameConditionAction
Logic App FailureRun status = FailedEmail / Webhook
High LatencyAverage duration > 5 min (last 30 min)SMS / Teams

Export Run History as JSON

You can programmatically retrieve run details via REST API.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{rg}/providers/Microsoft.Logic/workflows/{logicAppName}/runs?api-version=2022-07-01

Headers:
Authorization: Bearer {access_token}

Next Steps