|
| 1 | +--- |
| 2 | +title: Migrate from gateway-based virtual network integration |
| 3 | +description: Migrate your virtual network integration from gateway-based integration to regional integration. |
| 4 | +author: madsd |
| 5 | +ms.topic: how-to |
| 6 | +ms.date: 10/01/2024 |
| 7 | +ms.author: madsd |
| 8 | + |
| 9 | +--- |
| 10 | +# Migrate from gateway-based virtual network integration |
| 11 | + |
| 12 | +There are two ways in App Service to integration with a virtual network. One way is gateway-based integration using a virtual network gateway that establishes a point-to-site VPN connection from the app to the virtual network. The other way is now just known as virtual network integration since more than 99% of all integrations are using this method. Virtual network integration has several advantages over gateway-based integration. The only edge case scenario is when you need to connect directly to a virtual network in a different region and aren't able to set up peerings. |
| 13 | + |
| 14 | +Gateway-based integration can't be used in the following scenarios: |
| 15 | + |
| 16 | +* With a virtual network connected with ExpressRoute. |
| 17 | +* From a Linux app. |
| 18 | +* From a Windows container. |
| 19 | +* To access service endpoint-secured resources. |
| 20 | +* To resolve App Settings referencing a network protected Key Vault. |
| 21 | +* With a coexistence gateway that supports both ExpressRoute and point-to-site or site-to-site VPNs. |
| 22 | + |
| 23 | +| Feature | Virtual network integration| Gateway-based integration | |
| 24 | +| :--------: | :------------: | :------------: | |
| 25 | +| Gateway required | No | Yes | |
| 26 | +| Bandwidth limit | Virtual machine limit | SSTP Point-to-site VPN limit | |
| 27 | +| Connect up to | Two subnets per plan | Five virtual networks per plan | |
| 28 | +| Route tables, NSG, NAT gateway support | Yes | No | |
| 29 | +| OS Support | Windows, Linux, and Windows Container | Windows only | |
| 30 | +| Access service endpoints | Yes | No | |
| 31 | +| Resolve network protected Key Vault app settings | Yes | No | |
| 32 | +| Co-connect to virtual network with Express Route | Yes | No | |
| 33 | +| Connect directly to virtual network in different region | Only through global peerings | Yes | |
| 34 | + |
| 35 | +## Migration path and planning |
| 36 | + |
| 37 | +The complexity and planning of migration varies based on your current setup. |
| 38 | + |
| 39 | +## Same region migration |
| 40 | + |
| 41 | +If you're connecting to a gateway in the same region as your app, the migration is simple. First you need to select or create a subnet in the virtual network where the apps integrates going forward. |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | +Then all you need to do is run a command to configure the virtual network integration. |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | +Migrating from gateway-based to regional virtual network integration is a simple disconnect/connect operation. Before making the switch, make sure you have a subnet configured for your apps. You can either have one per plan or take advantage of the new multi-plan subnet join feature to connect apps from different plans to the same subnet. You should spend a little time planning your subnet address range. The general recommendation is to have double the IPs as the expected maximum planned instances of your plan(s). You should also delegate the subnet(s) to `Microsoft.Web/serverFarms`. |
| 51 | + |
| 52 | +## Post configurations |
| 53 | + |
| 54 | +After moving to regional virtual network integration you now have some new options you can take advantage of. You can decide if configuration options like backup/restore and image pull for container based workloads should be [routed through the virtual network](https://learn.microsoft.com/azure/app-service/overview-vnet-integration#configuration-routing). You can also define Network Security Groups or User Defined Routes for the individual subnets and you can increase SNAT ports and get a deterministic outbound public source IP by attaching a NAT gateway to the subnet. |
0 commit comments