Skip to content

Commit 65af4b5

Browse files
Fix skuCapacity logic for web server farm to ensure consistent scaling behavior
1 parent cccd901 commit 65af4b5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

infra/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ 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 ? 3 : 1
1130+
skuCapacity: enableScalability ? 1 : 1
11311131
// WAF aligned configuration for Redundancy
11321132
zoneRedundant: enableRedundancy ? true : false
11331133
}

infra/main.json

Lines changed: 2 additions & 2 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": "17267100473060819897"
9+
"templateHash": "1737678330083124772"
1010
},
1111
"name": "Document Generation Solution Accelerator",
1212
"description": "CSA CTO Gold Standard Solution Accelerator for Document Generation.\n"
@@ -39047,7 +39047,7 @@
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', 3), createObject('value', 1))]",
39050+
"skuCapacity": "[if(parameters('enableScalability'), createObject('value', 1), createObject('value', 1))]",
3905139051
"zoneRedundant": "[if(parameters('enableRedundancy'), createObject('value', true()), createObject('value', false()))]"
3905239052
},
3905339053
"template": {

0 commit comments

Comments
 (0)