Integration Logic Apps verified operator-field-manual

Workflow run

A workflow run is one actual attempt to execute a Logic Apps workflow. The workflow definition is the recipe; a run is one time that recipe started, processed data, called actions, and ended in a status such as Succeeded, Failed, Cancelled, or Running. Operators use runs to answer practical questions: Did the trigger fire? Which action failed? How long did the process take? What data arrived? Can this run be resubmitted safely? For learners, a run is the evidence trail of one business transaction moving through automation.

Aliases
No aliases mapped yet
Difficulty
intermediate
CLI mappings
6
Last verified
2026-05-29

Microsoft Learn

A workflow run is one execution instance of an Azure Logic Apps workflow after a trigger fires. The run records status, start and end time, duration, correlation details, trigger result, action history, retries, inputs, outputs, and errors used for troubleshooting.

Microsoft Learn: View workflow status and run history - Azure Logic Apps2026-05-29

Technical context

Technically, workflow runs live in the Logic Apps runtime and monitoring context. A trigger creates a run, actions execute within that run, and each step records status, timestamps, tracking IDs, inputs, outputs, retry attempts, and errors. Consumption workflows expose run history through the Logic Apps resource and ARM APIs, while Standard workflows also depend on the single-tenant runtime, storage, and Application Insights configuration. Runs sit in the integration data plane, but viewing, querying, cancelling, resubmitting, and securing run history are governed by Azure control-plane permissions and logging settings.

Why it matters

Workflow runs matter because they turn an automation diagram into accountable operations. A production team cannot improve a process by knowing only that a workflow exists; they need to know which executions succeeded, which failed, what payload or connector caused trouble, and whether retries created duplicate side effects. Run history is also the first evidence auditors and support teams request after a customer complaint, missed notification, stuck approval, or delayed integration. The catch is that runs can contain sensitive business data, so access and retention must be intentional. A well-instrumented run history gives teams faster incident response, safer resubmission, and better capacity planning.

Where you see it

Signals, screens, and Azure surfaces where this term usually becomes operational.

Signal 01

In the Logic Apps run history table, each workflow run shows status, start time, duration, trigger result, and a link to action details during incident triage.

Signal 02

In Azure Monitor or Application Insights, run identifiers, failures, latency, and dependency records help correlate Logic Apps behavior with downstream services across action dependencies and connectors.

Signal 03

In ARM or az rest output, workflow runs appear as run objects with names, statuses, timestamps, correlation data, and links to action histories for automated review.

When this becomes relevant

Specific situations where this term helps solve real Azure design, operations, migration, security, reliability, cost, or governance problems.

  • Investigate one failed customer order, invoice, alert, or approval by tracing its exact Logic Apps execution path.
  • Measure whether a release increased workflow duration, retries, skipped actions, or connector failures across recent runs.
  • Decide whether resubmitting a failed run is safe before duplicating emails, tickets, payments, or downstream records.
  • Export run status evidence for auditors when regulated integrations must prove completion, failure handling, and timestamps.
  • Detect trigger or downstream outages by watching failed, delayed, timed-out, or stuck workflow runs over time.

Real-world case studies

Different enterprise-style examples that show the term being used to hit measurable objectives.

Case study 01

Ticketing marketplace stops duplicate refund runs

A ticketing marketplace used Logic Apps to process refund requests from venue cancellations. Support agents resubmitted failed workflow runs and sometimes issued a second refund after the payment action had already succe

Scenario

A ticketing marketplace used Logic Apps to process refund requests from venue cancellations. Support agents resubmitted failed workflow runs and sometimes issued a second refund after the payment action had already succeeded.

Business/Technical Objectives
  • Show support staff exactly which action failed in each refund run.
  • Prevent resubmission when the payment provider already accepted a refund.
  • Cut refund investigation time during major event cancellations.
  • Keep sensitive payment details out of exported incident notes.
Solution Using Workflow run

The integration team redesigned its workflow-run review process. Each run carried a refund correlation ID, and the payment action wrote an idempotency key to the provider and a table before sending customer notifications. Secure inputs and outputs were enabled for payment actions. Operators used run history to inspect the first failed action and a CLI run-query script to export status, timestamps, and action names without payload bodies. Resubmission required a check against the provider transaction ID and the run notes captured whether notification, payment, or accounting steps had completed.

Results & Business Impact
  • Duplicate refunds fell from twenty-one cases in one month to one edge case in the next quarter.
  • Average investigation time dropped from thirty-two minutes to eleven minutes per request.
  • Agents handled a mass cancellation wave with 48 percent fewer escalations to engineering.
  • No card-related payloads appeared in shared incident exports after the secure-output change.
Key Takeaway for Glossary Readers

Workflow runs are not just logs; they are the decision record operators need before replaying automation with financial side effects.

Case study 02

City permit office finds stalled approval executions

