No internet after adding NAT gateway

Koos van Duijvenbode 1 Reputation point
2022-04-19T19:45:23.137+00:00

Hi,

We are running Azure Virtual Desktop (2 host) in a seperate subnet. I added a NAT Gateway to the subnet because I want a single external IP for both host VM's.
But after adding the NAT Gateway, the connection was lost to the Azure Virtual Desktop vm's. I have restarted both VM's, but it not solved the problem. I can reach the VM's with RDP from another server in Azure (different subnet). I can ping internal IP addresses from the two Azure Virtual Desktop vm's, but pinging external IP addresses will fail (like ping 8.8.8.8).

I have no idea what's going wrong, all the manuals I found about configure NAT Gateway were prety straight forward..

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,762 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Luis Rodriguez 6,226 Reputation points Microsoft Employee
    2022-04-19T20:17:29.953+00:00

    Hello @Koos van Duijvenbode

    Can you please check that there are no NSG rules or UDRs applied to that subnet that could be blocking NAT gateway from directing traffic outbound to the internet?

    More info:
    https://learn.microsoft.com/en-us/azure/virtual-network/nat-gateway/troubleshoot-nat#common-connection-issues-with-nat-gateway
    https://learn.microsoft.com/en-us/azure/virtual-network/nat-gateway/nat-overview#virtual-network-nat-basics

    I hope this helps!

    ----------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


  2. risolis 8,741 Reputation points
    2022-04-20T00:30:59.477+00:00

    Hello @Koos van Duijvenbode

    I would like to make a small comment and contribute something for what @Luis Rodriguez gathered before....

    Based on what you provided above... So, you have 2 VMs and you added NAT GW in order to have them being accessible from one Public IP address. Please correct me if I am mistaken.

    VM-1 and VM-2 are on different Subnets( Subnet1 and Subnet2) and then to have their traffic being NAT on this Public IP to Internet....


  3. Koos van Duijvenbode 1 Reputation point
    2022-04-20T20:50:07.52+00:00

    Shoot me, I configured the NAT GW this evening again to troubleshoot. But guess what, this time the VM went offline for a few seconds and came back with his NAT GW IP address... I didn't change anything.

    So, it solved itself...

    Thanks for the help :)


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.