Azure Loadbalancer: Can the Virtual Machines in BackendPool retain public IP?

Aditya Garg 61 Reputation points
2021-06-18T14:19:44.423+00:00

Hello Community,
I was going through AWS learn videos where they tend to keep Public IP for the vm instances and are able to configure the Loadbalancer,can we leave public IP here as well for individual vms.

I observe that if we add VM to backend pool while creating the VM, public IP of VM gets replaced by LB IP.

In other instance when attempting to add VM from LB backend pools blade,it does not display the VM till I manually remove Public IP even if VM has the Standard IP configured:

VM configuration:

107074-a.png

107095-b.png

---------------

Loadbalancer:
107027-c.png

Cannot find clear answers online.

Regards,
Aditya

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

Accepted answer
  1. TravisCragg-MSFT 5,686 Reputation points Microsoft Employee
    2021-06-24T22:42:47.003+00:00

    @gargaditya-0330 Standard Load Balancers can add backend pool members by NIC, or by IP Address & VNET.

    In your scenario, add the NIC's VNET level IP as the backend pool. This will allow traffic to flow in and out via the VM's Public IP, and the Load Balancer will be able to send traffic to the VM.

    109164-image.png

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.