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/networking/nat-gateway-integration.md
+14-11Lines changed: 14 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,34 +26,36 @@ For more information and pricing. Go to the [NAT gateway overview](../../virtual
26
26
:::image type="content" source="./media/nat-gateway-integration/nat-gateway-overview.png" alt-text="Diagram shows Internet traffic flowing to a NAT gateway in an Azure Virtual Network.":::
27
27
28
28
> [!Note]
29
-
> Using NAT gateway with App Service is dependent on regional VNet Integration, and therefore **Standard**, **Premium**, **PremiumV2** or **PremiumV3** App Service plan is required.
29
+
> * Using NAT gateway with App Service is dependent on virtual network integration, and therefore **Standard**, **Premium**, **PremiumV2** or **PremiumV3** App Service plan is required.
30
+
> * When using NAT gateway together with App Service, all traffic to Azure Storage must be using private endpoint or service endpoint.
31
+
> * NAT gateway cannot be used together with App Service Environment v1 or v2.
30
32
31
33
## Configuring NAT gateway integration
32
34
33
35
To configure NAT gateway integration with App Service, you need to complete the following steps:
34
36
35
-
* Configure regional VNet Integration with your app as described in [Integrate your app with an Azure virtual network](../overview-vnet-integration.md)
36
-
* Ensure [Route All](../overview-vnet-integration.md#routes) is enabled for your VNet Integration so the Internet bound traffic will be affected by routes in your VNet.
37
-
* Provision a NAT gateway with a public IP and associate it with the VNet Integration subnet.
37
+
* Configure regional virtual network integration with your app as described in [Integrate your app with an Azure virtual network](../overview-vnet-integration.md)
38
+
* Ensure [Route All](../overview-vnet-integration.md#routes) is enabled for your virtual network integration so the Internet bound traffic will be affected by routes in your virtual network.
39
+
* Provision a NAT gateway with a public IP and associate it with the virtual network integration subnet.
38
40
39
41
Set up NAT gateway through the portal:
40
42
41
-
1. Go to the **Networking** UI in the App Service portal and select VNet Integration in the Outbound Traffic section. Ensure that your app is integrated with a subnet and **Route All** has been enabled.
42
-
:::image type="content" source="./media/nat-gateway-integration/nat-gateway-route-all-enabled.png" alt-text="Screenshot of Route All enabled for VNet Integration.":::
43
+
1. Go to the **Networking** UI in the App Service portal and select virtaul network integration in the Outbound Traffic section. Ensure that your app is integrated with a subnet and **Route All** has been enabled.
44
+
:::image type="content" source="./media/nat-gateway-integration/nat-gateway-route-all-enabled.png" alt-text="Screenshot of Route All enabled for virtual network integration.":::
43
45
1. On the Azure portal menu or from the **Home** page, select **Create a resource**. The **New** window appears.
44
46
1. Search for "NAT gateway" and select it from the list of results.
45
47
1. Fill in the **Basics** information and pick the region where your app is located.
46
48
:::image type="content" source="./media/nat-gateway-integration/nat-gateway-create-basics.png" alt-text="Screenshot of Basics tab in Create NAT gateway.":::
47
49
1. In the **Outbound IP** tab, create a new or select an existing public IP.
48
50
:::image type="content" source="./media/nat-gateway-integration/nat-gateway-create-outbound-ip.png" alt-text="Screenshot of Outbound IP tab in Create NAT gateway.":::
49
-
1. In the **Subnet** tab, select the subnet used for VNet Integration.
51
+
1. In the **Subnet** tab, select the subnet used for virtual network integration.
50
52
:::image type="content" source="./media/nat-gateway-integration/nat-gateway-create-subnet.png" alt-text="Screenshot of Subnet tab in Create NAT gateway.":::
51
53
1. Fill in tags if needed and **Create** the NAT gateway. After the NAT gateway is provisioned, click on the **Go to resource group** and select the new NAT gateway. You can to see the public IP that your app will use for outbound Internet-facing traffic in the Outbound IP blade.
52
54
:::image type="content" source="./media/nat-gateway-integration/nat-gateway-public-ip.png" alt-text="Screenshot of Outbound IP blade in the NAT gateway portal.":::
53
55
54
-
If you prefer using CLI to configure your environment, these are the important commands. As a prerequisite, you should create a Web App with VNet Integration configured.
56
+
If you prefer using CLI to configure your environment, these are the important commands. As a prerequisite, you should create an app with virtual network integration configured.
55
57
56
-
Ensure **Route All** is configured for your VNet Integration (*Note*: minimum `az version` required is 2.27):
58
+
Ensure **Route All** is configured for your virtual network integration:
57
59
58
60
```azurecli-interactive
59
61
az webapp config set --resource-group [myResourceGroup] --name [myWebApp] --vnet-route-all-enabled
@@ -80,6 +82,7 @@ The same NAT gateway can be used across multiple subnets in the same Virtual Net
80
82
NAT gateway supports both public IP addresses and public IP prefixes. A NAT gateway can support up to 16 IP addresses across individual IP addresses and prefixes. Each IP address allocates 64,000 ports (SNAT ports) allowing up to 1M available ports. Learn more in the [Scaling section](../../virtual-network/nat-gateway/nat-gateway-resource.md#scale-nat) of NAT gateway.
81
83
82
84
## Next steps
85
+
83
86
For more information on the NAT gateway, see [NAT gateway documentation](../../virtual-network/nat-gateway/nat-overview.md).
84
87
85
-
For more information on VNet Integration, see [VNet Integration documentation](../overview-vnet-integration.md).
88
+
For more information on virtual network integration, see [Virtual network integration documentation](../overview-vnet-integration.md).
0 commit comments