Skip to content

Commit 356da28

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

File tree

1 file changed

+76
-30
lines changed

1 file changed

+76
-30
lines changed

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

Lines changed: 76 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ If you aren't already connected to your Azure account, follow these steps to con
4141

4242
:::image type="content" source="media/manage-logic-apps-visual-studio-code/visual-studio-code-azure-icon.png" alt-text="Screenshot shows the Visual Studio Code Activity Bar and selected Azure icon.":::
4343

44-
1. In the Azure pane, in the **Logic Apps (Consumption)** section, select **Sign in to Azure**.
44+
1. In the **Azure** pane, in the **Logic Apps (Consumption)** section, select **Sign in to Azure**.
4545

4646
1. When the Visual Studio Code authentication page appears, sign in with your Azure account.
4747

@@ -57,7 +57,7 @@ If you aren't already connected to your Azure account, follow these steps to con
5757

5858
:::image type="content" source="media/manage-logic-apps-visual-studio-code/visual-studio-code-azure-icon.png" alt-text="Screenshot shows Visual Studio Code Activity Bar and selected Azure icon.":::
5959

60-
1. In the Azure pane, in the **Resources** section, select **Sign in to Azure**.
60+
1. In the **Azure** pane, in the **Resources** section, select **Sign in to Azure**.
6161

6262
1. When the Visual Studio Code authentication page appears, sign in with your Azure account.
6363

@@ -75,7 +75,7 @@ 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 Visual Studio Code Activity Bar, select the Azure icon to open the **Azure** pane.
7979

8080
1. In the **Logic Apps (Consumption)** section, expand your subscription node.
8181

@@ -87,22 +87,22 @@ If you aren't already connected to your Azure account, follow these steps to con
8787

