Can VMs in backend pool of load balancer have public IPs

Saicharan Ramagiri 5 Reputation points
2023-02-06T13:58:54.6633333+00:00

If we have a load balancer with public IP and 2 VMs added to its backend pool.

Both the VMs have private IPs attached to them. when VMs are part of backend pool of load balancer,

  1. Can these VMs have public IPs attached to them ?
  • If yes, can a user access those VMs directly from internet with RDP ? if RDP port is open. (let's assume user is aware of the public IPs of VMs)
  • If yes, user can access those VMs, how can a user access those VMs, other than configuring NAT rules for VMs ?
  1. If user can't access the VMs using RDP of public IPs, why can he access them ?
Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
399 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Jackson Martins 9,641 Reputation points MVP
    2023-02-06T14:05:05.41+00:00

    Hi Saicharan
    You can add a direct public ip to the vm behind an LB, and control incoming traffic through the NSG

    It is recommended to use NAT through Load Balance, but you can link a public ip to the nic and control the entry via NSG

    Best

    1 person found this answer helpful.
    0 comments No comments

  2. msrini-MSFT 9,256 Reputation points Microsoft Employee
    2023-02-11T12:40:16.5633333+00:00

    Hi, If you are using an Internal Standard loadbalancer, then you will not able to associate a public IP to the backend pool VMs. You will need to create a standard public load balancer and create a NAT rule to connect to the backend pool VMs.

    0 comments No comments