azureazure-container-instancesazure-webappsazure-web-app-for-containers

How to expose two port in webapp for container in azure?


Does web-app for container support exposing multiple ports. Ex my docker image consume two port but in web-app for container, i can only use one port either port 80 or port specified by WEBSITES_PORT in app setting. Link to similar question but it been a long time since that so is there currently any way to expose multiple ports on Web-app for container.

Can't use azure container instance (it exposes multiple port) as it does not provide SSL.


Solution

  • Unfortunately, Azure Web App only can expose one port to the outside world and it must be one of port 80 and 443. Take a look at the limitation. And you can Enable a TLS endpoint in a sidecar container. I think it's more appropriate for you. And both Web App and ACI are not the options as you want. You can try the AKS or directly use the VM.