Skip to content

Commit aa1abf6

Browse files
Refactor skuCapacity settings for web server farm to ensure correct scaling during WAF deployment
1 parent adcc4a1 commit aa1abf6

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

infra/main.bicep

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,8 @@ module webServerFarm 'br/public:avm/res/web/serverfarm:0.5.0' = {
11271127
diagnosticSettings: enableMonitoring ? [{ workspaceResourceId: logAnalyticsWorkspaceResourceId }] : null
11281128
// WAF aligned configuration for Scalability
11291129
skuName: enableScalability || enableRedundancy ? 'P1v3' : 'B3'
1130-
skuCapacity: enableScalability ? 1 : 1 // skuCapacity set to 1 (not 3) due to multiple agents created per type during WAF deployment
1130+
// skuCapacity: enableScalability ? 1 : 1
1131+
skuCapacity: 1 // skuCapacity set to 1 (not 3) due to multiple agents created per type during WAF deployment
11311132
// WAF aligned configuration for Redundancy
11321133
zoneRedundant: enableRedundancy ? true : false
11331134
}

infra/main.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.38.33.27573",
9-
"templateHash": "1737678330083124772"
9+
"templateHash": "12469434193126673699"
1010
},
1111
"name": "Document Generation Solution Accelerator",
1212
"description": "CSA CTO Gold Standard Solution Accelerator for Document Generation.\n"
@@ -23418,9 +23418,9 @@
2341823418
}
2341923419
},
2342023420
"dependsOn": [
23421+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
2342123422
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
2342223423
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
23423-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
2342423424
"logAnalyticsWorkspace",
2342523425
"userAssignedIdentity",
2342623426
"virtualNetwork"
@@ -31893,8 +31893,8 @@
3189331893
}
3189431894
},
3189531895
"dependsOn": [
31896-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
3189731896
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
31897+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
3189831898
"userAssignedIdentity",
3189931899
"virtualNetwork"
3190031900
]
@@ -39047,7 +39047,9 @@
3904739047
},
3904839048
"diagnosticSettings": "[if(parameters('enableMonitoring'), createObject('value', createArray(createObject('workspaceResourceId', if(variables('useExistingLogAnalytics'), parameters('existingLogAnalyticsWorkspaceId'), reference('logAnalyticsWorkspace').outputs.resourceId.value)))), createObject('value', null()))]",
3904939049
"skuName": "[if(or(parameters('enableScalability'), parameters('enableRedundancy')), createObject('value', 'P1v3'), createObject('value', 'B3'))]",
39050-
"skuCapacity": "[if(parameters('enableScalability'), createObject('value', 1), createObject('value', 1))]",
39050+
"skuCapacity": {
39051+
"value": 1
39052+
},
3905139053
"zoneRedundant": "[if(parameters('enableRedundancy'), createObject('value', true()), createObject('value', false()))]"
3905239054
},
3905339055
"template": {

0 commit comments

Comments
 (0)