How to expose multiple ports on Azure Container Instance?

前端 未结 4 2141
故里飘歌
故里飘歌 2021-02-08 01:04

Is it possible to expose/open more than one port on an Azure Container Instance? I\'ve only been able to open one port per container.

I\'d like to run the equivalent of:

4条回答
  •  长发绾君心
    2021-02-08 01:30

    This can now be done via Azure CLI. Example is below:

    az container create -g MyResourceGroup --name myalpine --image alpine:latest --ip-address public --ports 80 443

    https://docs.microsoft.com/en-us/cli/azure/container?view=azure-cli-latest#az_container_create

提交回复
热议问题