Load balancing port forwarding

姣月 曹 1 Reputation point
2021-03-18T06:52:06.957+00:00

I have a problem, which is the load balancing of Microsoft cloud. When carrying out port forwarding, can I specify the port range forwarding, such as 10000-20000 forwarding to the back end, UDP protocol

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

1 answer

Sort by: Most helpful
  1. suvasara-MSFT 10,046 Reputation points
    2021-03-18T10:21:55.503+00:00

    @姣月 曹 , AFAIK, this feature of adding a range of ports to the Load balancer port forwarding configuration is not yet supported.

    $vmConfig | Add-AzureEndpoint -Name "CUSTOMUDP" `  
                                  -Protocol udp `  
                                  -LocalPort 5001 `  
                                  -PublicPort 5001 `  
                                  -LBSetName "LBCUSTOMUDP" `  
                                  -ProbeProtocol tcp `  
                                  -ProbePort 5051  
    

    Each configuration needs a single public port forwarded to a target internal port.

    ----------

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.


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.