Skip to content

Commit f09167f

Browse files
fix: update skuCapacity configuration for WAF deployment to ensure correct agent handling
1 parent e38bdff commit f09167f

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
@@ -1066,7 +1066,8 @@ module webServerFarm 'br/public:avm/res/web/serverfarm:0.5.0' = {
10661066
diagnosticSettings: enableMonitoring ? [{ workspaceResourceId: logAnalyticsWorkspaceResourceId }] : null
10671067
// WAF aligned configuration for Scalability
10681068
skuName: enableScalability || enableRedundancy ? 'P1v3' : 'B3'
1069-
skuCapacity: enableScalability ? 1 : 1 // skuCapacity set to 1 (not 3) due to multiple agents created per type during WAF deployment
1069+
// skuCapacity: enableScalability ? 3 : 1
1070+
skuCapacity: 1 // skuCapacity set to 1 (not 3) due to multiple agents created per type during WAF deployment
10701071
// WAF aligned configuration for Redundancy
10711072
zoneRedundant: enableRedundancy ? true : false
10721073
}

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": "13493219753752927332"
9+
"templateHash": "2150473040924531792"
1010
}
1111
},
1212
"parameters": {
@@ -29915,9 +29915,9 @@
2991529915
}
2991629916
},
2991729917
"dependsOn": [
29918-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
2991929918
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
2992029919
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
29920+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
2992129921
"logAnalyticsWorkspace",
2992229922
"userAssignedIdentity",
2992329923
"virtualNetwork"
@@ -39524,8 +39524,8 @@
3952439524
}
3952539525
},
3952639526
"dependsOn": [
39527-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
3952839527
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
39528+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
3952939529
"keyvault",
3953039530
"userAssignedIdentity",
3953139531
"virtualNetwork"
@@ -49375,7 +49375,9 @@
4937549375
},
4937649376
"diagnosticSettings": "[if(parameters('enableMonitoring'), createObject('value', createArray(createObject('workspaceResourceId', if(variables('useExistingLogAnalytics'), parameters('existingLogAnalyticsWorkspaceId'), reference('logAnalyticsWorkspace').outputs.resourceId.value)))), createObject('value', null()))]",
4937749377
"skuName": "[if(or(parameters('enableScalability'), parameters('enableRedundancy')), createObject('value', 'P1v3'), createObject('value', 'B3'))]",
49378-
"skuCapacity": "[if(parameters('enableScalability'), createObject('value', 1), createObject('value', 1))]",
49378+
"skuCapacity": {
49379+
"value": 1
49380+
},
4937949381
"zoneRedundant": "[if(parameters('enableRedundancy'), createObject('value', true()), createObject('value', false()))]"
4938049382
},
4938149383
"template": {

0 commit comments

Comments
 (0)