Enabling Internet Access for VNet A via NAT Gateway in VNet B

Pratima Patil 50 Reputation points
2025-04-09T10:14:46.9666667+00:00

I have two VNets in Azure:

VNet A – where my application resources are deployed.

VNet B – where a NAT Gateway and its Public IP are configured.

I want the resources in VNet A to reach the internet using the public IP of the NAT Gateway in VNet B.

Is this architecture supported by Azure? If yes, what is the recommended setup to achieve this?

Azure NAT Gateway
Azure NAT Gateway
NAT Gateway is a fully managed service that securely routes internet traffic from a private virtual network with enterprise-grade performance and low latency.
55 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Praveen Bandaru 2,415 Reputation points Microsoft External Staff
    2025-04-09T19:43:34.3533333+00:00

    Hello Pratima Patil

    I understand that you are looking to Enabling Internet Access for VNet A via NAT Gateway in VNet B.

    If you want to use the same NAT Gateway for VNet A and VNet B, it is not possible by default. A NAT Gateway is designed to be associated with only one VNet and can be linked to multiple subnets within that VNet.

    Note: NAT gateway does not support association with multiple VNET's.

    To achieve this functionality, consider using a Network Virtual Appliance (NVA) as outlined in the documentation below.

    You need to deploy the NAT Gateway, then deploy the NVA in the NAT Gateway VNET. Configure to ensure that all traffic from the spoke VNETS is routed through the NVA. You can configure the NAT Gateway to handle all outbound internet traffic from both the hub and spoke VNETS. Finally, validate the setup by testing the NAT Gateway and ensuring proper routing between the hub and spokes.

    Kindly check the below public document for more understanding:
    https://learn.microsoft.com/en-us/azure/nat-gateway/tutorial-hub-spoke-route-nat?tabs=portal


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.   
    User's image

    If you have any other questions or are still running into more issues, let me know in the "comments" and I would be happy to help you.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.