Skip to content

Commit f29c21b

Browse files
Set App Gateway instance count to 1 to save cost
1 parent d4195de commit f29c21b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

infrastructure/appgw-apim-pe/main.bicep

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,11 @@ module appgwModule 'br/public:avm/res/network/application-gateway:0.7.2' = {
505505
sku: 'WAF_v2'
506506
firewallPolicyResourceId: wafPolicy.id
507507
enableHttp2: true
508-
// Use minimal AZs for cost savings. Adjust accordingly for production workloads.
508+
// Create only one instance (default is 2) for cost savings. Adjust accordingly for production workloads (use scaling, minimum instances, no maximum instances, etc.).
509+
capacity: 1
510+
// Use minimal AZs (1) for cost savings. Adjust accordingly for production workloads.
511+
// Setting to 1 availability zone yields the following Azure Advisor message:
512+
// High Impact - Deploy your Application Gateway across Availability Zones
509513
availabilityZones: [
510514
1
511515
]

0 commit comments

Comments
 (0)