Interview Prep/Azure/Networking Design

A team needs Container Apps with private access to a database. How do you set up networking?

IntermediateScenarioNetworking Design
Answer

Situation read → Container Apps environment injected into a VNet subnet, internal or external ingress, DB via Private Endpoint.

What I'd do →

  1. Create a dedicated subnet (/27 minimum for workload profiles environments) delegated to Microsoft.App/environments
  2. Create the environment with --infrastructure-subnet-resource-id and --internal-only if no public ingress is needed
  3. Database Private Endpoint in the same VNet, Private DNS zone linked
  4. Connect the app with managed identity where the DB supports Entra auth
  5. If internal-only, create a Private DNS zone for the environment's default domain pointing to its static IP

Why → Workload profiles environments support UDRs and NAT Gateway, so egress control works like the rest of the spoke.

Interview tip → Mention the environment's own DNS zone for internal-only setups; it's often forgotten.

Azure All Azure questions Roadmap: Azure core services

More on Networking Design