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/create-standard-workflows-hybrid-deployment.md
+99-53Lines changed: 99 additions & 53 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,9 @@ This how-to guide shows how to create and deploy a Standard logic app workflow u
68
68
> basic Standard workflow before you try deploying to your own infrastructure. This test
69
69
> run helps isolate any errors that might exist in your Standard workflow project.
70
70
71
-
## Create your Standard logic app in the Azure portal
71
+
## Create your Standard logic app
72
+
73
+
### [Portal](#tab/azure-portal)
72
74
73
75
After you meet the prerequisites, create your Standard logic app for hybrid deployment by following these steps:
74
76
@@ -136,13 +138,15 @@ After you meet the prerequisites, create your Standard logic app for hybrid depl
136
138
137
139
For more information about app settings and host settings, see [Edit app settings and host settings](edit-app-settings-host-settings.md).
138
140
139
-
##Create your Standard logic app in Visual Studio Code
141
+
### [Visual Studio Code](#tab/visual-studio-code)
140
142
141
143
After you meet the prerequisites, but before you create your Standard logic app for hybrid deployment in Visual Studio Code, confirm that the following conditions are met:
142
144
143
145
- Your SMB file share server is accessible.
144
146
- Port 445 is open on the computer where you run Visual Studio Code.
145
147
148
+
#### Create your logic app
149
+
146
150
1. Run Visual Studio Code as administrator.
147
151
148
152
1. In Visual Studio Code, on the Activity Bar, select the Azure icon.
@@ -175,6 +179,89 @@ After you meet the prerequisites, but before you create your Standard logic app
175
179
176
180
1. Build your workflow as usual by adding a trigger and actions. For more information, see [Build a workflow with a trigger and actions](create-workflow-with-trigger-or-action.md).
177
181
182
+
#### Deploy your logic app
183
+
184
+
After you finish building your workflow, you can deploy your logic app to your Container Apps connected environment.
185
+
186
+
1. In the Visual Studio Code **Explorer** window, open the shortcut menu for the workflow node, which is **my-stateful-workflow** in this example, and select **Deploy to logic app**.
187
+
188
+
1. From the subscription list, select your Azure subscription.
189
+
190
+
1. From the available logic apps list, select **Create new Logic App (Standard) in Azure**. Provide a globally unique logic app name that uses only lowercase alphanumeric characters or hyphens.
191
+
192
+
This example uses **my-logic-app-hybrid**.
193
+
194
+
1. From the location list that appears, select the same Azure region where you have your connected environment.
195
+
196
+
This example uses **East US**.
197
+
198
+
1. From the hosting plan list, select **Hybrid**.
199
+
200
+
1. From the resource group list, select **Create new resource group**. Provide a name for your resource group.
201
+
202
+
This example uses **Hybrid-RG**.
203
+
204
+
1. From the connected environment list, select your environment.
205
+
206
+
1. Provide your previously saved values for the host name, SMB file share path, username, and password for your artifacts storage.
207
+
208
+
1. Provide the connection string for the SQL database that you set up for runtime storage.
209
+
210
+
Visual Studio Code starts the deployment process for your Standard logic app.
211
+
212
+
1. To monitor deployment status and Azure activity logs, from the **View** menu, select **Output**. In the window that opens, select **Azure**.
213
+
214
+
After deployment completes, you can go to the Azure portal to view your logic app workflow.
215
+
216
+
> [!NOTE]
217
+
>
218
+
> Several known issues exist in the portal around Standard logic apps that use the hybrid hosting option.
219
+
> These logic apps appear with the **Container App** label, which differs from Standard logic apps that
220
+
> use either the Workflow Service Plan or App Service Environment V3 hosting option. For more information,
221
+
> see [Known issues and troubleshooting - Azure portal](#known-issues-portal).
222
+
223
+
---
224
+
225
+
<aname="change-cpu-memory"></a>
226
+
227
+
## Change CPU and memory allocation in the Azure portal
228
+
229
+
To edit the CPU and memory settings for your Standard logic app resource, follow these steps:
230
+
231
+
1. In the [Azure portal](https://portal.azure.com), open your Standard logic app resource.
232
+
233
+
1. On the resource menu, under **Settings**, select **Containers**.
234
+
235
+
1. On the **Containers** page toolbar, select **Edit and deploy**, which opens the **Edit a container** pane.
236
+
237
+
1. On the **Properties** tab, under **Container resource allocation**, change the following values to fit your scenario:
238
+
239
+
| Property | Value | Description |
240
+
|----------|-------|-------------|
241
+
|**CPU cores**| - Default: 1 <br>- Minimum: 0.25 <br>- Maximum: 2 | Determines the CPU cores to assign to your container instance. You can increase this value by 0.25 cores up to the maximum value. The total number across all container instances for this logic app is limited to 2 cores. |
242
+
|**Memory**| - Default: 2 <br>- Minimum: 0.1 <br>- Maximum: 4 | Determines the memory capacity in gibibytes (Gi) to assign to your container instance. You can increase this value by 0.1 Gi up to the maximum value. The total capacity across all container instances for this logic app is limited to 4 Gi. |
243
+
244
+
1. When you finish, select **Save**.
245
+
246
+
<aname="change-scaling"></a>
247
+
248
+
## Change replica scaling in the Azure portal
249
+
250
+
You can control the automatic scaling for the range of replicas that deploy in response to a trigger event. A *replica* is a new instance of a workflow revision or version. To change the minimum and maximum values for this range, you can modify the scale rules to determine the event types that trigger scaling. For more information, see [Set scaling rules in Azure Container Apps](../container-apps/scale-app.md).
251
+
252
+
1. In the [Azure portal](https://portal.azure.com), open your Standard logic app resource.
253
+
254
+
1. On the resource menu, under **Settings**, select **Scale**.
255
+
256
+
1. On the **Scale** page, under **Scale rule setting**, change the following values to fit your scenario:
257
+
258
+
| Property | Value | Description |
259
+
|----------|-------|-------------|
260
+
|**Min replicas**| - Default: 1 <br>- Minimum: 0 <br>- Maximum: 1000 | Determines the minimum number of replicas allowed for the revision at any given time. This value overrides scale rules and must be less than the maximum number of replicas. |
261
+
|**Max replicas**| - Default: 30 <br>- Minimum: 0 <br>- Maximum: 1000 | Determines the maximum number of replicas allowed for the revision at any given time. This value overrides scale rules. |
## Set up authentication for managed API connections
@@ -183,7 +270,7 @@ To authenticate managed API connections in Standard logic app workflows hosted o
183
270
184
271
### Create an app registration with Microsoft Entra ID
185
272
186
-
#### [Portal](#tab/azure-portal)
273
+
#### Azure portal
187
274
188
275
1. In the [Azure portal](https://portal.azure.com), follow [Quickstart: Register an application with the Microsoft identity platform](/entra/identity-platform/quickstart-register-app) to create an app registration.
189
276
@@ -205,9 +292,9 @@ To authenticate managed API connections in Standard logic app workflows hosted o
### Store and reference client ID and client secret
251
338
252
339
You can store the client ID and client secret values in your logic app resource as secrets and then reference those values on the **Environment variables** tab instead.
253
340
254
-
1.On the resource menu, under **Settings**, select **Secrets**.
341
+
1.In the Azure portal, on the logic app resource menu, under **Settings**, select **Secrets**.
255
342
256
343
1. On the toolbar, select **Add**.
257
344
@@ -262,54 +349,13 @@ You can store the client ID and client secret values in your logic app resource
After you finish building your workflow, you can deploy your logic app to your Container Apps connected environment.
268
-
269
-
1. In the **Explorer** window, open the shortcut menu for the workflow node, which is **my-stateful-workflow** in this example, and select **Deploy to logic app**.
270
-
271
-
1. From the subscription list, select your Azure subscription.
272
-
273
-
1. From the available logic apps list, select **Create new Logic App (Standard) in Azure**. Provide a globally unique logic app name that uses only lowercase alphanumeric characters or hyphens.
274
-
275
-
This example uses **my-logic-app-hybrid**.
276
-
277
-
1. From the location list that appears, select the same Azure region where you have your connected environment.
278
-
279
-
This example uses **East US**.
280
-
281
-
1. From the hosting plan list, select **Hybrid**.
282
-
283
-
1. From the resource group list, select **Create new resource group**. Provide a name for your resource group.
284
-
285
-
This example uses **Hybrid-RG**.
286
-
287
-
1. From the connected environment list, select your environment.
288
-
289
-
1. Provide your previously saved values for the host name, SMB file share path, username, and password for your artifacts storage.
290
-
291
-
1. Provide the connection string for the SQL database that you set up for runtime storage.
292
-
293
-
Visual Studio Code starts the deployment process for your Standard logic app.
294
-
295
-
1. To monitor deployment status and Azure activity logs, from the **View** menu, select **Output**. In the window that opens, select **Azure**.
296
-
297
-
After deployment completes, you can go to the Azure portal to view your logic app workflow.
298
-
299
-
> [!NOTE]
300
-
>
301
-
> Several known issues exist in the portal around how you find your Standard logic app, which is created
302
-
> as a container app in this release. Your Standard logic app is also labeled differently from Standard
303
-
> logic apps deployed to single-tenant Azure and App Service environment v3. For more information, see
304
-
> [Known issues and troubleshooting - Azure portal](#known-issues-portal).
305
-
306
352
## Known issues and troubleshooting
307
353
308
354
<aname="known-issues-portal"></a>
309
355
310
356
### Azure portal
311
357
312
-
- Your Standard logic app is deployed as a [Container App resource](/azure/container-apps/overview), but the type appears as **Logic App (Hybrid)**.
358
+
- Your Standard logic app is deployed and appears as a [Container App resource](/azure/container-apps/overview), but the type appears as **Logic App (Hybrid)**.
313
359
314
360
- Your Standard logic app is listed in **Container Apps** resource list, not the **Logic apps** resource list.
0 commit comments