Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it a way to cancel an already running azure logic app grammatically or using HTTP call

I have an azure logic app that do some work and it make a delay for 10 minutes then do another couple of things.

I already calling this app from an azure function and everything is works OK.

Now i have a requirement to terminate the already running logic app based on specific events during the 10 minutes duration.

I took a look on logic apps documentation and here in SO logic apps questions but there is nothing about this.

So, is it a way so I can cancel the already running logic app pragmatically or via HTTP call?

like image 214
Marzouk Avatar asked Nov 17 '25 16:11

Marzouk


1 Answers

You can try to make

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/cancel?api-version=2016-06-01

as described in https://learn.microsoft.com/en-us/rest/api/logic/workflowruns/cancel

like image 73
Margaret Avatar answered Nov 19 '25 10:11

Margaret