Skip to content

Commit e209b73

Browse files
committed
Add Azure-required WebSockets and Session Affinity for Blazor Server dashboard
- Enable webSocketsEnabled: true in dashboard siteConfig - Enable clientAffinityEnabled: true for sticky sessions - Required for Blazor Server SignalR communication per Microsoft docs - Fixes dashboard perpetual loading issue (SignalR couldn't establish connection) - Reference: https://learn.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/server/#azure-app-service
1 parent f89f18f commit e209b73

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deployment/modules/app-services.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,13 @@
249249
"properties": {
250250
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('appServicePlanName'))]",
251251
"httpsOnly": true,
252+
"clientAffinityEnabled": true,
252253
"siteConfig": {
253254
"linuxFxVersion": "DOTNETCORE|9.0",
254255
"alwaysOn": "[if(equals(parameters('skuName'), 'F1'), false(), true())]",
255256
"ftpsState": "Disabled",
256257
"minTlsVersion": "1.2",
258+
"webSocketsEnabled": true,
257259
"appSettings": [
258260
{
259261
"name": "ASPNETCORE_ENVIRONMENT",

0 commit comments

Comments
 (0)