Container app shutting down almost immediately

Jesse Kela 5 Reputation points
2025-04-23T11:07:19.76+00:00

.NET application running on container app shuts down almost immediately.

[10:59:29 INF] Starting....
[10:59:38 INF] Application is shutting down...

System log has the following

{"TimeStamp":"2025-04-23 10:45:48 \u002B0000 UTC","Type":"Warning","ContainerAppName":"backend","RevisionName":"backend--0000182","ReplicaName":"","Msg":"unable to get external metric http-scaler for backend: unable to fetch metrics from external metrics api: rpc error: code = unknown desc = error when getting metric values no matching metrics found for s1-upstream_rq_total","Reason":"FailedGetExternalMetric","EventSource":"Scaling","Count":1135}

I fail to understand what exactly is the issue here. Seemingly same stuff seems to work on other environment.

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
630 questions
{count} votes

Your answer

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