Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions infra/avm/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,7 @@ module containerApp './modules/compute/container-app.bicep' = {
module containerAppMcp './modules/compute/container-app.bicep' = {
name: take('module.container-app-mcp.${solutionName}', 64)
params: {
stickySessionsAffinity : enableScalability? 'sticky': 'none'
name: 'ca-mcp-${solutionSuffix}'
location: location
tags: tags
Expand Down
35 changes: 32 additions & 3 deletions infra/avm/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.44.1.10279",
"templateHash": "8714866940320286579"
"templateHash": "2099326972124864634"
},
"name": "Multi-Agent Custom Automation Engine - AVM",
"description": "AVM orchestrator for the Multi-Agent Custom Automation Engine accelerator. Deploys the same logical resources and preserves the same outputs as infra\\main.bicep using local AVM wrapper modules."
Expand Down Expand Up @@ -51004,7 +51004,7 @@
"_generator": {
"name": "bicep",
"version": "0.44.1.10279",
"templateHash": "9906697545075116207"
"templateHash": "10535819316717631477"
}
},
"parameters": {
Expand Down Expand Up @@ -51142,6 +51142,17 @@
"metadata": {
"description": "Enable Azure telemetry collection."
}
},
"stickySessionsAffinity": {
"type": "string",
"defaultValue": "none",
"allowedValues": [
"none",
"sticky"
],
"metadata": {
"description": "Optional. Bool indicating if the Container App should enable session affinity."
}
}
},
"resources": {
Expand Down Expand Up @@ -51202,6 +51213,9 @@
},
"workloadProfileName": {
"value": "[parameters('workloadProfileName')]"
},
"stickySessionsAffinity": {
"value": "[parameters('stickySessionsAffinity')]"
}
},
"template": {
Expand Down Expand Up @@ -52788,6 +52802,7 @@
},
"mode": "Incremental",
"parameters": {
"stickySessionsAffinity": "[if(parameters('enableScalability'), createObject('value', 'sticky'), createObject('value', 'none'))]",
"name": {
"value": "[format('ca-mcp-{0}', variables('solutionSuffix'))]"
},
Expand Down Expand Up @@ -52920,7 +52935,7 @@
"_generator": {
"name": "bicep",
"version": "0.44.1.10279",
"templateHash": "9906697545075116207"
"templateHash": "10535819316717631477"
}
},
"parameters": {
Expand Down Expand Up @@ -53058,6 +53073,17 @@
"metadata": {
"description": "Enable Azure telemetry collection."
}
},
"stickySessionsAffinity": {
"type": "string",
"defaultValue": "none",
"allowedValues": [
"none",
"sticky"
],
"metadata": {
"description": "Optional. Bool indicating if the Container App should enable session affinity."
}
}
},
"resources": {
Expand Down Expand Up @@ -53118,6 +53144,9 @@
},
"workloadProfileName": {
"value": "[parameters('workloadProfileName')]"
},
"stickySessionsAffinity": {
"value": "[parameters('stickySessionsAffinity')]"
}
},
"template": {
Expand Down
8 changes: 8 additions & 0 deletions infra/avm/modules/compute/container-app.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ param workloadProfileName string?
@description('Enable Azure telemetry collection.')
param enableTelemetry bool = true

@allowed([
'none'
'sticky'
])
@description('Optional. Bool indicating if the Container App should enable session affinity.')
param stickySessionsAffinity string = 'none'

// ============================================================================
// Container App (AVM)
// ============================================================================
Expand All @@ -86,6 +93,7 @@ module containerApp 'br/public:avm/res/app/container-app:0.22.1' = {
activeRevisionsMode: activeRevisionsMode
scaleSettings: scaleSettings
workloadProfileName: workloadProfileName
stickySessionsAffinity: stickySessionsAffinity
}
}

Expand Down