Skip to content

Commit 49d1db3

Browse files
committed
Add CLI and ARM template tabs for allowNewDirectNetworkIntegrations
1 parent 7353cb3 commit 49d1db3

1 file changed

Lines changed: 25 additions & 2 deletions

File tree

articles/app-service/environment/networking.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,13 @@ To enable the feature, configure the `MultipleSubnetJoinEnabled` cluster setting
153153

154154
For guidance on configuring cluster settings, see [Custom configuration settings for App Service Environments](app-service-app-service-environment-custom-settings.md).
155155

156-
You must also set the `allowNewDirectNetworkIntegrations` property to `true` in the App Service Environment's networking configuration. This property is a required part of the networking configuration body. If you update the networking configuration without including this property, it could be disabled since it defaults to `false`. There's no dedicated CLI parameter for this property, so use the following `az rest` command to enable it:
156+
You must also set the `allowNewDirectNetworkIntegrations` property to `true` in the App Service Environment's networking configuration. This property is a required part of the networking configuration body. If you update the networking configuration without including this property, it could be disabled since it defaults to `false`.
157+
158+
You can set this property using the CLI or directly in an ARM template.
159+
160+
#### [CLI](#tab/cli)
161+
162+
There's no dedicated CLI parameter for this property, so use the following `az rest` command to enable it:
157163

158164
```azurecli-interactive
159165
az rest --method put \
@@ -167,8 +173,25 @@ az rest --method put \
167173

168174
Replace `{subscriptionId}`, `{resourceGroupName}`, and `{aseName}` with your values.
169175

176+
#### [ARM template](#tab/arm)
177+
178+
In your ARM template, set the property in the networking configuration resource:
179+
180+
```json
181+
{
182+
"type": "Microsoft.Web/hostingEnvironments/configurations",
183+
"apiVersion": "2024-04-01",
184+
"name": "[concat(parameters('aseName'), '/networking')]",
185+
"properties": {
186+
"allowNewDirectNetworkIntegrations": true
187+
}
188+
}
189+
```
190+
191+
---
192+
170193
> [!IMPORTANT]
171-
> When sending a PUT request to update the networking configuration, include all properties you want to preserve. The `allowNewDirectNetworkIntegrations` property is a non-nullable boolean that defaults to `false`, so omitting it from a networking configuration update disables the feature.
194+
> When updating the networking configuration, include all properties you want to preserve. The `allowNewDirectNetworkIntegrations` property is a non-nullable boolean that defaults to `false`, so omitting it from a networking configuration update disables the feature.
172195
173196
### Join an app to an alternate subnet
174197

0 commit comments

Comments
 (0)