Azure Proactive Resiliency Library v2
Tools Glossary GitHub GitHub Issues Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

managedEnvironments

Summary

RecommendationImpactCategoryAutomation AvailableIn Azure Advisor
Deploy zone redundant Container app environmentsHighHigh AvailabilityYesNo

Details


Deploy zone redundant Container app environments

Impact:  High Category:  High Availability

APRL GUID:  f4201965-a88d-449d-b3b4-021394719eb2

Description:

To take advantage of availability zones, you must enable zone redundancy when you create a Container Apps environment. The environment must include a virtual network with an available subnet. To ensure proper distribution of replicas, set your app's minimum replica count to three.

Potential Benefits:

Enhances app resiliency and reliability
Learn More:
Reliability in Azure Container Apps

ARG Query:

Click the Azure Resource Graph tab to view the query

// Azure Resource Graph Query
// The query filters the qualified Container app environments that do not have Zone Redundancy enabled.
resources
| where type =~ "microsoft.app/managedenvironments"
| where location in~ ("australiaeast", "brazilsouth", "canadacentral", "centralindia", "centralus", "eastasia", "eastus", "eastus2", "francecentral", "germanywestcentral", "israelcentral", "italynorth", "japaneast", "japanwest", "koreacentral", "mexicocentral", "newzealandnorth", "northeurope", "norwayeast", "polandcentral", "qatarcentral", "southafricanorth", "southcentralus", "southeastasia", "spaincentral", "swedencentral", "switzerlandnorth", "uaenorth", "uksouth", "westeurope", "westus2", "westus3", "usgovvirginia", "chinanorth3")
| where tobool(properties.zoneRedundant) == false
| project recommendationId = "f4201965-a88d-449d-b3b4-021394719eb2", name, id, tags, param1 = "AvailabilityZones: Single Zone"
| order by id asc