Container App set up IP restriction does not work if ingress traffic is limited to app environment

Luigi Navarra 30 Reputation points
2024-09-16T15:51:39.87+00:00

I set the ingress traffic of my ACA to limited to app environement to deny access from undesired external addresses.

User's image

but i still need to reach out to my api app from allowed external IP addresses so i configured the section Ip Restriction in order to set up my whitelist of trusted IP address as shown below.

If i try to reach out to my api app i get a 404 error.

Is it possible to get this using the built-in ACA ingress configuration or i need to configure a custom VNET?

User's image

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
691 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Luis Arias 8,621 Reputation points Volunteer Moderator
    2024-09-16T20:16:07.9766667+00:00

    Hi Luigi,

    Yes, that’s correct. When you set the ingress traffic to “Limited to Container Apps Environment,” it restricts traffic to within the environment, effectively ignoring any external IP restrictions you set up. This is expected behavior because the setting is designed to limit access strictly to the container app environment.

    If you need to allow specific external IP addresses while still restricting others, you would need to configure a custom Virtual Network (VNET). This setup provides more granular control over network traffic and allows you to specify which external IP addresses can access your container app.

    References:

    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    Regards,

    Luis

    1 person found this answer helpful.
    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.