Manage Azure App Service virtual network integration routing

When you configure application routing, you can either route all traffic or only private traffic (also known as RFC1918 traffic) into your Azure virtual network (VNet). This article describes how to configure application routing.

Prerequisites

Your app is already integrated using the regional VNet integration feature.

Configure in the Azure portal

Follow these steps to disable Route All in your app through the portal.

Screenshot that shows enabling Route All.

  1. Go to Networking > VNet integration in your app portal.

  2. Set Route All to Disabled.

    Screenshot that shows disabling Route All.

  3. Select Yes to confirm.

Configure with the Azure CLI

You can also configure Route All by using the Azure CLI. The minimum az version required is 2.27.0.

az webapp config set --resource-group <group-name> --name <app-name> --vnet-route-all-enabled [true|false]

Configure with Azure PowerShell

# Parameters
$siteName = '<app-name>'
$resourceGroupName = '<group-name>'

# Configure VNet Integration
$webApp = Get-AzResource -ResourceType Microsoft.Web/sites -ResourceGroupName $resourceGroupName -ResourceName $siteName
Set-AzResource -ResourceId ($webApp.Id + "/config/web") -Properties @{ vnetRouteAllEnabled = $true } -Force

Next steps