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
- Has anyone seen this error and identified the cause?
- 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.
- What did you check to find the root cause, and which metrics or logs helped?
- What worked as a fix or mitigation (retry policy, timeout tuning, scaling, changing tier)?
Thanks in advance!