I have an Azure Logic App that has failed actions (the number is too big so I won't resubmit them manually).
I tried wtih the Azure documentation to list all of the operations:
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/triggers/{triggerName}/histories?api-version=2023-12-01
However the response seems to be limited to 30 when I do the curl request. Even through the Azure Portal I don't get a full list, but only get 40 responses at a time: Example
Is there a way to list all of the failed actions with 1 request only?
Thanks!
Since you have 240K failed workflow runs and you don't want to use nextLink
s hundreds of times, using the Workflow Trigger Histories - List API doesn't seem to be the best approach for you.
I can suggest an alternative solution - using the Query - Get API of the Log Analytics service.
First, you need to make sure your Logic Apps send Workflow Runtime Logs to Log Analytics workspace:
This will allow you to query the LogicAppWorkflowRuntime table using REST API.
For example, to run the following Kusto query –
LogicAppWorkflowRuntime
| project _ResourceId, WorkflowName, OperationName, StartTime, EndTime, Code, Status, Error, RunId, WorkflowId, OriginRunId, ClientTrackingId
| where OperationName == "WorkflowRunCompleted"
| where Status == "Failed"
| order by StartTime desc
– you can send a request to
– where {workspaceId}
is a Workspace ID from the Properties blade in the Azure portal.
In my tests, the response contained details of tens of thousands of workflow runs.
Hope that helps.