Skip to content

Error in Having Connection Issues while Making MCP in APIM #30

@AIS-Naman-Jain

Description

@AIS-Naman-Jain

Issue Summary
Requests are reaching APIM, but fail with the error:

"reason": "ClientConnectionFailure", "message": "Client connection was unexpectedly closed.", "section": "outbound"
APIM Setup
SKU: v2 Premium

Network: VNet integrated with own subnet & NSG

Policies:

Inbound: Deny All (with allowed entries for devices and VNet)

Outbound: Deny All (with allowed entries for MCP backend APIs & devices)

APIM-to-APIM outbound: Explicitly Denied

Context
Using Expose REST API in API Management to act as MCP server. All relevant backend endpoints are allowed in outbound.

Suspected Cause
The MCP server process may perform internal APIM calls, which are currently blocked due to APIM-to-APIM outbound denial—this is the only restriction left.

Request
Please confirm if internal APIM calls are required by the MCP server process, and if so, advise on best practice to allow these secure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions