Skip to content

Commit 8c4ab5b

Browse files
authored
Merge pull request #296548 from ecfan/patch-1
[Standard] Enable stateful affinity - Add screenshots for visibility + screenshot refresh
2 parents a27a9d0 + 26d5386 commit 8c4ab5b

File tree

5 files changed

+37
-32
lines changed

5 files changed

+37
-32
lines changed

articles/connectors/enable-stateful-affinity-built-in-connectors.md

Lines changed: 37 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.suite: integration
66
ms.reviewer: estfan, edwardhe, azla
77
ms.topic: how-to
88
ms.custom: devx-track-azurepowershell
9-
ms.date: 01/10/2024
9+
ms.date: 03/18/2025
1010
---
1111

1212
# 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
2525

2626
- 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).
2727

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).
2929

3030
- An Azure virtual network with a subnet to integrate with your logic app. If you don't have these items, see the following documentation:
3131

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)
3434

3535
## Enable stateful mode in the Azure portal
3636

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).
4038

4139
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.
4240

@@ -56,7 +54,7 @@ To run these connector operations in stateful mode, you must enable this capabil
5654

5755
:::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.":::
5856

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).
6058

6159
1. Next, update your logic app's underlying website configuration (**<*logic-app-name*>.azurewebsites.net**) by using either of the following tools:
6260

@@ -73,10 +71,17 @@ After you enable virtual network integration for your logic app, you must update
7371
To configure virtual network private ports using the Azure portal, follow these steps:
7472

7573
1. In the [Azure portal](https://portal.azure.com), find and open your Standard logic app resource.
74+
7675
1. On the logic app menu, under **Settings**, select **Configuration**.
76+
7777
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+
7881
1. Under **Platform settings**, in the **VNet Private Ports** box, enter the ports that you want to use.
7982

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+
8085
### Azure Resource Management API
8186

8287
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,
9398

9499
Updates a resource by using the specified resource ID:
95100

96-
`PATCH https://management.azure.com/{resourceId}?api-version=2021-04-01`
101+
**`PATCH https://management.azure.com/<resource-ID>?api-version=2021-04-01`**
97102

98103
#### Parameter values
99104

100105
| Element | Value |
101106
|---------|--------|
102107
| HTTP request method | **PATCH** |
103-
| <*resourceId*> | **subscriptions/{yourSubscriptionID}/resourcegroups/{yourResourceGroup}/providers/Microsoft.Web/sites/{websiteName}/config/web** |
104-
| <*yourSubscriptionId*> | The ID for your Azure subscription |
105-
| <*yourResourceGroup*> | The resource group that contains your logic app resource |
106-
| <*websiteName*> | The name for your logic app resource, which is **mystandardlogicapp** in this example |
107-
| HTTP request body | **{"properties": {"vnetPrivatePortsCount": "2"}}** |
108+
| **<*resource-ID*>** | **`subscriptions/<Azure-subscription-ID>/resourcegroups/<resource-group>/providers/Microsoft.Web/sites/<website-name>/config/web`** |
109+
| **<*Azure-subscription-ID*>** | The ID for your Azure subscription |
110+
| **<*resource-group*>** | The resource group that contains your logic app resource, which is **My-Standard-RG** in this example |
111+
| **<*website-name*>** | The name for your logic app resource, which is **mystandardlogicapp** in this example |
112+
| HTTP request body | **`{"properties": {"vnetPrivatePortsCount": "2"}}`** |
108113

109114
#### Example
110115

111-
`https://management.azure.com/subscriptions/XXxXxxXX-xXXx-XxxX-xXXX-XXXXxXxXxxXX/resourcegroups/My-Standard-RG/providers/Microsoft.Web/sites/mystandardlogicapp/config/web?api-version=2021-02-01`
116+
**`https://management.azure.com/subscriptions/<Azure-subscription-ID>/resourcegroups/My-Standard-RG/providers/Microsoft.Web/sites/mystandardlogicapp/config/web?api-version=2021-02-01`**
112117

113118
### Azure PowerShell
114119

@@ -117,10 +122,10 @@ To complete this task with Azure PowerShell, review the following requirements,
117122
#### Syntax
118123

119124
```powershell
120-
Set-AzContext -Subscription {yourSubscriptionID}
121-
$webConfig = Get-AzResource -ResourceId {resourceId}
125+
Set-AzContext -Subscription <Azure-subscription-ID>
126+
$webConfig = Get-AzResource -ResourceId <resource-ID>
122127
$webConfig.Properties.vnetPrivatePortsCount = 2
123-
$webConfig | Set-AzResource -ResourceId {resourceId}
128+
$webConfig | Set-AzResource -ResourceId <resource-ID>
124129
```
125130

126131
For more information, see the following documentation:
@@ -133,14 +138,14 @@ For more information, see the following documentation:
133138

134139
| Element | Value |
135140
|---------|--------|
136-
| <*yourSubscriptionID*> | The ID for your Azure subscription |
137-
| <*resourceId*> | **subscriptions/{yourSubscriptionID}/resourcegroups/{yourResourceGroup}/providers/Microsoft.Web/sites/{websiteName}/config/web** |
138-
| <*yourResourceGroup*> | The resource group that contains your logic app resource |
139-
| <*websiteName*> | The name for your logic app resource, which is **mystandardlogicapp** in this example |
141+
| **<*Azure-subscription-ID*>** | The ID for your Azure subscription |
142+
| **<*resource-ID*>** | **`subscriptions/<Azure-subscription-ID>/resourcegroups/<resource-group>/providers/Microsoft.Web/sites/<website-name>/config/web`** |
143+
| **<*resource-group*>** | The resource group that contains your logic app resource, which is **My-Standard-RG** in this example |
144+
| **<*website-name*>** | The name for your logic app resource, which is **mystandardlogicapp** in this example |
140145

141146
#### Example
142147

143-
`https://management.azure.com/subscriptions/XXxXxxXX-xXXx-XxxX-xXXX-XXXXxXxXxxXX/resourcegroups/My-Standard-RG/providers/Microsoft.Web/sites/mystandardlogicapp/config/web?api-version=2021-02-01`
148+
**`https://management.azure.com/subscriptions/<Azure-subscription-ID>/resourcegroups/My-Standard-RG/providers/Microsoft.Web/sites/mystandardlogicapp/config/web?api-version=2021-02-01`**
144149

145150
#### Troubleshoot errors
146151

@@ -151,7 +156,7 @@ If you get an error that says **Reserved instance count is invalid**, use the fo
151156
```powershell
152157
$webConfig.Properties.preWarmedInstanceCount = $webConfig.Properties.reservedInstanceCount
153158
$webConfig.Properties.reservedInstanceCount = $null
154-
$webConfig | Set-AzResource -ResourceId {resourceId}
159+
$webConfig | Set-AzResource -ResourceId <resource-ID>
155160
```
156161

157162
Error example:
@@ -160,7 +165,7 @@ Error example:
160165
Set-AzResource :
161166
{
162167
"Code":"BadRequest",
163-
"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.",
164169
"Target": null,
165170
"Details":
166171
[
@@ -192,20 +197,20 @@ Set-AzResource :
192197

193198
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.
194199

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

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:
198203

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.
200205

201206
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:
202207

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.":::
204209

205210
1. When you're done, on the **Scale out** toolbar, select **Save**.
206211

207212
## Next steps
208213

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)
-1.4 KB
Loading
79.5 KB
Loading
3.87 KB
Loading
2.59 KB
Loading

0 commit comments

Comments
 (0)