question

MikkelNielsen-7017 avatar image
0 Votes"
MikkelNielsen-7017 asked Nandhagopal edited

Azure Automation - Resubmit multiple flows

Hey all,

Is it possible to resubmit multiple flows? It seems like you only are able to do it one at the time.

not-supportednot-supported-azure
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SathyamoorthyVijayakumar-MSFT avatar image
0 Votes"
SathyamoorthyVijayakumar-MSFT answered

@MikkelNielsen-7017 - My understanding is that your question with regards to the Microsoft Flows (Microsoft Power Automate). If this is not case, request you ignore the below answer and provide additional context. to the question

With regards to PowerAutomate, There is a feature request to resubmit in bulk reported in the below link. The current status is PLANNED .
https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Resubmit-multiple-failed-flow-runs-at-once/idi-p/59866/page/3#comments

103862-image.png

At this point of time - There is no option from the UI to resubmit the flow in Bulk.

However, the alternative you could use M365 CLI
To get the flow environment id & Flow id, Access the flow and you get the GUID from the URL.

103873-image.png

  $flowRuns = m365 flow run list --environment  <ENVIRONMENT GUID> --flow <FLOW GUID> --output json | ConvertFrom-Json
     
  foreach ($run in $flowRuns) 
  {
     #if you want to filter all the failed flow runs
     #if($run.status -eq "Failed")
     #    {
    Write-Output "Run details: " $run
     #Resubmit all runs
     m365 flow run resubmit --environment $flowEnvironment --flow $flowGUID --name $run.name --confirm
     Write-Output "Run resubmitted successfully"            
    #}
   }







image.png (10.5 KiB)
image.png (9.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.