This Azure function code in C# uses various endpoints to rerun failed pipelines. Here’s some of them:
Main post = https://docs.microsoft.com/en-us/rest/api/datafactory/trigger-runs/query-by-factory?tabs=HTTP
GET trigger runs: https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}?api-version=2018-06-01
POST for rerun documentation: https://learn.microsoft.com/en-us/rest/api/datafactory/trigger-runs/rerun?tabs=HTTP
There is logic that handles multi-page responses from the API and then runs the ADF trigger again by sending a POST req to the API.
Here’s the file: