Hello @Rajesh Swarnkar ,
Thanks for reaching out to Microsoft Q&A
I understand that you're checking whether it's possible to configure multiple listeners on the same port, such as 80 or 443, in Azure Application Gateway to serve several backend services like VM, VMSS, App Service, or Function App, without requiring users to enter port numbers.
Yes, this can be achieve by configuring multi-site listeners in Application Gateway, which enable routing of incoming requests based on the hostname specified in the request header.
- Azure Application Gateway enables multi-site hosting, allowing you to configure multiple listeners on the same port. Each listener can route traffic based on the hostname in the HTTP request, directing it to the appropriate backend pool.
- While setting up multi-site listeners, you can specify up to five hostnames per listener, including support for wildcard entries. This allows users to access services using hostnames alone, without needing to enter port numbers
- You’ll need to configure listeners to match the hostnames you intend to support, and then link each listener to the appropriate routing rules that direct traffic to the correct backend pool.
You might check out the detailed Azure documentation on multi-site hosting:
https://free.blessedness.top/en-us/azure/application-gateway/multiple-site-overview
https://free.blessedness.top/en-us/azure/application-gateway/configuration-listeners
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".