MCP Server API Fails on Higher Tiers in Azure APIM: "Client connection was unexpectedly closed"
I'm exposing a REST API as an MCP server using Azure API Management. It works fine on the Basic tier — the tools are fetched correctly, and both GET and POST MCP calls succeed. However, when I use the same setup on Standard or Premium tiers, it fails. The client can't fetch the tools, and APIM logs show the below error:
"reason":"ClientConnectionFailure","message":"Client connection was unexpectedly closed.","section":"outbound"
.
The backend API is accessible directly and has no firewall or certificate issues. Why does this happen only on higher tiers, and how can I fix or debug this behavior?