I need to be able to execute a long running Power Automate Cloud Flow (say 2 hours) from Azure Function App(using Visual Studio for development).
My set up:
- I have Azure Function App With Durable Function that executes System.Net.Http.HttpClient.PostAsync
- I have a Power Automate Cloud Flow which is triggered by a HTTP call and has a 2 minute delay inside
Issue: Naturally it times out.
What I tried: I tried overriding System.Net.Http.HttpClient.SendAsync and timeout policies to make the timeout indefinite, but that doesn't work, not that it would work given 2hr run times.
My best case scenario: What I really want is an ability to send a request to start execution of the Power Automate Cloud Flow kind of like a job, and then have ability to monitor execution by going some kind of monitoring place. I am pretty positive that's what power automate does internally, but how would I do it from Azure Function App? For the life of me I cannot find an answer to this :)
CodePudding user response: