Container Apps Environment should enable zone redundancy
Medium
Azure
General
managedenvironments-container-apps-environment-ena
Applies to
Microsoft.App/managedEnvironments
What CGPulse checks
A resource passes this rule when zoneRedundant must equal true. Anything else is reported as a finding with the evaluated property value attached as evidence.
How to fix it
Configure zone-redundant high availability to protect against zone failures. In Azure Portal: Container Apps Environment > configure zone redundancy (set at creation). See: https://learn.microsoft.com/en-us/azure/container-apps/disaster-recovery
CLI
az containerapp env show --ids "{id}" --query "properties.zoneRedundant"Bicep
resource env 'Microsoft.App/managedEnvironments@2024-03-01' = {{
name: '{name}'
location: location
properties: {{
zoneRedundant: true
appLogsConfiguration: {{
destination: 'log-analytics'
logAnalyticsConfiguration: {{
customerId: '<workspace-customer-id>'
sharedKey: '<workspace-shared-key>'
}}
}}
}}
}}Terraform
resource "azurerm_container_app_environment" "{name}" {
name = "{name}"
resource_group_name = "{rg}"
location = var.location
log_analytics_workspace_id = var.workspace_id
zone_redundancy_enabled = true
}
Compliance frameworks
Is your environment compliant with this rule?
CGPulse checks it — and 621 others — against your Azure and AWS accounts with read-only access.
Related Azure rules
- Action Group should be enabled
- Activity Log Alert should be enabled
- AKS cluster logs should be sent to Log Analytics
- AKS cluster must enable RBAC
- AKS cluster must enable RBAC
- AKS cluster should be a private cluster
- AKS cluster should disable local accounts
- AKS cluster should enable Azure RBAC for Kubernetes