Reputation: 1543
How would one route a domain's port traffic to multiple AppServices (not VMs):
https://www.example.com:80 (Website) --> AppService A
https://www.example.com:2000 (WebService) --> AppService B or AppService A/Slot 1
https://www.example.com:3000 (WebService) --> AppService C or AppService A/Slot 2
Would this be best accomplished with an Application Gateway? Can it be done with a Load Balancer or Traffic Manager? Can it be routed to Deployment Slots?
Upvotes: 0
Views: 1092
Reputation: 28224
As @juunas comment, the traffic manager works at the DNS level, it does not work on routing application based on the port for HTTP/HTTPS traffic.
For routing multiple app services based on each port, you could consider Azure application gateway with path-based routing riles and Azure front door. However, that deployment will be complex and it will be very expensive.
Moreover, it does not allow to add the same domain for multiple different public services. So you can add the domain to one app service then use virtual directories. It is a relatively cheap way. Refer to this to create a virtual directory.
Upvotes: 1