Unable to call API endpoint hosted internally in Container Apps API

Sonia 1 Reputation point
2022-07-01T19:43:17.283+00:00

I have a simple springboot application deployed on Container Apps with ingress enabled only for the vNet. I followed the steps in this doc to import the api in API management (https://learn.microsoft.com/en-us/azure/api-management/import-container-app-with-oas). On testing I keep getting a 500 Internal server error. Diagnostic log shows the following reason in the table

500 0 forward-request\forward-request\forward-request BackendConnectionFailure The remote name could not be resolved: 'mycontainerappsurl.azurecontainerapps.io' 19 https://mycontainerappsurl.azurecontainerapps.io/cntxt?param=_

How to make this work.

Note: API management is also internal and the api is exposed to internet using application gateway

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

1 answer

Sort by: Most helpful
  1. Sonia 1 Reputation point
    2022-07-02T00:30:43.003+00:00

    It got resolved by following the steps in section "DNS Resolution for Internal Container Apps Environments" of the below blog

    https://techcommunity.microsoft.com/t5/apps-on-azure-blog/azure-container-apps-virtual-network-integration/ba-p/3096932


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.