Skip to content

Commit 4e18ee4

Browse files
author
ecfan
committed
Draft updates
1 parent 356da28 commit 4e18ee4

File tree

6 files changed

+115
-69
lines changed

6 files changed

+115
-69
lines changed

articles/logic-apps/manage-logic-apps-visual-studio-code.md

Lines changed: 73 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,13 @@ If you aren't already connected to your Azure account, follow these steps to con
7575

7676
1. In Visual Studio Code, [connect to your Azure account](#connect-azure-account), if you haven't already.
7777

78-
1. On the Visual Studio Code Activity Bar, select the Azure icon to open the **Azure** pane.
78+
1. On the Activity Bar, select the Azure icon to open the **Azure** pane.
7979

80-
1. In the **Logic Apps (Consumption)** section, expand your subscription node.
80+
1. In the **Logic Apps (Consumption)** section, expand your Azure subscription.
8181

82-
You can now view all the deployed Consumption logic apps in the selected subscription.
82+
You can now view all the deployed Consumption logic apps in the selected subscription, for example:
83+
84+
:::image type="content" source="media/manage-logic-apps-visual-studio-code/find-deployed-logic-app-consumption.png" alt-text="Screenshot shows Visual Studio Code with Resources section and deployed Consumption logic app resource.":::
8385

8486
1. Find and expand the node for the deployed Consumption logic app that you want.
8587

@@ -102,11 +104,13 @@ If you aren't already connected to your Azure account, follow these steps to con
102104

103105
1. In Visual Studio Code, [connect to your Azure account](#connect-azure-account), if you haven't already.
104106

105-
1. On the Visual Studio Code Activity Bar, select the Azure icon to open the **Azure** pane.
107+
1. On the Activity Bar, select the Azure icon to open the **Azure** pane.
108+
109+
1. In the **Resources** section, expand your subscription, and then expand **Logic App**.
106110

107-
1. In the **Resources** section, expand your subscription node, and then expand the **Logic App** node.
111+
You can now view all the deployed Standard logic apps in the selected subscription, for example:
108112

109-
You can now view all the deployed Standard logic apps in the selected subscription.
113+
:::image type="content" source="media/manage-logic-apps-visual-studio-code/find-deployed-logic-app-standard.png" alt-text="Screenshot shows Visual Studio Code with Resources section and deployed Standard logic app resource.":::
110114

111115
1. Find and expand the node for the deployed Standard logic app that you want.
112116

@@ -162,9 +166,9 @@ To edit a deployed Consumption or Standard workflow using the designer, make tho
162166
163167
### [Consumption](#tab/consumption)
164168

165-
1. On the Visual Studio Code Activity Bar, select the Azure icon to open the **Azure** pane.
169+
1. In Visual Studio Code, on the Activity Bar, select the Azure icon to open the **Azure** pane.
166170

167-
1. Expand the Azure subscription for your Consumption logic app, and find your logic app.
171+
1. In the **Logic Apps (Consumption)** section, expand your Azure subscription, and find your logic app.
168172

169173
1. Open the logic app shortcut menu, and select **Open in Editor**.
170174

@@ -200,95 +204,108 @@ To edit a deployed Consumption or Standard workflow using the designer, make tho
200204

201205
---
202206

203-
> [!NOTE]
204-
>
205-
> The stop logic app and delete logic app operations affect workflow instances in different ways.
206-
> For more information, see [Considerations for stopping logic apps](#considerations-stop-logic-apps) and
207-
> [Considerations for deleting logic apps](#considerations-delete-logic-apps).
207+
<a name="disable-enable-logic-apps"></a>
208+
209+
## Disable or enable a deployed logic app
210+
211+
Deployed Consumption and Standard logic apps have different ways to disable and enable their activity. For considerations around how these tasks affect each logic app resource type, see the following documentation:
212+
213+
- [Considerations for stopping Consumption logic apps](/azure/logic-apps/manage-logic-apps-with-azure-portal?tabs=consumption#considerations-stop-consumption-logic-apps)
214+
- [Considerations for stopping Standard logic apps](/azure/logic-apps/manage-logic-apps-with-azure-portal?tabs=standard#considerations-stop-standard-logic-apps)
215+
- [Considerations for disabling Standard workflows](/azure/logic-apps/manage-logic-apps-with-azure-portal?tabs=standard#considerations-disable-enable-standard-workflows)
216+
217+
### [Consumption](#tab/consumption)
218+
219+
1. In Visual Studio Code, on the Activity Bar, select the Azure icon to open the **Azure** pane.
220+
221+
1. In the **Logic Apps (Consumption)** section, expand your Azure subscription, and find your logic app.
222+
223+
1. Open the logic app shortcut menu. Based on the current actvitity state, select **Disable** or **Enable**.
208224

209-
![Screenshot shows Visual Studio Code with Resources section and deployed logic app resource.](./media/manage-logic-apps-visual-studio-code/find-deployed-workflow-visual-studio-code.png)
225+
### [Standard](#tab/standard)
210226

227+
In Visual Studio Code, you can stop, start, or restart a Standard logic app, which affects all workflow instances. You can also restart a Standard logic app without first stopping its activity. However, to disable and reenable individual workflows, [you must use the Azure portal](/azure/logic-apps/manage-logic-apps-with-azure-portal/stop-start-standard-workflows).
211228

212-
<a name="considerations-stop-logic-apps"></a>
229+
Stopping the resource versus disabling a workflow have different effects, so review the considerations before you continue.
213230

214-
### Considerations for stopping logic apps
231+
1. In Visual Studio Code, on the Activity Bar, select the Azure icon to open the **Azure** pane.
215232

216-
Stopping a logic app affects workflow instances in the following ways:
233+
1. In the **Resources** section, expand your Azure subscription, and find your logic app.
217234

218-
* Azure Logic Apps cancels all in-progress and pending runs immediately.
235+
1. Open the logic app shortcut menu. Based on the current actvitity state, select **Stop** or **Start**. Or, you can select **Restart**.
219236

220-
* Azure Logic Apps doesn't create or run new workflow instances.
237+
---
221238

222-
* Triggers won't fire the next time that their conditions are met. However, trigger states remember the points where the logic app was stopped. So, if you restart the logic app, the triggers fire for all unprocessed items since the last run.
239+
## Post logic app stoppage
223240

224-
To stop a trigger from firing on unprocessed items since the last run, clear the trigger state before you restart the logic app:
241+
After you stop a logic app, workflow triggers won't fire the next time that their conditions are met. However, trigger states remember the points at where you stopped the logic app. When you a restart a logic app, the trigger fires for all unprocessed items since the last workflow run.
225242

226-
1. On the Visual Studio Code Activity Bar, select the Azure icon, which opens the **Azure** pane.
243+
To stop a trigger from firing on unprocessed items since the last workflow run, you must clear the trigger state before you restart a logic app by following these steps:
227244

228-
1. In the **Resources** section, expand your subscription, which shows all the deployed logic apps for that subscription.
245+
### [Consumption](#tab/consumption)
229246

230-
1. Expand your logic app, and then expand the **Workflows** node.
247+
1. In Visual Studio Code, [open your Consumption logic app workflow](#edit-workflow), and edit any part of the workflow trigger.
231248

232-
1. Open a workflow, and edit any part of that workflow's trigger.
249+
1. Save your changes. This step resets your trigger's current state.
233250

234-
1. Save your changes. This step resets the trigger's current state.
251+
1. When you're done, [restart your logic app](/azure/logic-apps/manage-logic-apps-visual-studio-code?tabs=consumption#disable-enable-logic-apps).
235252

236-
1. Repeat for each workflow.
253+
### [Standard](#tab/standard)
237254

238-
1. When you're done, restart your logic app.
255+
1. In Visual Studio Code, [open your Standard logic app workflow](#edit-workflow), and edit any part of the workflow trigger.
239256

240-
<a name="considerations-delete-logic-apps"></a>
257+
1. Save your changes. This step resets the trigger's current state.
241258

242-
### Considerations for deleting logic apps
259+
1. Repeat for each existing workflow.
243260

244-
Deleting a logic app affects workflow instances in the following ways:
261+
1. When you're done, [restart your logic app](/azure/logic-apps/manage-logic-apps-visual-studio-code?tabs=standard#disable-enable-logic-apps).
245262

246-
* Azure Logic Apps cancels in-progress and pending runs immediately, but doesn't run cleanup tasks on the storage used by the app.
263+
---
247264

248-
* Azure Logic Apps doesn't create or run new workflow instances.
265+
<a name="delete-logic-apps"></a>
249266

250-
* If you delete a workflow and then recreate the same workflow, the recreated workflow doesn't have the same metadata as the deleted workflow. To refresh the metadata, you have to resave any workflow that called the deleted workflow. That way, the caller gets the correct information for the recreated workflow. Otherwise, calls to the recreated workflow fail with an `Unauthorized` error. This behavior also applies to workflows that use artifacts in integration accounts and workflows that call Azure functions.
267+
## Delete logic apps
251268

252-
<a name="add-workflow-portal"></a>
269+
Deployed Consumption and Standard logic apps have different ways to delete their resources. For considerations around how deleting affects each logic app resource type, see the following documentation:
253270

254-
## Add another workflow in the portal
271+
- [Considerations for deleting Consumption logic apps](/azure/logic-apps/manage-logic-apps-with-azure-portal?tabs=consumption#considerations-delete-consumption-logic-apps)
272+
- [Considerations for deleting Standard logic apps](/azure/logic-apps/manage-logic-apps-with-azure-portal?tabs=standard#considerations-delete-standard-logic-apps)
273+
- [Considerations for deleting Standard workflows](/azure/logic-apps/manage-logic-apps-with-azure-portal?tabs=standard#considerations-delete-standard-workflows)
255274

256-
Through the Azure portal, you can add blank workflows to a Standard logic app resource that you deployed from Visual Studio Code and build those workflows in the Azure portal.
275+
### [Consumption](#tab/consumption)
257276

258-
1. In the [Azure portal](https://portal.azure.com), select your deployed Standard logic app resource.
277+
1. In Visual Studio Code, on the Activity Bar, select the Azure icon to open the **Azure** pane.
259278

260-
1. On the logic app resource menu, select **Workflows**. On the **Workflows** pane, select **Add**.
279+
1. In the **Logic Apps (Consumption)** section, expand your Azure subscription, and find your logic app.
261280

262-
![Screenshot shows selected logic app's Workflows pane and toolbar with Add command selected.](./media/manage-logic-apps-visual-studio-code/add-new-workflow.png)
281+
1. Open the logic app shortcut menu, and select **Delete**.
263282

264-
1. In the **New workflow** pane, provide name for the workflow. Select either **Stateful** or **Stateless** **>** **Create**.
283+
### [Standard](#tab/standard)
265284

266-
After Azure deploys your new workflow, which appears on the **Workflows** pane, select that workflow so that you can manage and perform other tasks, such as opening the designer or code view.
285+
In Visual Studio Code, you can only delete an entire Standard logic app. To delete individual workflows, [use the Azure portal](/azure/logic-apps/manage-logic-apps-with-azure-portal?tabs=standard#delete-standard-workflows).
267286

268-
![Screenshot shows selected workflow with management and review options.](./media/manage-logic-apps-visual-studio-code/view-new-workflow.png)
287+
1. In Visual Studio Code, on the Activity Bar, select the Azure icon to open the **Azure** pane.
269288

270-
For example, opening the designer for a new workflow shows a blank canvas. You can now build this workflow in the Azure portal.
289+
1. In the **Resources** section, expand your Azure subscription, expand **Logic App**, and find your logic app.
271290

272-
![Screenshot shows workflow designer and blank workflow.](./media/manage-logic-apps-visual-studio-code/opened-blank-workflow-designer.png)
291+
1. Open the logic app shortcut menu, and select **Delete logic app**.
273292

274-
<a name="delete-from-designer"></a>
293+
---
275294

276-
## Delete items from the designer
295+
<a name="promote-previous-versions"></a>
277296

278-
To delete an item in your workflow from the designer, follow any of these steps:
297+
## Promote previous versions (Consumption only)
279298

280-
* Select the item, open the item's shortcut menu (Shift+F10), and select **Delete**. To confirm, select **OK**.
299+
To publish an earlier Consumption logic app version, you can promote that version over the current version. Your logic app must have at least two versions to make the promote option available.
281300

282-
* Select the item, and press the delete key. To confirm, select **OK**.
301+
1. In Visual Studio Code, on the Activity Bar, select the Azure icon to open the **Azure** pane.
283302

284-
* Select the item so that details pane opens for that item. In the pane's upper right corner, open the ellipses (**...**) menu, and select **Delete**. To confirm, select **OK**.
303+
1. In the **Logic Apps (Consumption)** section, expand your Azure subscription, and find your logic app.
285304

286-
![Screenshot shows a selected item on designer with opened information pane plus selected ellipses button and "Delete" command.](./media/manage-logic-apps-visual-studio-code/delete-item-from-designer.png)
305+
1. Expand your logic app, expand **Versions**, and find the earlier version to promote.
287306

288-
> [!TIP]
289-
> If the ellipses menu isn't visible, expand Visual Studio Code window wide enough so that
290-
> the details pane shows the ellipses (**...**) button in the upper right corner.
307+
1. On the version shortcut menu, select **Promote**.
291308

292309
## Related content
293310

294-
- [Create a Standard logic app workflow ]
311+
- [Create Standard logic app workflows in Visual Studio Code](/azure/logic-apps/create-standard-workflows-visual-studio-code)

articles/logic-apps/manage-logic-apps-with-azure-portal.md

Lines changed: 42 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,30 @@ When you create connections in a workflow using [connectors managed by Microsoft
103103

104104
---
105105

106+
<a name="add-workflow-portal"></a>
107+
108+
## Add a workflow to a Standard logic app
109+
110+
You can add blank workflows to a deployed Standard logic app resource continue to build these workflows in the Azure portal.
111+
112+
1. In the [Azure portal](https://portal.azure.com), select your deployed Standard logic app resource.
113+
114+
1. On the logic app resource menu, under **Workflows**, select **Workflows**.
115+
116+
1. On the **Workflows** page toolbar, select **Add**.
117+
118+
![Screenshot shows selected logic app's Workflows pane and toolbar with Add command selected.](./media/manage-logic-apps-visual-studio-code/add-new-workflow.png)
119+
120+
1. In the **New workflow** pane, provide name for the workflow. Select either **Stateful** or **Stateless** **>** **Create**.
121+
122+
After Azure deploys your new workflow, which appears on the **Workflows** pane, select that workflow so that you can manage and perform other tasks, such as opening the designer or code view.
123+
124+
![Screenshot shows selected workflow with management and review options.](./media/manage-logic-apps-visual-studio-code/view-new-workflow.png)
125+
126+
For example, opening the designer for a new workflow shows a blank canvas. You can now build this workflow in the Azure portal.
127+
128+
![Screenshot shows workflow designer and blank workflow.](./media/manage-logic-apps-visual-studio-code/opened-blank-workflow-designer.png)
129+
106130
<a name="disable-enable-logic-apps"></a>
107131

108132
## Disable or enable logic app resources
@@ -289,16 +313,17 @@ Stopping a Consumption logic app affects workflow instances in the following way
289313

290314
You can [delete a single or multiple Standard logic apps at the same time](#delete-standard-logic-apps). Your single-tenant based logic app can include multiple workflows, so you can either delete the entire logic app or [delete only workflows](#delete-standard-workflows).
291315

292-
<a name="delete-standard-logic-apps"></a>
316+
<a name="considerations-delete-standard-logic-apps"></a>
293317

294-
#### Delete Standard logic apps
318+
#### Considerations for deleting Standard logic apps
295319

296-
Deleting a Standard logic app resource cancels in-progress and pending runs immediately, but doesn't run cleanup tasks on the storage used by the app.
320+
- Deleting a Standard logic app resource cancels in-progress and pending runs immediately, but doesn't run cleanup tasks on the storage used by the app.
297321

298-
> [!NOTE]
299-
>
300-
> Although you can [manually recover deleted Standard logic apps](#recover-deleted-standard-logic-apps),
301-
> using source control to manage your Standard logic apps makes recovery and redeployment much easier.
322+
- Although you can [manually recover deleted Standard logic apps](#recover-deleted-standard-logic-apps), using source control to manage your Standard logic apps makes recovery and redeployment much easier.
323+
324+
<a name="delete-standard-logic-apps"></a>
325+
326+
#### Delete Standard logic apps
302327

303328
1. In the [Azure portal](https://portal.azure.com) search box, enter **logic apps**, and select **Logic apps**.
304329

@@ -310,9 +335,9 @@ Deleting a Standard logic app resource cancels in-progress and pending runs imme
310335

311336
1. To confirm whether your operation succeeded or failed, on main Azure toolbar, open the **Notifications** list (bell icon).
312337

313-
<a name="delete-standard-workflows"></a>
338+
<a name="considerations-delete-standard-workflows"></a>
314339

315-
#### Delete Standard workflows
340+
#### Considerations for deleting Standard workflows
316341

317342
Deleting a Standard workflow affects workflow instances in the following ways:
318343

@@ -322,6 +347,10 @@ Deleting a Standard workflow affects workflow instances in the following ways:
322347

323348
* If you delete a workflow and then recreate the same workflow, the recreated workflow won't have the same metadata as the deleted workflow. To refresh the metadata, you have to resave any workflow that called the deleted workflow. That way, the caller gets the correct information for the recreated workflow. Otherwise, calls to the recreated workflow fail with an **Unauthorized** error. This behavior also applies to workflows that use artifacts in integration accounts and workflows that call Azure functions.
324349

350+
<a name="delete-standard-workflows"></a>
351+
352+
#### Delete Standard workflows
353+
325354
1. In the [Azure portal](https://portal.azure.com), open your Standard logic app resource.
326355

327356
1. On the logic app menu, under **Workflows**, select **Workflows**. In the checkbox column, select a single or multiple workflows to delete.
@@ -398,11 +427,11 @@ If you're not using source control, try the following steps to recover a deleted
398427

399428
You can [delete a single or multiple Consumption logic apps at the same time](#delete-consumption-logic-apps).
400429

401-
> [!IMPORTANT]
402-
>
403-
> You can't recover deleted Consumption logic app resources.
430+
<a name="considerations-delete-consumption-logic-apps"></a>
431+
432+
#### Considerations for deleting Consumption logic apps
404433

405-
Deleting a Consumption logic app affects workflow instances in the following ways:
434+
You can't recover deleted Consumption logic app resource. Deleting a Consumption logic app affects workflow instances in the following ways:
406435

407436
* Azure Logic Apps makes a best effort to cancel any in-progress and pending runs.
408437

16.5 KB
Loading
40.7 KB
Loading

0 commit comments

Comments
 (0)