An Azure service that provides a hybrid, multi-cloud management platform for APIs.
So you are seeing short, intermittent BackendConnectionFailure / “Channel is closed” errors across several Container Apps backends, while APIM CPU and memory look normal and the apps report no corresponding failures.
We need to be clear about where failed requests end before we adjust timeouts or scale the level.
- In
ApiManagementGatewayLogs, group failures in a strict UTC interval,RegionandBackendUrl. InspectLastErrorReason,LastErrorMessage,LastErrorSource,BackendResponseCode,BackendTimeandCorrelationId. Compare them with successful calls to the same backends immediately before and after each spike. Gateway log schema. - It is useful, for a reproducible call, to capture an APIM request trace. Check the Backend and On error stages to determine whether APIM received an HTTP response or failed while are using the connection.
- Compare the same timestamps with Container Apps ingress HTTP logs, as well as system and application logs. An app with no application error may still have an ingress-level event; conversely, no matching ingress record would focus the investigation on the path before the container. Ensure HTTP logging is enabled before treating its absence as evidence. Container Apps logging.
- Confirm whether APIM reaches the Container Apps backends through public endpoints or through outbound VNet integration. For public backends, investigate outbound connection and SNAT pressure: Microsoft lists intermittent
BackendConnectionFailureamong its symptoms. For a private path, check the effective DNS resolution, routes and network rules instead. APIM connection troubleshooting · Standard v2 outbound VNet integration.
The failures occurring across multiple backends make a shared connection path worth checking first, but do not establish its root cause. I would apply a mitigation only after the trace and ingress logs identify that path. Retry logic can mask a transient fault so use it cautiously for operations that may already have reached the backend, especially non-idempotent requests. If the evidence points to the managed gateway but does not expose the cause, include sanitized correlation IDs, UTC timestamps and traces in an Azure support case.
Here we go, I hope this is helpful.
Please upvote the answer if the information helped you.
This answer was partially prepared and fully translated into English with assistance from AI (Google Translate/ChatGPT). I check and reviewed the above technical claims against the Microsoft documentation linked above.
Ciao