App Service NAT Gateway Integration
This article discusses setting up and enabling a NAT gateway. In addition, it discusses removing a NAT gateway that is no longer needed.
Create NAT Gateway Resources
You must create your NAT gateway resources:
To create a new resource group for your NAT gateway:
In the Azure portal, search for Resource Groups.
Select + Create.
Enter the following information:
Subscription: From the drop-down list, select the subscription where Nerdio Manager lives.
Resource group: Type the name of the new resource group.
Region: From the drop-down list, select your region.
Optionally, if you need tags select Next: Tags and add any necessary tags.
Once you have entered all the desired information, select Review + Create button and then select Create.
Once deployment is complete, select the new Resource Group you created.
To create a new NAT gateway:
Once the resource group deployment is complete, select the new resource group you created.
Select + Create.
Search and select NAT Gateway.
Select Create.
Enter the following information:
Subscription: From the drop-down list, select the subscription.
Resource group: Type the name of the new resource group.
Instance details: You can leave these as the defaults.
Once you have entered the desired information, select Next: Outbound IP.
Select Create a new public IP address.
Type the Name and select OK.
Select Next: Subnet.
Select Create new.
Enter the following information:
Name: Type the name of the new virtual network.
Address Range: Verify there is no overlap.
Once you have entered the desired information, select OK.
Optionally, if you need tags select Next: Tags and add any necessary tags.
Once you have entered all the desired information, select Review + Create button and then select Create.
This process takes a few minutes to complete.
Add Virtual Network Integration to App Service
You may add a virtual network integration to the app service.
To add a virtual network integration:
In the Azure portal, search for App Services.
Select your Nerdio Manager app service, which is typically called something like web-admin-portal…
On the left, in the Settings blade, select Networking.
Under Outbound traffic configuration > Virtual network integration, select Not Configured.
Select Add virtual network integration.
Once you have entered all the desired virtual network integration information, select Connect.
Once configuration is complete, ensure that Application Routing > Outbound internet traffic is selected.
Remove a NAT Gateway
You may remove a NAT gateway that is no longer needed.
Disconnect the app service from NAT Gateway:
In the Azure portal, search for App Services.
Select your Nerdio Manager app service, which is typically called something like web-admin-portal…
On the left, in the Settings blade, select Networking.
Locate the Outbound traffic configuration, and select the Virtual network integration.
Select Disconnect.
Resources to delete:
Setting up the NAT gateway creates a few resources. Some of these resources have costs associated with them, and likely need to be cleaned up. Here is a list of resources that were created during this process. These resources need to be deleted in the following order due to dependencies. An easy way to delete the resources is to navigate to the Resource Group and delete them from the overview page.
Public IP (Cost)
Virtual Network (a subnet is automatically deleted when deleting VNet)
NAT Gateway (Costs)
Comments (0 comments)