APIM - consumption sku cannot connect to external (to Azure) service

Robert Angers 1 Reputation point
2021-02-19T23:05:33.547+00:00

How are we supposed to know that this error in the response is due to the choice of the SKU....

  {
    "source": "forward-request",
    "timestamp": "2021-02-19T22:37:45.7298380Z",
    "elapsed": "00:00:00.4052759",
    "data": {
      "messages": [
        "Error occured while calling backend service.",
        "The request was aborted: The connection was closed unexpectedly."
      ]
    }
  }

In this case, Consumption SKU does not support calls to services outside of Azure. When I used the Developer SKU, then all worked fine....

It would have been nice to have a message like, SKU does not support to services outside of Azure.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,936 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 69,981 Reputation points
    2021-02-22T04:39:06.047+00:00

    Hi @Robert Angers

    Welcome to Microsoft Q&A! Thanks for posting the question.
    Consumption SKU does support connecting to services outside azure. I have tested the calculator service at my end confirms and I don't see any issue.
    You can refer to Feature based comparison of APIM tiers to know more details on what feature is supported/not supported in that tier.

    As per the error message I will suggest you to troubleshoot this issue from your backend service to know why your backend service has closed the connection to APIM request.
    "Error occurred while calling backend service. The request was aborted: The connection was closed unexpectedly."

    0 comments No comments