You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`ResourceGroupName`| yes | The resource group containing the Azure Logic App. |
23
+
|`LogicAppName`| yes | The name of the Azure Logic App for which the runs will be cancelled. |
24
+
|`MaximumFollowNextPageLink`| no | This sets the amount of pages (30 runs per page) of the Logic App run history (if any) that are retrieved. If not supplied the default value is 10. |
24
25
25
26
**Example**
26
27
@@ -37,12 +38,13 @@ PS> Cancel-AzLogicAppRuns `
37
38
38
39
Use this script to re-run a failed Azure Logic App run.
|`ResourceGroupName`| yes | The resource group containing the Azure Logic App. |
44
+
|`LogicAppName`| yes | The name of the Azure Logic App for which the failed runs will be resubmitted. |
45
+
|`StartTime`| yes | The start time in UTC for retrieving the failed instances. |
46
+
|`EndTime`| no | The end time in UTC for retrieving the failed instances, if not supplied it will use the current datetime. |
47
+
|`MaximumFollowNextPageLink`| no | This sets the amount of pages (30 runs per page) of the Logic App run history (if any) that are retrieved. If not supplied the default value is 10. |
46
48
47
49
**Example**
48
50
@@ -147,25 +149,25 @@ Typically done the first task of the release pipeline, right before the deployme
147
149
The Azure Logic Apps to be disabled and the order in which this will be done, will be defined in the provided configuration file.
148
150
The order of the Azure Logic Apps in the configuration file (bottom to top) defines the order in which they will be disabled by the script. The counterpart of this script used to enable the Azure Logic Apps, will take the order as specified (top to bottom) in the file.
| ResourceGroupName | yes | The resource group containing the Azure Logic Apps. |
155
+
| DeployFileName | no | If your solution consists of multiple interfaces, you can specify the flow-specific name of the configuration file. |
156
+
| ResourcePrefix | no | In case the Azure Logic Apps all start with the same prefix, you can specify this prefix through this parameter instead of updating the configuration-file. |
157
+
| EnvironmentName | no | The name of the Azure environment where the Azure Logic App resides. (default: `AzureCloud`) |
158
+
| ApiVersion | no | The version of the management API to be used. (default: `2016-06-01`) |
158
159
159
160
The schema of this configuration file is a JSON structure of an array with the following inputs:
| Description |`string`| Description of Azure Logic App set to disable. |
165
+
| MaximumFollowNextPageLink |`integer`| This sets the amount of pages (30 runs per page) of the Logic App run history (if any) that are retrieved. If not supplied the default value is 10. |
166
+
| CheckType |`enum`|`None`: don't perform any additional checks. |
167
+
|||`NoWaitingOrRunningRuns`: waits until there are no more waiting or running Logic App instances. |
168
+
| StopType |`enum`|`None`: don't disable to given Logic Apps. |
169
+
|||`Immediate`: disable the given Logic Apps. |
170
+
| LogicApps |`string array`| Set of Logic App names to disable. |
169
171
170
172
**Example**
171
173
@@ -177,6 +179,7 @@ Taking an example in which a set of Azure Logic Apps (`"rcv-shopping-order-*"`)
177
179
"description": "Sender(s)",
178
180
"checkType": "None",
179
181
"stopType": "Immediate",
182
+
"maximumFollowNextPageLink": 25,
180
183
"logicApps": [
181
184
"snd-shopping-order-confirmation-smtp"
182
185
]
@@ -293,25 +296,23 @@ Typically done as the last task of the release pipeline, right after the deploym
293
296
The Azure Logic Apps to be enabled and the order in which this will be done, will be defined in the provided configuration file.
294
297
The order of the Azure Logic Apps in the configuration file (top to bottom) defines the order in which they will be enabled by the script. The counterpart of this script used to disable the Azure Logic Apps, will take the reversed order as specified (bottom to top) in the file.
| ResourceGroupName | yes | The resource group containing the Azure Logic Apps. |
302
+
| DeployFileName | no | If your solution consists of multiple interfaces, you can specify the flow-specific name of the configuration file. |
303
+
| ResourcePrefix | no | In case the Azure Logic Apps all start with the same prefix, you can specify this prefix through this parameter instead of updating the configuration-file. |
304
+
| EnvironmentName | no | The name of the Azure environment where the Azure Logic App resides. (default: `AzureCloud`) |
305
+
| ApiVersion | no | The version of the management API to be used. (default: `2016-06-01`) |
304
306
305
307
The schema of this configuration file is a JSON structure of an array with the following inputs:
| Description |`string`| Description of Azure Logic App set to enable. |
310
-
| CheckType |`enum`|_Not taken into account for enabling Logic Apps._|
311
-
| StopType |`enum`|`None`: don't enable to given Logic Apps. |
312
-
|||`Immediate`: enable the given Logic Apps. |
313
-
| LogicApps |`string array`| Set of Logic App names to enable. |
314
-
311
+
| Description |`string`| Description of Azure Logic App set to enable. |
312
+
| CheckType |`enum`|_Not taken into account for enabling Logic Apps._|
313
+
| StopType |`enum`|`None`: don't enable to given Logic Apps. |
314
+
|||`Immediate`: enable the given Logic Apps. |
315
+
| LogicApps |`string array`| Set of Logic App names to enable. |
315
316
**Example**
316
317
317
318
Taking an example in which a set of Azure Logic Apps (`"rcv-shopping-order-*"`) need to be enabled, the following configuration will ignore the `checkType`, as this is only used for disabling the Logic Apps, and will simply enable them (`stopType = Immediate`), starting with the _sender_ instances and working its way down to the _receive protocol_ Logic Apps.
Copy file name to clipboardExpand all lines: src/Arcus.Scripting.LogicApps/Arcus.Scripting.LogicApps.psm1
+13-5Lines changed: 13 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -11,14 +11,18 @@
11
11
.ParameterLogicAppName
12
12
The name of the Azure Logic App.
13
13
14
+
.ParameterMaximumFollowNextPageLink
15
+
The number of times the script should retrieve the next page of Logic App runs, if not specified the entire run history of the Logic App will be retrieved.
16
+
14
17
#>
15
18
functionCancel-AzLogicAppRuns {
16
19
param(
17
20
[Parameter(Mandatory=$true)][string] $ResourceGroupName=$(throw"Name of the resource group is required"),
18
-
[Parameter(Mandatory=$true)][string] $LogicAppName=$(throw"Name of the logic app is required")
21
+
[Parameter(Mandatory=$true)][string] $LogicAppName=$(throw"Name of the logic app is required"),
The end time of the failed instances of the Azure Logic App.
44
48
49
+
.ParameterMaximumFollowNextPageLink
50
+
The number of times the script should retrieve the next page of Logic App runs, if not specified the entire run history of the Logic App will be retrieved.
51
+
45
52
#>
46
53
functionResubmit-FailedAzLogicAppRuns {
47
54
param(
48
55
[Parameter(Mandatory=$true)][string] $ResourceGroupName=$(throw"Name of the resource group is required"),
49
56
[Parameter(Mandatory=$true)][string] $LogicAppName=$(throw"Name of the logic app is required"),
50
57
[Parameter(Mandatory=$true)][datetime] $StartTime=$(throw"Start time is required"),
0 commit comments