NAT Gateway Configuration for azure Internal load balancer

Gowda, Hariprasad 86 Reputation points
2022-07-29T09:13:12.94+00:00

I configured azure internal load balancer for azure vm scaleset. Both the resources are in different subnet of the same vnet. Now i want my vm instances in the scaleset to have the outbound connectivity to the internet.

I created the NAT gateway and associated to azure VM scaleset's subnet and configured the outbound rules on the nsg associated to subnet. This configuration works without any issue.

So then i wanted to test it by associating nat gateway to subnet of the Internal load balancer. this configuration is not working

Is there any reason why nat gateway isn't working in the load balancer's subnet?

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,137 questions
Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
956 questions
Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
401 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
347 questions
{count} votes

Accepted answer
  1. Jackson Martins 9,641 Reputation points MVP
    2022-07-29T12:54:47.14+00:00

    @Gowda, Hariprasad
    Is your Nat gateway bound to the same VNET as Load Balance?

    I have a test environment, and the configuration is working; below are some screenshots:

    My environment

    VNET name LABTEST-vnet

    Address space 10.0.0.0/16

    Subnet##

    Default = 10.0.0.0/24
    Subnet02 = 10.0.1.0/24

    Default Subnet ##

    VM = 10.0.0.4
    LB = 10.0.0.254
    Nat Gateway attached

    SUBNET Connected Devices ##

    226138-image.png

    LOAD BALANCE Configuration ##

    226117-image.png

    226139-image.png

    NAT GATEWAY ##

    226192-image.png

    226193-image.png

    INTERNAL VM Behind LB##

    226201-image.png

    I hope this information helps. Make a comparison between environments, and check which Subnet your Natgateway is linked to. Natgateway does not allow linking subnets with IP address Basic SKU, Load balance Basic SKU..

    --please don't forget to "Accept the answer" if the reply is helpful--

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful