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
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ ms.service: logic-apps
5
5
ms.suite: integration
6
6
ms.reviewer: estfan, kewear, azla
7
7
ms.topic: how-to
8
-
ms.date: 06/10/2024
8
+
ms.date: 07/01/2024
9
9
# Customer intent: As a logic app workflow developer, I want to write and run PowerShell so that I can perform custom integration tasks in Standard workflows for Azure Logic Apps.
10
10
---
11
11
@@ -17,7 +17,7 @@ ms.date: 06/10/2024
17
17
> This capability is in preview and is subject to the
18
18
> [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
19
19
20
-
To perform custom integration tasks inline with your Standard workflow in Azure Logic Apps, you can directly add and run PowerShell from your workflow in the Azure portal. For this task, use the **Inline Code** action named **Execute PowerShell Code**. This action returns the result from your PowerShell code so you can use that output in your workflow's subsequent actions.
20
+
To perform custom integration tasks inline with your Standard workflow in Azure Logic Apps, you can directly add and run PowerShell from your workflow. For this task, use the **Inline Code** action named **Execute PowerShell Code**. This action returns the result from your PowerShell code so you can use that output in your workflow's subsequent actions.
21
21
22
22
This capability provides the following benefits:
23
23
@@ -31,7 +31,7 @@ This capability provides the following benefits:
31
31
32
32
- Deploy scripts alongside your workflows.
33
33
34
-
This guide shows how to add the action in your workflow and add the PowerShell script code that you want to run.
34
+
This guide shows how to add the action in your workflow and add the PowerShell code that you want to run.
35
35
36
36
## Prerequisites
37
37
@@ -225,9 +225,7 @@ To return any outputs to your workflow, you must use the [**Push-WorkflowOutput*
225
225
226
226
## View logs in Application Insights
227
227
228
-
To view the logs from your workflow, follow these steps:
229
-
230
-
1. In the Azure portal, on the logic app resource menu, under **Settings**, select **Application Insights**, and then select your logic app.
228
+
1. In the [Azure portal](https://portal.azure.com), on the logic app resource menu, under **Settings**, select **Application Insights**, and then select your logic app.
231
229
232
230
1. On the **Application Insights** menu, under **Monitoring**, select **Logs**.
233
231
@@ -262,7 +260,7 @@ To find publicly available modules, visit the [PowerShell gallery](https://www.p
262
260
263
261
1. Browse to your logic app's root level at **C:\home\site\wwwroot** by using the directory structure or the command line.
264
262
265
-
1. Open the workflow's **host.json** file, and set the **managed dependency** property to **true**, which should already be set by default.
263
+
1. Open the workflow's **host.json** file, and set the **managed dependency** property to **true**, which is already set by default.
266
264
267
265
```json
268
266
"managedDependency": {
@@ -322,9 +320,9 @@ MyLogicApp
322
320
- requirements.psd1
323
321
```
324
322
325
-
## Authorize access to Azure resources with a managed identity using PowerShell
323
+
## Authenticate and authorize access with a managed identity using PowerShell
326
324
327
-
With a [managed identity](/entra/identity/managed-identities-azure-resources/overview), your logic app resource and workflow can authenticate and authorize access to any Azure service and Azure resource that supports Microsoft Entra authentication without including credentials in your code.
325
+
With a [managed identity](/entra/identity/managed-identities-azure-resources/overview), your logic app resource and workflow can authenticate and authorize access to any Azure service and resource that supports Microsoft Entra authentication without including credentials in your code.
328
326
329
327
From inside the **Execute PowerShell Code** action, you can authenticate and authorize access with a managed identity so that you can perform actions on other Azure resources where you enabled access. For example, you can restart a virtual machine or get the run details of another logic app workflow.
0 commit comments