Hi JN
To make your DNS name test.southeasia.cloudapp.azure.com point to a specific port (such as 8501) in your IP address, you will need to understand that DNS itself cannot directly associate domain names with ports. DNS was designed to resolve domain names to IP addresses. However, there are several approaches you can take to achieve the behavior you are looking for.
You can configure a web server (like Nginx or Apache) to Reverse Proxy your VM to listen on the default HTTP (80) or HTTPS (443) port. This server can then redirect requests to your application running on a different port. For example, you can configure Nginx to redirect requests to 52.157.189.61:8501.
https://learn.microsoft.com/pt-br/azure/partner-solutions/nginx/nginx-overview
Azure Application Gateway or a Load Balancer can be used to route traffic arriving at a given DNS name (or IP) to any port you define. You would configure the DNS name to point to the Application Gateway or Load Balancer, and then configure rules within those services to route traffic to your application on the desired port.
https://learn.microsoft.com/en-us/azure/application-gateway/quick-create-portal
You can use Azure Firewall or another NSV to redirect traffic through the port, coming in on port 80 or 443 and redirecting to port 8501
https://learn.microsoft.com/en-us/azure/firewall/tutorial-firewall-deploy-portal
Get in touch if you need more help with this issue.
--please don't forget to "[Accept the answer]" if the reply is helpful--