APIM Standard v2 – Intermittent "BackendConnectionFailure" to Container Apps backends: what are the most common causes?

Felipe Figueiredo 0 Reputation points
2026-11-23T19:59:51.75+00:00

Hi everyone,

I'm seeing intermittent "BackendConnectionFailure" errors in Azure API Management (Standard v2 tier) when calling backends hosted on Azure Container Apps, and I'd like to know if anyone has run into the same issue.

Symptoms

  • Intermittent failures, in spikes, during business hours, hitting several different backends at the same time.
  • In the gateway logs (ApiManagementGatewayLogs), the failure reason is "BackendConnectionFailure". The most frequent message is "Channel is closed" (source: request-forwarder), and the failure happens very quickly, within a few hundred milliseconds.
  • The frequency has increased significantly in recent weeks, with no corresponding increase in request volume.

What I've already checked

  • Gateway CPU and memory are not saturated.
  • The Container Apps show no failures or unavailability at the same times.

Questions

  1. Has anyone seen this error and identified the cause?
  2. What are the most common causes of "BackendConnectionFailure" / "Channel is closed" in APIM? For example: reuse of idle connections, connection or outbound port limits, ingress timeouts, DNS, network rules.
  3. What did you check to find the root cause, and which metrics or logs helped?
  4. What worked as a fix or mitigation (retry policy, timeout tuning, scaling, changing tier)?

Thanks in advance!

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Silvio Lorenzo Torre 165 Reputation points
    2026-11-28T11:11:16.4666667+00:00

    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.

    1. In ApiManagementGatewayLogs, group failures in a strict UTC interval, Region and BackendUrl. Inspect LastErrorReason, LastErrorMessage, LastErrorSource, BackendResponseCode, BackendTime and CorrelationId. Compare them with successful calls to the same backends immediately before and after each spike. Gateway log schema.
    2. 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.
    3. 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.
    4. 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 BackendConnectionFailure among 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

    Was this answer helpful?

    0 comments No comments

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.