An Azure service that provides customers with a serverless container experience.
Hello Pavan Adapala (SONATA SOFTWARE NORTH AMERICA),
Thank you for posting your query at Microsoft Q&A Platform.
In accordance with Alex's observations and continuing the discussion, I would like to provide the following clarification:
For Issue 1, the available information suggests that the deployment timeout was likely encountered during the ACI provisioning stage rather than during container execution. Since an identical deployment succeeded shortly afterward without any configuration changes, this may indicate a transient provisioning condition, such as temporary resource allocation delays or regional capacity constraints. While large Windows-based container images can contribute to longer provisioning times, the successful redeployment without modification suggests that image size alone may not fully explain the observed behavior. Microsoft recommends optimizing container images through techniques such as multi-stage builds and using runtime images instead of SDK images where applicable.
For Issue 2, current Microsoft guidance does not provide a documented guarantee that an Azure Container Instance will retain the same private IP address across lifecycle events. Microsoft explicitly advises against relying on hard-coded ACI IP addresses because a container group's IP may change following restart or recreation events. Therefore, customers should not architect solutions that depend on private IP persistence for ACI workloads.
Based on this guidance, while a private IP may appear unchanged in some scenarios, there is no documented assurance that it will remain stable across container group restarts, stop/start operations, redeployments, or platform-initiated maintenance activities. For workloads requiring a stable backend endpoint, it is recommended to use an abstraction layer such as DNS-based service discovery or consider container hosting platforms that provide more stable ingress patterns.
At this time, we have not identified any Microsoft documentation that guarantees private IP retention for ACI container groups deployed into a VNet subnet.
References:
- Best practices and considerations - Azure Container Instances | Microsoft Learn
- Troubleshoot common issues - Azure Container Instances | Microsoft Learn
- Reliability in Azure Container Instances | Microsoft Learn
If you have any further queries, please do let us know.
If the answer is helpful, please click "Accept Answer" and "Upvote it"