You can do this in a number of ways but some of the options depend on if the traffic is web (http/https) or not web. For non-web you can use layer 4 options like load balancer and Azure Firewall (create a DNAT rule). For web traffic, you can use L4 - L7 such as load balancer, Azure Firewall but also App Gtwy and even your build your own reverse proxy (https://learn.microsoft.com/en-us/iis/extensions/planning-for-arr/using-the-application-request-routing-module).
Traffic Forwarding from one VM to another VM in Azure
$@chin
145
Reputation points
Hello,
I am looking for a solution to forward traffic from a web VM to an app VM. Specifically, when a user tries to access the web VM on port 6545, the traffic should be routed through the web VM to the app VM on port 6767.
Can this be achieved in Azure using services such as Azure Firewall, Application Gateway, Load Balancer, or any other service