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.
- 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.
- Select "APIs" from the menu and then choose "Container App."
By following these steps, you can effectively expose your private Container App through Azure API Management.
References:
- Import an Azure Container App as an API
- Deploy an Azure API Management self-hosted gateway to Azure Container Apps
Kindly accept answer if it helps
Please let us know if any questions or queries
Thanks
Deepanshu