Hello Azure Support Team,
We are currently running two Azure Container Instances inside the same VNet and Subnet:
One container runs our backend service.
The other container runs Nginx.
These containers communicate with each other and with external systems. However, the issue is that every time the containers are restarted or redeployed, they receive new private IP addresses. This breaks our configuration and requires us to manually update the IP addresses each time. Like Nginx location configuration.
We need a solution that allows us to:
Assign static private IP addresses or private DNS to each container instance inside the VNet/Subnet so they remain the same even after restart.
Optionally assign a persistent public IP if needed for external access.
Our goal is to keep using Azure Container Instances (not switching to a VM) and maintain the existing VNet/Subnet setup without reconfiguring everything after a restart.
Could you please advise the recommended Azure-native approach for ensuring static IP addresses for Azure Container Instances in this scenario?
Thank you,Hello Azure Support Team,
We are currently running two Azure Container Instances inside the same VNet and Subnet:
One container runs our backend service.
The other container runs Nginx.
These containers communicate with each other and with external systems. However, the issue is that every time the containers are restarted or redeployed, they receive new private IP addresses. This breaks our configuration and requires us to manually update the IP addresses each time. Like Nginx location configuration.
We need a solution that allows us to:
Assign static private IP addresses or private DNS to each container instance inside the VNet/Subnet so they remain the same even after restart.
Optionally assign a persistent public IP if needed for external access.
Our goal is to keep using Azure Container Instances (not switching to a VM) and maintain the existing VNet/Subnet setup without reconfiguring everything after a restart.
Could you please advise the recommended Azure-native approach for ensuring static IP addresses for Azure Container Instances in this scenario?
Thank you,