Skip to content

Commit 79de7fe

Browse files
author
ecfan
committed
Save draft
1 parent b3ae66b commit 79de7fe

File tree

1 file changed

+99
-53
lines changed

1 file changed

+99
-53
lines changed

articles/logic-apps/create-standard-workflows-hybrid-deployment.md

Lines changed: 99 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ This how-to guide shows how to create and deploy a Standard logic app workflow u
6868
> basic Standard workflow before you try deploying to your own infrastructure. This test
6969
> run helps isolate any errors that might exist in your Standard workflow project.
7070
71-
## Create your Standard logic app in the Azure portal
71+
## Create your Standard logic app
72+
73+
### [Portal](#tab/azure-portal)
7274

7375
After you meet the prerequisites, create your Standard logic app for hybrid deployment by following these steps:
7476

@@ -136,13 +138,15 @@ After you meet the prerequisites, create your Standard logic app for hybrid depl
136138

137139
For more information about app settings and host settings, see [Edit app settings and host settings](edit-app-settings-host-settings.md).
138140

139-
## Create your Standard logic app in Visual Studio Code
141+
### [Visual Studio Code](#tab/visual-studio-code)
140142

141143
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:
142144

143145
- Your SMB file share server is accessible.
144146
- Port 445 is open on the computer where you run Visual Studio Code.
145147

148+
#### Create your logic app
149+
146150
1. Run Visual Studio Code as administrator.
147151

148152
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
175179

176180
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).
177181

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+
<a name="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+
<a name="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. |
262+
263+
1. When you finish, select **Save**.
264+
178265
<a name="authenticate-managed-api-connections"></a>
179266

180267
## Set up authentication for managed API connections
@@ -183,7 +270,7 @@ To authenticate managed API connections in Standard logic app workflows hosted o
183270

184271
### Create an app registration with Microsoft Entra ID
185272

186-
#### [Portal](#tab/azure-portal)
273+
#### Azure portal
187274

188275
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.
189276

@@ -205,9 +292,9 @@ To authenticate managed API connections in Standard logic app workflows hosted o
205292

206293
:::image type="content" source="media/create-standard-workflows-hybrid-deployment/app-registration-object-id.png" alt-text="Screenshot shows app registration with selected object ID.":::
207294

208-
1. Now, [add the saved values as environment variables](#add-environment-variables) to your Standard logic app resource.
295+
1. Now, [add the saved values as environment variables](#add-app-registration-values-environment-variables) to your Standard logic app resource.
209296

210-
#### [Azure CLI](#tab/azure-cli)
297+
#### Azure CLI
211298

212299
1. To create the app registration, use the [**az ad sp create** command](/cli/azure/ad/sp#az-ad-sp-create).
213300

@@ -220,13 +307,11 @@ To authenticate managed API connections in Standard logic app workflows hosted o
220307
- Tenant ID
221308
- Client secret
222309

223-
1. Now, [add the saved values as environment variables](#add-environment-variables) to your Standard logic app resource.
224-
225-
---
310+
1. Now, [add the saved values as environment variables](#add-app-registration-values-environment-variables) to your Standard logic app resource.
226311

227-
<a name="add-environment-variables"></a>
312+
<a name="add-app-registration-values-environment-variables"></a>
228313

229-
### Add environment variable values to your Standard logic app
314+
### Add app registration values to your Standard logic app
230315

231316
1. In the [Azure portal](https://portal.azure.com), go to your Standard logic app resource.
232317

@@ -247,11 +332,13 @@ To authenticate managed API connections in Standard logic app workflows hosted o
247332

248333
1. When you finish, select **Save**.
249334

335+
<a name="store-client-id-secret-for-reference"></a>
336+
250337
### Store and reference client ID and client secret
251338

252339
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.
253340

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**.
255342

256343
1. On the toolbar, select **Add**.
257344

@@ -262,54 +349,13 @@ You can store the client ID and client secret values in your logic app resource
262349
| **WORKFLOWAPP_AAD_CLIENTID** | <*my-client-ID*> |
263350
| **WORKFLOWAPP_AAD_CLIENTSECRET** | <*my-client-secret*> |
264351

265-
## Deploy your logic app from Visual Studio Code
266-
267-
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-
306352
## Known issues and troubleshooting
307353

308354
<a name="known-issues-portal"></a>
309355

310356
### Azure portal
311357

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)**.
313359

314360
- Your Standard logic app is listed in **Container Apps** resource list, not the **Logic apps** resource list.
315361

0 commit comments

Comments
 (0)