8888
| Task | Select |
8989
|------|--------|
90-
| Open workflow in the designer | **Open in Designer** |
91-
| Open workflow in the code view editor | **Open in Editor** |
90+
| Open workflow in the designer | **Open in Designer**, which opens the workflow in read-only mode. |
91+
| Open workflow in the code view editor | **Open in Editor**, which opens the workflow for editing. See [Edit a workflow](#edit-workflow). |
9292

9393
1. Expand the node for the items described in the following table where you want to view more information, if any exists:
9494

9595
| Node | Description |
9696
|------|-------------|
9797
| **Runs** | Workflow run history |
9898
| **Triggers** | Workflow trigger information. <br><br>- To open in the code view editor, open the shortcut menu for the trigger, and select **Open in Editor**. <br><br>- To run the trigger, open the shortcut menu for the trigger, and select **Run**. |
99-
| **Versions** | Logic app versions. <br><br>- To open in the designer, open the shortcut menu for a specific version, and select **Open in Designer**. <br><br>- To open in the code view editor, open the shortcut menu for a specific version, and select **Open in Editor**. |
99+
| **Versions** | Logic app versions. <br><br>- To open in the designer, open the shortcut menu for a specific version, and select **Open in Designer**, which opens in read-only mode. <br><br>- To open in the code view editor, open the shortcut menu for a specific version, and select **Open in Editor**, which opens in read-only mode. |
100100

101101
### [Standard](#tab/standard)
102102

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

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

107107
1. In the **Resources** section, expand your subscription node, and then expand the **Logic App** node.
108108

@@ -118,50 +118,96 @@ If you aren't already connected to your Azure account, follow these steps to con
118118
| **Configurations** | View the following configuration elements: <br><br>- **Application Settings** <br><br>- **Connections** <br><br>- **Parameters** |
119119
| **Files** | Project files and any other files in your logic app resource, for example: <br><br>- **Artifacts** <br><br>- **workflow.json** file for each workflow in your logic app resource <br><br>- **connections.json** file that contains information about connections created by managed connectors <br><br>- **host.json** file |
120120
| **Logs** | Log files that contain any diagnostic logging information |
121-
| **Deployments** ||
122-
| **Slots** | Deployment slots |
121+
| **Deployments** | |
122+
| **Slots** | Any existing deployment slots |
123123
| **Artifacts** | Files such as map (.xslt) files, schemas (.xsd), or assemblies (.dll or .jar) <br><br>**Note**: This node and subnodes appear only if any actual files exist. |
124124

125125
---
126126

127-
To edit the workflow, you have these options:
127+
<a name="add-workflow-existing-project"></a>
128128

129-
* In Visual Studio Code, open your project's **workflow.json** file in the workflow designer, make your edits, and redeploy your logic app to Azure.
129+
## Add blank workflow to project (Standard logic app only)
130130

131-
* In the Azure portal, [open your logic app](#manage-deployed-apps-portal). You can then open, edit, and save your workflow.
131+
Your Standard logic app can include multiple workflows. To add a new empty workflow to your project, follow these steps:
132132

133-
You can also sign in separately to the Azure portal, use the portal search box to find your logic app, and then select your logic app from the results list.
133+
1. In Visual Studio Code, open your Standard logic app project, if not already open.
134134

135+
1. On the Activity Bar, select the files icon, which opens the **Explorer** window to show your project.
135136

136-
1. lect the logic app that you want and to manage. From the logic app's shortcut menu, select the task that you want to perform.
137+
1. On your project folder shortcut menu, and select **Create workflow**.
137138

138-
For example, you can select tasks such as stopping, starting, restarting, or deleting your deployed logic app. You can [disable or enable a workflow by using the Azure portal](manage-logic-apps-with-azure-portal.md#disable-enable-standard-workflows).
139+
1. Select the workflow template **Stateful** or **Stateless**
139140

140-
> [!NOTE]
141-
>
142-
> The stop logic app and delete logic app operations affect workflow instances in different ways.
143-
> For more information, see [Considerations for stopping logic apps](#considerations-stop-logic-apps) and
144-
> [Considerations for deleting logic apps](#considerations-delete-logic-apps).
141+
1. Provide a name for your workflow.
145142

146-
![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)
143+
A new workflow folder now appears in your project. This folder contains a **workflow.json** file for the workflow's underlying JSON definition.
147144

145+
<a name="edit-workflow"></a>
148146

147+
## Edit a workflow
149148

150-
<a name="add-workflow-existing-project"></a>
149+
In Visual Studio Code, you can edit a deployed Consumption workflow using only the code view editor. If you open a deployed Consumption workflow using the designer, the workflow opens in read-only mode. By comparison, you can edit a Standard workflow using the designer or code view editor only within the context of your Standard logic app project in the **Explorer** pane. If you open a *deployed* Standard workflow using the designer or code view editor from the **Resources** section in the **Azure** pane, the workflow opens in read-only mode.
151150

152-
## Add blank workflow to project (Standard logic app only)
151+
To edit a deployed Consumption or Standard workflow using the designer, make those changes in the Azure portal instead.
153152

154-
You can have multiple workflows in your logic app project. To add a blank workflow to your project, follow these steps:
153+
> [!IMPORTANT]
154+
>
155+
> Before you change your workflow, you might want to stop or disable your workflow. Make sure
156+
> that you understand how your changes affect your workflow's operation. When you're done,
157+
> remember to restart or reenable your workflow. For considerations around stopping, disabling,
158+
> restarting, or reenabling workflows, see the following documentation:
159+
>
160+
> - [Considerations for stopping Consumption logic apps](/azure/logic-apps/manage-logic-apps-with-azure-portal?tabs=consumption#considerations-stop-consumption-logic-apps)
161+
> - [Considerations for stopping Standard logic apps](/azure/logic-apps/manage-logic-apps-with-azure-portal?tabs=standard#considerations-stop-standard-logic-apps)
155162
156-
1. In Visual Studio Code, on the Activity Bar, select the files icon, which opens the **Explorer** window to show your project.
163+
### [Consumption](#tab/consumption)
164+
165+
1. On the Visual Studio Code Activity Bar, select the Azure icon to open the **Azure** pane.
166+
167+
1. Expand the Azure subscription for your Consumption logic app, and find your logic app.
168+
169+
1. Open the logic app shortcut menu, and select **Open in Editor**.
170+
171+
Visual Studio Code opens the code view editor for the workflow's underlying JSON definition file named **<*logic-app-name*>.logicapp.json** file. You can now edit the workflow's underlying JSON definition.
157172

158-
1. In your project, open the project folder shortcut window, and select **Create workflow**.
173+
1. After you make changes and try to save your workflow, a message appears to confirm that you want to upload your changes to the deployed workflow.
159174

160-
1. Select the template for the workflow: **Stateful** or **Stateless**
175+
1. To continue saving and publishing your changes, select **Upload**.
176+
177+
Azure saves the original workflow as a previous version. Your updated workflow becomes the current workflow.
178+
179+
1. If your workflow is disabled, remember to reenable your workflow.
180+
181+
### [Standard](#tab/standard)
161182

162-
1. Provide a name for your new workflow.
183+
#### Edit workflow in project
184+
185+
1. In Visual Studio Code, open your Standard logic app project, if not already open.
186+
187+
1. On the Activity Bar, select the files icon to open the **Explorer** pane, which shows your project.
188+
189+
1. In your project, expand the workflow folder that you want.
190+
191+
1. Choose from the following options:
192+
193+
- Open the **workflow.json** shortcut menu, select **Open Designer**, and make your changes in the designer.
194+
195+
- Open the **workflow.json** file, and make your changes in the underlying JSON definition.
196+
197+
1. When you're done, [publish your updated Standard logic app](/azure/logic-apps/create-standard-workflows-visual-studio-code#publish-new-logic-app).
198+
199+
1. If your workflow is disabled, remember to reenable your workflow.
200+
201+
---
202+
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).
208+
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)
163210

164-
When you finish, a new workflow folder appears in your project. This folder contains a **workflow.json** file for the workflow definition.
165211

166212
<a name="considerations-stop-logic-apps"></a>
167213

@@ -177,7 +223,7 @@ Stopping a logic app affects workflow instances in the following ways:
177223

178224
To stop a trigger from firing on unprocessed items since the last run, clear the trigger state before you restart the logic app:
179225

180-
1. On the Visual Studio Code Activity Bar, select the Azure icon, which opens the Azure window.
226+
1. On the Visual Studio Code Activity Bar, select the Azure icon, which opens the **Azure** pane.
181227

182228
1. In the **Resources** section, expand your subscription, which shows all the deployed logic apps for that subscription.
183229

0 commit comments

Comments
 (0)