With Session Pools, can you specify a custom CIDR range for network egress?

Jonah 20 Reputation points
2025-01-16T15:16:15.73+00:00

In the UI, I see that Azure Container App Session Pools allow you to toggle network egress on and off. Is there any way to control this in a more granular way. I imagine a lot of developers need to allow some outbound network connections but want to limit what requests can be made. Modal offers something similar https://modal.com/docs/guide/sandbox-networking

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

1 answer

Sort by: Most helpful
  1. Sina Salam 16,446 Reputation points
    2025-01-17T12:37:31.0866667+00:00

    Hello Jonah,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that your concerns are about customization of network Egress in Azure Container App Session Pools.

    As a developer, this is insightful. Like you're looking for a way to allow some outbound connections while restricting others, similar to what Modal offers. Azure Container Apps provides robust options to achieve this, ensuring your applications can securely and efficiently manage network traffic.

    Firstly, Azure Container Apps Session Pools allow you to toggle network egress on and off. However, for more granular control, you can configure network access settings on the session pool. This includes specifying which outbound connections are allowed or blocked - https://learn.microsoft.com/en-us/azure/container-apps/sessions this level of control give help to manage and secure the network traffic more precisely.

    Secondly, it a capital YES, you can specify a custom CIDR range for network egress in Azure Container Apps. This is particularly useful for defining specific network boundaries and ensuring that outbound traffic adheres to your network policies - https://techcommunity.microsoft.com/blog/azurepaasblog/securing-network-egress-in-azure-container-apps/3915548

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.


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.