How to expose private Container App using API Management Service?

Trey Hannam 0 Reputation points
2024-10-07T20:38:31.68+00:00

I am trying to use API management service to publicly expose an API deployed the Container Apps service. I am new to using Azure and am not sure how to setup the private connect. I have tried a private DNS zone and that didn't help. I am looking for guidance how to do accomplish this!

  • They are in the same Vnet but different Subnets
  • The container service is set to "Limited to Vnet"
  • API management service is on an external deployment so it still has public access
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
444 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshukatara-6769 10,455 Reputation points
    2024-10-08T07:07:38.6533333+00:00

    Hello , Welcome to MS Q&A

    To expose a private Container App using Azure API Management, follow these steps:

    Deploy the Container App: Ensure that your Container App is deployed in an environment that is accessible to the API Management service.

    Add the API to API Management:

    • Navigate to your API Management instance in the Azure portal.
      • Select "APIs" from the menu and then choose "Container App."
        • Browse and select your Container App. If it has an associated OpenAPI definition, API Management will fetch and import it. If not, it will generate wildcard operations for common HTTP verbs.
        Configure the API Settings:
        - Add a unique API URL suffix to identify this API.
        
           - Publish the API by associating it with a product (e.g., "Unlimited"). Developers will need to subscribe to this product to access the API.
        
           **Use a Self-Hosted Gateway**: If your Container App is private, consider deploying a self-hosted gateway. This allows the API Management service to access the Container App while keeping it private from the public internet.
        
           **Testing the API**: After setting up, you can test the API directly in the Azure portal.
        

    By following these steps, you can effectively expose your private Container App through Azure API Management.

    References:

    Kindly accept answer if it helps

    Please let us know if any questions or queries

    Thanks

    Deepanshu

    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.