Hello Alexander Lapin, Thankyou for reverting back here. To allow inbound traffic to a specific port on a container instance, you can use an Azure Load Balancer with an inbound NAT rule. Create an inbound NAT rule maps the public IP address and port to the private IP address and port of the container instance.
az network lb inbound-nat-rule create --resource-group myResourceGroup \
--lb-name myLoadBalancer \
--name myInboundNATRule \
--protocol udp \
--frontend-port 1700 \
--backend-port 1700 \
--frontend-ip-name myFrontendIP \
--backend-nic-name myNIC \
--backend-address-pool myBackendPool
This command creates an inbound NAT rule that maps the public IP address and port 1700 to the private IP address and port 1700 of the container instance. please refer below link to create inbound NAT rule. https://learn.microsoft.com/en-us/azure/load-balancer/inbound-nat-rules Hope this answer helps you,please consider accepting the answer to help increase visibility of this question for other members of the Microsoft Q&A community. If not, please let us know what is still needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!.