Startup probe failing even not configured

Mansi Gusain 615 Reputation points
2025-08-20T11:44:47.26+00:00

Hi , I do not have startup probes deployed for container apps still the probes are failing and causing issue-

User's image

User's image

Image is failing and persistently the startup probe is failing when not set , please help

Azure Container Apps
Azure Container Apps

An Azure service that provides a general-purpose, serverless container platform.

0 comments No comments

Answer accepted by question author
Michele Ariis 7,315 Reputation points MVP Volunteer Moderator
2025-08-20T11:52:14.46+00:00

Hi, azure container Apps will create a default startup probe when ingress is enabled, even if you didn’t configure one (the blade even says “a default probe may be created”). That probe tries to connect to your targetPort (TCP or HTTP on “/”); connection refused means your container isn’t accepting connections on that port yet/at all, so the platform restarts it. Fix it by matching one of these cases: if the app is a worker with no listener, set Ingress = Disabled (no probe, no restarts); if it does expose HTTP/gRPC, make sure it listens on 0.0.0.0:<targetPort> (not 127.0.0.1), the port matches the Ingress targetPort, and protocol matches (set transport=http2 for gRPC/h2c). Then add an explicit Startup probe tuned for your boot time (e.g., HTTP path /healthz that returns 200–399, or a TCP probe; give it a generous initialDelaySeconds and failureThreshold), and set proper Readiness/Liveness too—if / returns 401/redirect, the default HTTP probe will fail, so use an unauthenticated health endpoint. Quick checks: verify the container logs to see the app binding (az containerapp logs show -g <rg> -n <app> --type app --follow), inspect the effective probes (az containerapp show -g <rg> -n <app> --query "properties.template.containers[0].probes"), and, while debugging cold starts, consider minReplicas=1 or lengthen the probe thresholds.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.