s k
s k

Reputation: 5192

Azure: How to connect two VMs to one single Public IP address

I have one public IP

and two VMs

port 80 map to VM1

port 25 map to VM2

Sadly I can't find anything like a NAT router in Azure :*(

Upvotes: 1

Views: 654

Answers (1)

Sajeetharan
Sajeetharan

Reputation: 222582

You can achieve by creating the VMs in the same availability set and deploy a Internet facing load balancer, then add NAT rules.

By doing the above VMs use the same public IP address and different ports.

Upvotes: 2

Related Questions