Acess an Azure VM behind the Azure LB.

Alexandre Emanuel Capita 16 Reputation points

Hi team,

I would like to know how can I have access to an Azure VM that is behind an Azure Load Balancer? The VM has only private IP and the Public IP is from the load balancer. I tried from that IP provided by the LB, but I cant.

I Would like to hear from you.

Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
410 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaviVarmanMSFT 626 Reputation points Microsoft Employee

    Hi @Alexandre Emanuel Capita

    Thanks for reaching us.

    A public load balancer maps the public IP and port of incoming traffic to the private IP and port of the VM, When you place the VM which has only private IP and placed behind the LB then it will use the public Ip of the LB for incoming traffic. A load balancer rule is used to define how incoming traffic is distributed to the all the instances within the backend pool. A load-balancing rule maps a given frontend IP configuration and port to multiple backend IP addresses and ports.

    When you want to access the VM on port 3389 or 22 then you need to have an LB rule created with right FrontendIp, Frontend port(3389/22), Backend port(3389/22 or custom) , Backend pool and health probe (port 3389/22). If the health probe is successful then the traffic will be sent to the right backend. You can check health probe status under metrics.

    LB Components :
    Health Probe :

    Hope this was helpful. Please let us know in case of any additional questions or concerns.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well

    0 comments No comments