Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 5.78 KB

File metadata and controls

50 lines (34 loc) · 5.78 KB

Scenario 1: Azure Container Apps - Internal environment secure baseline

This reference implementation demonstrates a secure baseline infrastructure architecture for a microservices workload deployed into Azure Container Apps. Specifically this scenario addresses deploying Azure Container Apps into a virtual network, and has no public endpoint.

ℹ️ You can quickly deploy the current LZA directly in your Azure subscription by hitting the button below.

Deploy to Azure

Azure Container Apps-hosted workloads typically experiences a separation of duties and lifecycle management in the area of prerequisites, the host network, the cluster infrastructure, and finally the workload itself. This reference implementation steps are created by keeping that in mind. Also, be aware our primary purpose is to illustrate the topology and decisions of a baseline cluster. We feel a "step-by-step" flow will help you learn the pieces of the solution and give you insight into the relationship between them Ultimately, lifecycle/SDLC management of your cluster and its dependencies will depend on your situation (team roles, organizational standards, tooling, etc), and must be implemented as appropriate for your needs.

By the end of this deployment guide, you would have deployed an "internal environment" Azure Container Apps cluster. You will also be deploying a sample web app. This implementation is not expected to be your first exposure to Azure Container Apps, if you're looking for introductory material, please complete the Implement Azure Container Apps training module on Microsoft Learn.

Architectural diagram showing an Azure Container Apps deployment in a spoke virtual network.

Core architecture components

  • Azure Container Apps
  • Azure Virtual Networks (hub-spoke)
  • Azure Container Registry
  • Azure Bastion
  • Azure Firewall
  • Route Table (User defined routing)
  • Azure Application Gateway (with Web Application Firewall)
  • Azure Standard Public IP (with DDoS protection)
  • Azure Key Vault
  • Azure Private Endpoint
  • Azure Private DNS Zones
  • Log Analytics Workspace
  • Azure Cache for Redis (optional deployment, see Deployment parameters, default is false)
  • Azure Policy (both built-in and custom)

All resources have enabled their Diagnostics Settings (by default sending the logs to a Log Analytics Workspace).

All the resources that support Zone Redundancy (i.e. Container Apps Environment, Application Gateway, Standard IP) are set by default to be deployed in all Availability Zones. If you are planning to deploy to a region that is not supporting Availability Zones you need to set the parameter deployZoneRedundantResources to false.

Azure policies related to Azure Container Apps (both built-in but some custom as well) are applied to the spoke Resource Group by default. If you wish to skip Azure Policy Assignment, set the parameter deployAzurePolicies to false.

Deploy the reference implementation

This reference implementation is provided with the following infrastructure as code options. Select the deployment guide you are interested in. They both deploy the same implementation.

▶️ Bicep-based deployment guide

▶️ Terraform-based deployment guide

ℹ️ NOTE: The official Terraform AzureRM provider does not currently support the new Azure Container Apps workload profiles, more networking features, and jobs. The Terraform implementation in the main branch is referring to the older V1.1.0 implementation, which is not using workload profiles therefore the egress network traffic is not secured through an Azure Firewall. For a Terraform implementation using the AzAPI provider of the Secure Baseline Scenario, please check out the udr-implementation-azapi branch. Once the AzureRM provider provides support for workload profiles in Azure Container Apps, a full Terraform implementation using the AzureRM provider will be become available in the main branch.

Alternatively, you can quickly deploy the current LZA directly in your Azure subscription by hitting the button below

Deploy to Azure