Issue with API Management Unable to Connect to Backend API When Using Private Endpoint Configuration

Tomohiro Kajita 20 Reputation points
2025-06-27T12:33:13.2333333+00:00

Issue with API Management Unable to Connect to Backend API When Using Private Endpoint Configuration

We have configured our API Management instance to receive traffic exclusively through a private endpoint, following the guidance provided in the following Microsoft documentation:

Enable private link for Azure API Management

Our API Management SKU is Standard.

When attempting to access the backend API (hosted on a VM server) via API Management, which itself is accessed through an Application Gateway, we encountered the following error messages:

  • "Unable to connect to the remote server"
  • "Error occurred while calling backend service."
  • "An attempt was made to access a socket in a way forbidden by its access permissions 10.0.1.4:7443"

Note: 10.0.1.4:7443 is the destination configured for the backend API.

We would like to understand what configuration might be missing or misconfigured in order to resolve this issue, while keeping the private endpoint setup for API Management enabled.

Any guidance or recommendations would be greatly appreciated.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,452 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Aki Nishikawa 2,455 Reputation points Microsoft Employee
    2025-07-03T10:05:07.1133333+00:00

    @Tomohiro Kajita san,

    (The same comment in Japanese is shared here.)

    Which version of APIM are you using, Classic (STv2) or V2?

    In the case of Classic, APIM Standard SKU doesn't support private endpoints for connections to the backend (please check the document below). If the VM allows access via a Public IP, it should be possible to connect to the API from APIM. However, at this time, it is likely that access via a Public IP is not permitted.

    https://learn.microsoft.com/azure/api-management/api-management-features

    In the case of V2, you can access resources within the VNET by configuring VNET integration. To access the API hosted by the VM, you can configure VNET integration for the VNET that the VM is connected to.

    https://learn.microsoft.com/azure/api-management/v2-service-tiers-overview#networking-options

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.