1
1
---
2
- reviewed : 2024-04-07
2
+ reviewed : 2024-10-01
3
3
severity : Important
4
4
pillar : Reliability
5
5
category : RE:05 Regions and availability zones
@@ -16,14 +16,21 @@ Use Container Apps environments that are zone redundant to improve reliability.
16
16
## DESCRIPTION
17
17
18
18
Container App environments can be configured to be zone redundant in regions that support availability zones.
19
+ Zone redundancy is supported in both the workload profiles and consumption only environments.
19
20
When configured, replicas of each Container App are spread across availability zones automatically.
20
21
A Container App must have multiple replicas to be zone redundant.
21
22
22
- For example, if a Container App has three replicas, each replica is placed in a different availability zone.
23
+ For example:
24
+
25
+ - If a Container App has three replicas, each replica is placed in a different availability zone.
26
+ - If a Container App has one replica, it is only available in a single zone.
27
+
28
+ Zone redundancy can only be enabled at initial environment creation.
29
+ Additionally, the Container App environment must be deployed with an infrastructure subnet configured.
23
30
24
31
## RECOMMENDATION
25
32
26
- Consider configuring Container App environments to be zone redundant to improve reliability .
33
+ Consider configuring Container App environments to be zone redundant to improve workload resiliency .
27
34
28
35
## EXAMPLES
29
36
@@ -32,6 +39,7 @@ Consider configuring Container App environments to be zone redundant to improve
32
39
To deploy Container App environments that pass this rule:
33
40
34
41
- Set the ` properties.zoneRedundant ` property to ` true ` .
42
+ - Set the ` properties.vnetConfiguration.infrastructureSubnetId ` property to reference a valid subnet.
35
43
36
44
For example:
37
45
@@ -69,6 +77,7 @@ For example:
69
77
To deploy Container App environments that pass this rule:
70
78
71
79
- Set the ` properties.zoneRedundant ` property to ` true ` .
80
+ - Set the ` properties.vnetConfiguration.infrastructureSubnetId ` property to reference a valid subnet.
72
81
73
82
For example:
74
83
@@ -99,7 +108,7 @@ resource containerEnv 'Microsoft.App/managedEnvironments@2023-05-01' = {
99
108
}
100
109
```
101
110
102
- <!-- external:avm avm/res/app/managed-environment:0.8.0 zoneRedundant -->
111
+ <!-- external:avm avm/res/app/managed-environment:0.8.0 zoneRedundant,vnetConfiguration.infrastructureSubnetId -->
103
112
104
113
## LINKS
105
114
0 commit comments