Skip to content

Commit c4c68d4

Browse files
author
ecfan
committed
Update draft
1 parent c532a67 commit c4c68d4

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

articles/logic-apps/add-run-powershell-scripts.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.service: logic-apps
55
ms.suite: integration
66
ms.reviewer: estfan, kewear, azla
77
ms.topic: how-to
8-
ms.date: 06/10/2024
8+
ms.date: 07/01/2024
99
# 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.
1010
---
1111

@@ -17,7 +17,7 @@ ms.date: 06/10/2024
1717
> This capability is in preview and is subject to the
1818
> [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
1919
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.
2121

2222
This capability provides the following benefits:
2323

@@ -31,7 +31,7 @@ This capability provides the following benefits:
3131

3232
- Deploy scripts alongside your workflows.
3333

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.
3535

3636
## Prerequisites
3737

@@ -225,9 +225,7 @@ To return any outputs to your workflow, you must use the [**Push-WorkflowOutput*
225225

226226
## View logs in Application Insights
227227

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.
231229

232230
1. On the **Application Insights** menu, under **Monitoring**, select **Logs**.
233231

@@ -262,7 +260,7 @@ To find publicly available modules, visit the [PowerShell gallery](https://www.p
262260

263261
1. Browse to your logic app's root level at **C:\home\site\wwwroot** by using the directory structure or the command line.
264262

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.
266264

267265
```json
268266
"managedDependency": {
@@ -322,9 +320,9 @@ MyLogicApp
322320
- requirements.psd1
323321
```
324322

325-
## Authorize access to Azure resources with a managed identity using PowerShell
323+
## Authenticate and authorize access with a managed identity using PowerShell
326324

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.
328326

329327
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.
330328

0 commit comments

Comments
 (0)