An Azure service that provides a general-purpose, serverless container platform.
Hello @Mishra, Yogesh ,
Thank you for reaching out to Microsoft Q&A!
Disabling ingress is the documented approach for container apps that do not receive inbound traffic. The troubleshooting guidance states that if the app does not serve HTTP, such as a background worker, you should consider disabling ingress or using internal ingress so that no HTTP probe is enforced.
Your analysis of the cause also matches the documented default probe behaviour. When ingress is enabled and no probes are defined, Container Apps adds a default TCP startup probe against the ingress target port with a period of 1 second and a failure threshold of 240, which works out to approximately four minutes — consistent with the timing you observed.
Reference: Health probes in Azure Container Apps — Default configuration
Two points are worth confirming when ingress is disabled, as these are easy to miss:
- Replica configuration
Ensure each worker app has either a custom scale rule or minReplicas set to 1 or higher. The documentation notes that if ingress is disabled and neither minReplicas nor a custom scale rule is defined, the container app scales to zero and has no way of starting back up. This is worth confirming on each worker app.
- Revision mode
For non-HTTP event scale rules, set properties.configuration.activeRevisionsMode to single.
Reference: Set scaling rules in Azure Container Apps
Regarding your specific questions:
- Queue and event-driven scale rules are evaluated against the configured event source and are not dependent on ingress being enabled. Only HTTP and TCP scale rules require ingress.
- Metrics and log collection are not tied to ingress and continue to work normally.
- Adding a placeholder web server purely to satisfy probes is not documented as a recommended pattern. If ingress must remain enabled for a specific app, define explicit probes that match the port the application actually listens on rather than relying on the default probe configuration.
Please "Upvote the Answer" if this information helped you. This will help us and others in the community as well.