HI Mahdi,
Azure Container Instances don’t currently support static private IP addresses that persist through restarts or redeployments. Each time you restart, the container gets a new IP, which breaks configurations relying on fixed IPs (like Nginx location settings).
The recommended Azure-native approach is to use Azure Private DNS for service discovery. You assign DNS names to your containers inside the VNet and automate updating these DNS records whenever the containers restart. This way, your services can refer to stable DNS names instead of changing IPs, avoiding manual reconfiguration while keeping your existing VNet and subnet setup intact.
For public access, use an Azure Application Gateway or Load Balancer with a static public IP in front of your containers.
If you still think this is not complete answer then please let us know, we will happy to help you.