A city permit office automated inspection scheduling through Logic Apps. Citizens saw permits stuck in the portal, but operators could not tell whether the scheduling workflow, email connector, or legacy permit API was r

Scenario

A city permit office automated inspection scheduling through Logic Apps. Citizens saw permits stuck in the portal, but operators could not tell whether the scheduling workflow, email connector, or legacy permit API was responsible.

Business/Technical Objectives
  • Identify stuck permit executions before citizen complaints reached the call center.
  • Separate trigger failures from downstream API and email failures.
  • Measure whether a workflow change improved end-to-end permit processing time.
  • Give supervisors evidence that did not expose applicant documents unnecessarily.
Solution Using Workflow run

The platform team created a run-history workbook and a CLI export that summarized workflow runs by status, duration, and first failed action. The workflow added a permit tracking ID as a tracked property, while sensitive document actions used secure inputs and outputs. Failed API actions were routed to a Service Bus queue with the run name and permit ID, not the full applicant package. Supervisors reviewed failed runs every morning, and engineering compared run duration for the two weeks before and after the permit API timeout setting changed.

Results & Business Impact
  • Median permit automation time dropped from twenty-six minutes to nine minutes after timeout tuning.
  • Call-center complaints about stuck scheduling fell by 41 percent in six weeks.
  • Operators identified the failing component in under five minutes for 89 percent of incidents.
  • Document exposure in operational reports was eliminated by using identifiers instead of payload exports.
Key Takeaway for Glossary Readers

A workflow run gives public-service teams a practical trace from citizen event to automation result without exposing every private document.

Case study 03

Energy trader proves alert delivery during market spike

An energy trading desk used Logic Apps to notify analysts when price feeds crossed risk thresholds. During a volatile morning, compliance asked whether every alert had actually been delivered and acknowledged. Engineers

Scenario

An energy trading desk used Logic Apps to notify analysts when price feeds crossed risk thresholds. During a volatile morning, compliance asked whether every alert had actually been delivered and acknowledged.

Business/Technical Objectives
  • Prove which price-threshold alerts triggered workflow runs.
  • Show alert delivery latency for each analyst group.
  • Detect failed notification actions before the trading window closed.
  • Preserve an auditable record without giving compliance edit access to workflows.
Solution Using Workflow run

Engineers added a market event ID to each run and wrote acknowledgement details to a controlled table. The run history was queried with az rest for the incident window, returning run names, statuses, start times, and durations. Action history identified whether Teams, email, or webhook notifications failed first. Compliance received a read-only export with run IDs and delivery states, while payload details stayed inside secured run history. The team also added alerts for failed runs and for runs taking longer than the two-minute threshold during trading hours.

Results & Business Impact
  • Alert delivery evidence for the spike window was produced in forty minutes instead of the next business day.
  • Ninety-eight percent of analyst alerts completed under two minutes after webhook retries were tuned.
  • Failed notification actions were detected within three minutes during the next market exercise.
  • Compliance received auditable run evidence without contributor access to workflow definitions.
Key Takeaway for Glossary Readers

Workflow-run history is the operational proof that automated alerts did what the business depended on during a high-pressure event.

Why use Azure CLI for this?

I use Azure CLI for workflow-run work because run evidence is often needed outside the portal: incident timelines, audit exports, deployment validation, and automated health checks. With ten years of Azure operations behind me, I trust commands that can be repeated, filtered, and attached to a ticket more than screenshots taken during an outage. For some Logic Apps run-history jobs, especially Consumption workflows, CLI plus az rest can query ARM run endpoints directly. For Standard workflows, CLI still helps identify the app, resource group, identity, and monitoring setup. The value is fast, scriptable evidence without giving every responder broad portal access.

CLI use cases

  • List recent workflow runs through ARM with az rest and filter by status, start time, or failure pattern.
  • Retrieve one run and its action history to attach precise evidence to an incident ticket.
  • Compare workflow state, identity, and diagnostic settings before blaming runtime failures on the workflow definition.
  • Export run counts and durations for daily operations reviews or release validation.
  • Cancel or avoid resubmitting runs until operators confirm idempotency and downstream side effects.

Before you run CLI

  • Confirm the tenant, subscription, resource group, workflow name, and whether the Logic App is Consumption or Standard.
  • Use read-only run queries before cancelling or resubmitting anything, because failed runs may have already changed downstream systems.
  • Check RBAC carefully because viewing run history can expose payloads, headers, connector responses, and business records.
  • Know the API version and time window you need; run history can be large and paged through nextLink responses.
  • Set output to json or tsv deliberately, and avoid pasting sensitive run inputs or outputs into shared tickets.

What output tells you

  • Run status tells whether the execution is Running, Succeeded, Failed, Cancelled, TimedOut, or waiting on another runtime condition.
  • Start time, end time, and duration show whether the workflow breached an operational window or slowed after a deployment.
  • Correlation and tracking identifiers help match a Logic Apps run with Application Insights, connector logs, and downstream service traces.
  • Action history output shows which step failed, retried, skipped, or returned an unexpected status before the final run result.
  • Pagination links and counts tell you whether your query captured all relevant runs or only the first page of history.

