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/app-service/configure-vnet-integration-routing.md
+53-12Lines changed: 53 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: This how-to article walks you through configuring routing on a regi
4
4
author: seligj95
5
5
ms.author: jordanselig
6
6
ms.topic: how-to
7
-
ms.date: 09/02/2025
7
+
ms.date: 11/24/2025
8
8
ms.service: azure-app-service
9
9
---
10
10
@@ -18,61 +18,102 @@ Your app is already integrated using the regional virtual network integration fe
18
18
19
19
## Configure application routing
20
20
21
-
Application routing defines what traffic is routed from your app and into the virtual network. We recommend that you use the `vnetRouteAllEnabled` site setting to enable routing of all traffic. Using the configuration setting allows you to audit the behavior with [a built-in policy](https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyDetailBlade/definitionId/%2Fproviders%2FMicrosoft.Authorization%2FpolicyDefinitions%2Ff5c0bfb3-acea-47b1-b477-b0edcdf6edc1). The `WEBSITE_VNET_ROUTE_ALL` app setting can be used, and you can enable all traffic routing with either setting.
21
+
Application routing defines what traffic is routed from your app and into the virtual network. You can configure routing at two levels:
22
+
23
+
-**All traffic routing** (`outboundVnetRouting.allTraffic`): Routes all outbound traffic from your app through the virtual network integration, including application traffic and configuration traffic (such as container image pulls, content share access, and backup operations).
24
+
-**Application traffic only** (`outboundVnetRouting.applicationTraffic`): Routes only application-generated traffic through the virtual network integration, while configuration traffic continues to use the public route by default (unless individually configured in the configuration routing section).
25
+
26
+
We recommend that you use the `outboundVnetRouting.allTraffic` property to enable routing of all traffic. Using this property allows you to audit the behavior with [a built-in policy](https://www.azadvertizer.net/azpolicyadvertizer/a691eacb-474d-47e4-b287-b4813ca44222.html).
27
+
28
+
> [!NOTE]
29
+
> The legacy `vnetRouteAllEnabled` site setting and `WEBSITE_VNET_ROUTE_ALL` app setting are still supported for backwards compatibility.
22
30
23
31
### Configure in the Azure portal
24
32
25
-
Follow these steps to disable outbound internet traffic routing in your app through the portal.
33
+
Follow these steps to configure application traffic routing in your app through the portal.
26
34
27
-
:::image type="content" source="./media/configure-vnet-integration-routing/vnetint-route-all-enabled.png" alt-text="Screenshot that shows enabling outbound internet traffic.":::
35
+
:::image type="content" source="./media/configure-vnet-integration-routing/vnetint-route-all-enabled.png" alt-text="Screenshot that shows enabling outbound application traffic.":::
28
36
29
37
1. Go to **Networking** > **Virtual network integration** in your app portal.
30
-
1. Uncheck the **Outbound internet traffic** setting.
38
+
1. Configure the **Outbound internet traffic** setting:
39
+
-**Checked**: Routes application traffic through the virtual network (sets `outboundVnetRouting.applicationTraffic=true`).
40
+
-**Unchecked**: Application traffic uses the default route.
41
+
42
+
1. To route configuration traffic (container image pull, content storage, backup/restore), use the **Configuration routing** checkboxes or configure via Azure CLI.
31
43
32
44
:::image type="content" source="./media/configure-vnet-integration-routing/vnetint-route-all-disabling.png" alt-text="Screenshot that shows disabling outbound internet traffic.":::
33
45
34
46
1. Select **Apply** to confirm.
35
47
48
+
> [!NOTE]
49
+
> The portal doesn't provide a direct way to configure `outboundVnetRouting.allTraffic`. To route all traffic (application and configuration) through the virtual network, use the Azure CLI.
50
+
36
51
### Configure with the Azure CLI
37
52
38
-
You can also configure **Outbound internet traffic** by using the Azure CLI.
53
+
You can also configure outbound traffic routing by using the Azure CLI.
54
+
55
+
**Route all traffic (application and configuration) through the virtual network:**
When you're using virtual network integration, you can configure how parts of the configuration traffic are managed. By default, configuration traffic goes directly over the public route, but for the mentioned individual components, you can actively configure it to be routed through the virtual network integration.
47
76
77
+
> [!NOTE]
78
+
> If you enable `outboundVnetRouting.allTraffic=true`, all configuration traffic is automatically routed through the virtual network, and the individual configuration routing settings aren't needed. The individual settings described in the following section are useful when you want to route only specific configuration traffic through the virtual network while keeping `outboundVnetRouting.applicationTraffic=true` or when selectively routing configuration components.
79
+
48
80
### Container image pull
49
81
50
82
Routing container image pull over virtual network integration can be configured using the Azure CLI.
We recommend that you use the site property to enable routing image pull traffic through the virtual network integration. Using the configuration setting allows you to audit the behavior with Azure Policy. The existing `WEBSITE_PULL_IMAGE_OVER_VNET` app setting with the value `true` can still be used, and you can enable routing through the virtual network with either setting.
88
+
We recommend that you use the `outboundVnetRouting.imagePullTraffic` property to enable routing image pull traffic through the virtual network integration. Using this property allows you to audit the behavior with Azure Policy.
89
+
90
+
> [!NOTE]
91
+
> For backwards compatibility, the legacy `vnetImagePullEnabled` property and the `WEBSITE_PULL_IMAGE_OVER_VNET` app setting with the value `true` are still supported.
57
92
58
93
### Content share
59
94
60
95
Routing content share over virtual network integration can be configured using the Azure CLI. In addition to enabling the feature, you must also ensure that any firewall or Network Security Group configured on traffic from the subnet allow traffic to port 443 and 445.
We recommend that you use the site property to enable content share traffic through the virtual network integration. Using the configuration setting allows you to audit the behavior with Azure Policy. The existing `WEBSITE_CONTENTOVERVNET` app setting with the value `1` can still be used, and you can enable routing through the virtual network with either setting.
101
+
We recommend that you use the `outboundVnetRouting.contentShareTraffic` property to enable content share traffic through the virtual network integration. Using this property allows you to audit the behavior with Azure Policy.
102
+
103
+
> [!NOTE]
104
+
> For backwards compatibility, the legacy `vnetContentShareEnabled` property and the `WEBSITE_CONTENTOVERVNET` app setting with the value `1` are still supported.
67
105
68
106
### Backup/restore
69
107
70
108
Routing backup traffic over virtual network integration can be configured using the Azure CLI. Database backup isn't supported over the virtual network integration.
0 commit comments