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/manage-logic-apps-visual-studio-code.md
+76-30Lines changed: 76 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ If you aren't already connected to your Azure account, follow these steps to con
41
41
42
42
:::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.":::
43
43
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**.
45
45
46
46
1. When the Visual Studio Code authentication page appears, sign in with your Azure account.
47
47
@@ -57,7 +57,7 @@ If you aren't already connected to your Azure account, follow these steps to con
57
57
58
58
:::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.":::
59
59
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**.
61
61
62
62
1. When the Visual Studio Code authentication page appears, sign in with your Azure account.
63
63
@@ -75,7 +75,7 @@ If you aren't already connected to your Azure account, follow these steps to con
75
75
76
76
1. In Visual Studio Code, [connect to your Azure account](#connect-azure-account), if you haven't already.
77
77
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.
79
79
80
80
1. In the **Logic Apps (Consumption)** section, expand your subscription node.
81
81
@@ -87,22 +87,22 @@ If you aren't already connected to your Azure account, follow these steps to con
87
87
88
88
| Task | Select |
89
89
|------|--------|
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).|
92
92
93
93
1. Expand the node for the items described in the following table where you want to view more information, if any exists:
94
94
95
95
| Node | Description |
96
96
|------|-------------|
97
97
|**Runs**| Workflow run history |
98
98
|**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. |
100
100
101
101
### [Standard](#tab/standard)
102
102
103
103
1. In Visual Studio Code, [connect to your Azure account](#connect-azure-account), if you haven't already.
104
104
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.
106
106
107
107
1. In the **Resources** section, expand your subscription node, and then expand the **Logic App** node.
108
108
@@ -118,50 +118,96 @@ If you aren't already connected to your Azure account, follow these steps to con
118
118
|**Configurations**| View the following configuration elements: <br><br>- **Application Settings** <br><br>- **Connections** <br><br>- **Parameters**|
119
119
|**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 |
120
120
|**Logs**| Log files that contain any diagnostic logging information |
121
-
|**Deployments**||
122
-
|**Slots**|Deployment slots |
121
+
|**Deployments**||
122
+
|**Slots**|Any existing deployment slots |
123
123
|**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. |
124
124
125
125
---
126
126
127
-
To edit the workflow, you have these options:
127
+
<aname="add-workflow-existing-project"></a>
128
128
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)
130
130
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:
132
132
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.
134
134
135
+
1. On the Activity Bar, select the files icon, which opens the **Explorer** window to show your project.
135
136
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**.
137
138
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**
139
140
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.
145
142
146
-

143
+
A new workflow folder now appears in your project. This folder contains a **workflow.json** file for the workflow's underlying JSON definition.
147
144
145
+
<aname="edit-workflow"></a>
148
146
147
+
## Edit a workflow
149
148
150
-
<aname="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.
151
150
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.
153
152
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)
155
162
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.
157
172
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.
159
174
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)
161
182
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
+

163
210
164
-
When you finish, a new workflow folder appears in your project. This folder contains a **workflow.json** file for the workflow definition.
165
211
166
212
<aname="considerations-stop-logic-apps"></a>
167
213
@@ -177,7 +223,7 @@ Stopping a logic app affects workflow instances in the following ways:
177
223
178
224
To stop a trigger from firing on unprocessed items since the last run, clear the trigger state before you restart the logic app:
179
225
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.
181
227
182
228
1. In the **Resources** section, expand your subscription, which shows all the deployed logic apps for that subscription.
0 commit comments