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
Copy file name to clipboardExpand all lines: articles/logic-apps/add-run-powershell-scripts.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ To perform custom integration tasks inline with your Standard workflow in Azure
21
21
22
22
This capability provides the following benefits:
23
23
24
-
- Write your own scripts within the workflow designer to solve complex integration challenges. No other service plans are necessary.
24
+
- Write your own scripts within the workflow designer so you can solve complex integration challenges. No other service plans are necessary.
25
25
26
26
This benefit streamlines workflow development plus reduces the complexity and cost with managing more services.
27
27
@@ -45,7 +45,7 @@ This guide shows how to add the action in your workflow and add the PowerShell c
45
45
46
46
- The Azure portal saves your script as a PowerShell script file (.ps1) in the same folder as your **workflow.json** file, which stores the JSON definition for your workflow, and deploys the file to your logic app resource along with the workflow definition.
47
47
48
-
The .ps1 format lets you write less "boilerplate" and focus just on writing PowerShell code. You can rename the .ps1 file for easier management during deployment. However, each time you rename the script, the new version overwrites the previous version.
48
+
The **.ps1** file format lets you write less "boilerplate" and focus just on writing PowerShell code. You can rename the .ps1 file for easier management during deployment. However, each time you rename the script, the new version overwrites the previous version.
49
49
50
50
- The script is local to the workflow. To use the same script in other workflows, [view the script file in the **KuduPlus** console](#view-script-file), and then copy the script to reuse in other workflows.
51
51
@@ -101,7 +101,7 @@ This guide shows how to add the action in your workflow and add the PowerShell c
101
101
Push-ActionOutputs -body $results
102
102
```
103
103
104
-
1. When you're done, save your workflow.
104
+
1. When you finish, save your workflow.
105
105
106
106
<aname="view-script-file"></a>
107
107
@@ -252,7 +252,7 @@ A module organizes PowerShell code, making it easier to distribute. For example,
252
252
253
253
To find publicly available modules, visit the [PowerShell gallery](https://www.powershellgallery.com). A Standard logic app resource can support up to 10 public modules. To use any public module, you must enable this capability by following these steps:
254
254
255
-
1. In the [Azure portal](https://portal.azure.com), on your logic app resource menu, under **Development Tools**, select **Advanced Tools**.
255
+
1. In the [Azure portal](https://portal.azure.com), on your logic app resource menus, under Development Tools, select **Advanced Tools**.
256
256
257
257
1. On the **Advanced Tools** page, select **Go**.
258
258
@@ -268,7 +268,7 @@ To find publicly available modules, visit the [PowerShell gallery](https://www.p
268
268
}
269
269
```
270
270
271
-
1. Open the file named **requirements.psd1**, and include the name and version for the module that you want to use using the following syntax: **MajorNumber.\*** or the exact module version, for example:
271
+
1. Open the file named **requirements.psd1**. Include the name and version for the module that you want by using the following syntax: **MajorNumber.\*** or the exact module version, for example:
272
272
273
273
```powershell
274
274
@{
@@ -289,7 +289,7 @@ If you use dependency management, the following considerations apply:
289
289
290
290
You can generate your own private PowerShell modules. To create your first PowerShell module, see [Write a PowerShell Script Module](/powershell/scripting/developer/module/how-to-write-a-powershell-script-module).
291
291
292
-
1. In the [Azure portal](https://portal.azure.com), on your logic app resource menu, under **Development Tools**, select**Advanced Tools**.
292
+
1. In the [Azure portal](https://portal.azure.com), on your logic app resource menu, under Development Tools, selects**Advanced Tools**.
293
293
294
294
1. On the **Advanced Tools** page, select **Go**.
295
295
@@ -332,13 +332,13 @@ To use the managed identity from inside the **Execute PowerShell Code** action,
332
332
333
333
On the target Azure resource, review the following considerations:
334
334
335
-
- On the **Role** tab, selecting a **Contributor** role is usually sufficient.
335
+
- On the **Role** tab, a **Contributor** role is usually sufficient.
336
336
337
337
- On the **Add role assignment** page, on the **Members** tab, for the **Assign access to** property, make sure that you select **Managed identity**.
338
338
339
339
- After you select **Select members**, on the **Select managed identities** pane, select the managed identity that you want to use.
340
340
341
-
1. In your **Execute PowerShell Code** action, include the following code as the first line:
341
+
1. In your **Execute PowerShell Code** action, include the following code as the first statement:
0 commit comments