Mapped Azure CLI commands

Workflow run inspection commands

direct
az logic workflow show --name <workflow-name> --resource-group <resource-group>
az logic workflowdiscoverIntegration
az logic workflow show --name <workflow-name> --resource-group <resource-group> --query "{name:name,state:state,location:location}" --output table
az logic workflowdiscoverIntegration
az rest --method get --url "https://management.azure.com/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.Logic/workflows/<workflow-name>/runs?api-version=2019-05-01&$top=20"
az restdiscoverIntegration
az rest --method get --url "https://management.azure.com/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.Logic/workflows/<workflow-name>/runs/<run-name>?api-version=2019-05-01"
az restdiscoverIntegration
az rest --method get --url "https://management.azure.com/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.Logic/workflows/<workflow-name>/runs/<run-name>/actions?api-version=2019-05-01"
az restdiscoverIntegration
az monitor diagnostic-settings list --resource <logic-workflow-resource-id> --output table
az monitor diagnostic-settingsdiscoverIntegration

Architecture context

Architecturally, a workflow run is the runtime instance that connects the trigger, action chain, connector calls, managed identity, diagnostics, and business payload. I treat it as the transaction log for an integration path. In a good Logic Apps design, each run has enough tracking information to connect a customer order, invoice, event, alert, or approval to the exact automation steps that handled it. Architects should design for idempotency, correlation IDs, secure inputs and outputs, retry boundaries, and resubmission rules before production. The run is also where hosting choices show up: Consumption emphasizes per-execution history, while Standard adds app-host and workspace monitoring concerns.

Security

Security risk is direct because workflow runs may expose request bodies, headers, connector responses, customer records, tokens, callback details, and error messages. Reader access to run history can become data access, not just operational visibility. Use least-privilege RBAC, secure inputs and outputs for sensitive actions, managed identities for downstream calls, and controlled diagnostic destinations. Be careful when exporting run data into tickets, workbooks, or logs because masking may not follow automatically. Retention settings should match compliance requirements without keeping sensitive payloads forever. During incidents, give responders enough run visibility to troubleshoot while avoiding broad contributor access to workflow definitions and connections.

Cost

Cost is tied to workflow runs through action executions, connector usage, retries, data movement, storage, and monitoring. A workflow that runs every minute with multiple connector actions can cost far more than a larger workflow that runs once nightly. Failed runs are not free when they still execute actions, emit logs, and trigger support effort. Resubmitting runs can double-charge downstream systems if the process is not idempotent. FinOps reviews should inspect run count, action count per run, retry frequency, trigger schedule, premium connector usage, and log retention. For Standard workflows, also watch the App Service plan and storage costs supporting the runtime.

Reliability

Reliability is measured through runs. A workflow can deploy successfully yet produce failed, timed-out, skipped, or cancelled runs because a downstream API throttled, a payload shape changed, or a retry policy was wrong. Operators should monitor run status trends, duration, action failures, retry count, trigger history, and resubmission outcomes. Reliable designs make runs safe to replay by using idempotency keys, duplicate detection, and clear compensation steps. A single failed run may be harmless, but a pattern of delayed or retried runs can create backlogs and missed service levels. Review the first failed action, not only the final run status, before changing production logic.

Performance

Performance shows up in run duration and action-level timing. A slow run may be waiting on a connector, blocked by a sequential dependency, delayed by retries, or processing a payload that grew beyond the original design. Operators should compare trigger time, action start times, action durations, retry gaps, and total run duration. High concurrency can improve throughput, but it can also throttle downstream APIs or create ordering problems. A seasoned engineer looks for the critical path inside the run rather than assuming the whole Logic Apps platform is slow. Use run history with metrics and downstream logs to find the true bottleneck.

Operations

Operators use workflow runs as the daily troubleshooting surface for Logic Apps. They review failed runs, open action inputs and outputs, compare durations, filter by status, capture tracking IDs, and decide whether a run can be resubmitted or cancelled. During releases, teams compare run behavior before and after a definition change. During incidents, they export run evidence, correlate it with Application Insights or downstream logs, and update runbooks. CLI and REST are useful when many runs must be queried or summarized quickly. Good operations practice defines who can view run payloads, who can resubmit, and what evidence must be captured before cleanup.

Common mistakes

  • Resubmitting a failed run without checking whether earlier actions already created records, sent messages, or charged customers.
  • Sharing run-history screenshots that reveal request bodies, authorization headers, customer data, or connector error details.
  • Treating the final run status as enough evidence while ignoring the first failed or slow action inside the run.
  • Comparing runs across Consumption and Standard workflows without checking hosting, storage, and monitoring differences.
  • Querying only the first page of run history and missing older failures hidden behind a nextLink response.