arcus-azure / arcus.scripting

Scripting with Microsoft Azure in a breeze.
https://scripting.arcus-azure.net/
MIT License
9 stars 12 forks source link

`Get-AzLogicAppRunHistory` command does not use the `-FollowNextPageLink` parameter #390

Closed pim-simons closed 1 year ago

pim-simons commented 1 year ago

Describe the bug The scripts Cancel-AzLogicAppRuns, Disable-AzLogicAppsFromConfig and Resubmit-FailedAzLogicAppRuns use the Get-AzLogicAppRunHistory command but do not specify the -FollowNextPageLink parameter, meaning that only a subset of possible instances is returned.

To Reproduce Let 100 instances of a Logic App fail, run the Resubmit-FailedAzLogicAppRuns script and notice that not all failed Logic Apps have been resubmitted.

Expected behavior Use the -FollowNextPageLink parameter on the Get-AzLogicAppRunHistory command.

stijnmoreels commented 1 year ago

Aha, that's an interesting case. Good that we will have this fixed. 👍