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/connectors/enable-stateful-affinity-built-in-connectors.md
+37-32Lines changed: 37 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.suite: integration
6
6
ms.reviewer: estfan, edwardhe, azla
7
7
ms.topic: how-to
8
8
ms.custom: devx-track-azurepowershell
9
-
ms.date: 01/10/2024
9
+
ms.date: 03/18/2025
10
10
---
11
11
12
12
# Enable stateful mode for stateless built-in connectors in Azure Logic Apps
@@ -25,18 +25,16 @@ To run these connector operations in stateful mode, you must enable this capabil
25
25
26
26
- An Azure account and subscription. If you don't have a subscription, [sign up for a free Azure account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
27
27
28
-
- The Standard logic app resource where you plan to create the workflow that uses the stateful mode-enabled connector operations. If you don't have this resource, [create your Standard logic app resource now](../logic-apps/create-single-tenant-workflows-azure-portal.md).
28
+
- The Standard logic app resource where you plan to create the workflow that uses the stateful mode-enabled connector operations. If you don't have this resource, [create your Standard logic app resource now](/azure/logic-apps/create-single-tenant-workflows-azure-portal).
29
29
30
30
- An Azure virtual network with a subnet to integrate with your logic app. If you don't have these items, see the following documentation:
31
31
32
-
-[Quickstart: Create a virtual network with the Azure portal](../virtual-network/quick-create-portal.md)
33
-
-[Add, change, or delete a virtual network subnet](../virtual-network/virtual-network-manage-subnet.md?tabs=azure-portal)
32
+
-[Quickstart: Create a virtual network with the Azure portal](/azure/virtual-network/quick-create-portal)
33
+
-[Add, change, or delete a virtual network subnet](/azure/virtual-network/virtual-network-manage-subnet?tabs=azure-portal)
34
34
35
35
## Enable stateful mode in the Azure portal
36
36
37
-
> [!NOTE]
38
-
> If you use network security groups in your virtual network, stateful mode requires that
39
-
> you open [ports 20,000 to 30,000](../app-service/overview-vnet-integration.md#private-ports).
37
+
If you use network security groups in your virtual network, stateful mode requires that you open [ports 20,000 to 30,000](/azure/app-service/overview-vnet-integration#private-ports).
40
38
41
39
1. In the [Azure portal](https://portal.azure.com), open the Standard logic app resource where you want to enable stateful mode for these connector operations.
42
40
@@ -56,7 +54,7 @@ To run these connector operations in stateful mode, you must enable this capabil
56
54
57
55
:::image type="content" source="media/enable-stateful-affinity-built-in-connectors/enable-virtual-network-integration.png" alt-text="Screenshot shows Azure portal, Standard logic app resource, Networking page with selected virtual network and subnet.":::
58
56
59
-
For general information about enabling virtual network integration with your app, see [Enable virtual network integration in Azure App Service](../app-service/configure-vnet-integration-enable.md).
57
+
For general information about enabling virtual network integration with your app, see [Enable virtual network integration in Azure App Service](/azure/app-service/configure-vnet-integration-enable).
60
58
61
59
1. Next, update your logic app's underlying website configuration (**<*logic-app-name*>.azurewebsites.net**) by using either of the following tools:
62
60
@@ -73,10 +71,17 @@ After you enable virtual network integration for your logic app, you must update
73
71
To configure virtual network private ports using the Azure portal, follow these steps:
74
72
75
73
1. In the [Azure portal](https://portal.azure.com), find and open your Standard logic app resource.
74
+
76
75
1. On the logic app menu, under **Settings**, select **Configuration**.
76
+
77
77
1. On the **Configuration** page, select **General settings**.
78
+
79
+
:::image type="content" source="media/enable-stateful-affinity-built-in-connectors/general-settings.png" alt-text="Screenshot shows Azure portal, Standard logic app menu, Settings, and Configuration with general settings tab selected.":::
80
+
78
81
1. Under **Platform settings**, in the **VNet Private Ports** box, enter the ports that you want to use.
79
82
83
+
:::image type="content" source="media/enable-stateful-affinity-built-in-connectors/vnet-private-ports.png" alt-text="Screenshot shows Azure portal, Standard logic app menu, Settings, and Configuration with general settings tab selected, and highlighted property named VNet Private Ports.":::
84
+
80
85
### Azure Resource Management API
81
86
82
87
To complete this task with the [Azure Resource Management API - Update By Id](/rest/api/resources/resources/update-by-id), review the following requirements, syntax, and parameter values.
@@ -93,22 +98,22 @@ OAuth authorization and the bearer token are required. To get the bearer token,
93
98
94
99
Updates a resource by using the specified resource ID:
"Message":"siteConfig.ReservedInstanceCount is invalid. Please use the new property siteConfig.PreWarmedInstanceCount.",
168
+
"Message":"siteConfig.ReservedInstanceCount is invalid. Please use the new property siteConfig.PreWarmedInstanceCount.",
164
169
"Target": null,
165
170
"Details":
166
171
[
@@ -192,20 +197,20 @@ Set-AzResource :
192
197
193
198
Resource scale-in events might cause the loss of context for built-in connectors with stateful mode enabled. To prevent this potential loss before such events can happen, fix the number of instances available for your logic app resource. This way, no scale-in events can happen to cause this potential context loss.
194
199
195
-
1. On your logic app resource menu, under **Settings**, select **Scale out**.
200
+
1. On your logic app resource menu, under **Settings**, select **Scale out (App Service plan)**.
196
201
197
-
1. On the **Scale out** page, in the **App Scale out** section, follow these steps:
202
+
1. On the **Scale out (App Service plan)** page, in the **App Scale out** section, follow these steps:
198
203
199
-
1. Set **Enforce Scale Out Limit** to **Yes**, which shows the **Maximum Scale Out Limit**.
204
+
1. Set **Enforce Scale Out Limit** to **Yes**, which shows the **Maximum Scale Out Limit** property.
200
205
201
206
1. Set **Always Ready Instances** to the same number as **Maximum Scale Out Limit** and **Maximum Burst**, which appears in the **Plan Scale out** section, for example:
202
207
203
-
:::image type="content" source="media/enable-stateful-affinity-built-in-connectors/scale-in-settings.png" alt-text="Screenshot shows Azure portal, Standard logic app resource, Scale out page, and Always Ready Instances number set to match Maximum Burst and Maximum Scale Out Limit.":::
208
+
:::image type="content" source="media/enable-stateful-affinity-built-in-connectors/scale-in-settings.png" alt-text="Screenshot shows Azure portal, Standard logic app resource, Scale out page, and Always Ready Instances number set to match Maximum Burst and Maximum Scale Out Limit.":::
204
209
205
210
1. When you're done, on the **Scale out** toolbar, select **Save**.
206
211
207
212
## Next steps
208
213
209
-
-[Connect to Azure Service Bus](connectors-create-api-servicebus.md)
210
-
-[Connect to SAP](../logic-apps/logic-apps-using-sap-connector.md)
211
-
-[Connect to IBM MQ](connectors-create-api-mq.md)
214
+
-[Connect to Azure Service Bus](/azure/connectors/connectors-create-api-servicebus)
215
+
-[Connect to SAP](/azure/logic-apps/connectors/sap)
216
+
-[Connect to IBM MQ](/azure/connectors/connectors-create-api-mq)
0 commit comments