Skip to content

Commit cd50c80

Browse files
Zain AhmedZain Ahmed
authored andcommitted
fix: disable prod-only features that may not be allowed on subscription
1 parent e509188 commit cd50c80

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

infrastructure/bicep/main.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ resource cosmosDbAccount 'Microsoft.DocumentDB/databaseAccounts@2024-05-15' = {
183183
}
184184
}
185185
// Enable analytical store for team insights
186-
enableAnalyticalStorage: environment == 'prod' ? true : false
186+
enableAnalyticalStorage: false // Not available on all subscription types
187187
}
188188
tags: union(commonTags, { Component: 'database' })
189189
}
@@ -294,7 +294,7 @@ resource webApp 'Microsoft.Web/sites@2023-12-01' = {
294294
properties: {
295295
serverFarmId: appServicePlan.id
296296
httpsOnly: true
297-
redundancyMode: environment == 'prod' ? 'Manual' : 'None'
297+
redundancyMode: 'None' // Disabled - some subscriptions don't support Manual redundancy
298298
siteConfig: {
299299
linuxFxVersion: 'NODE|20-lts' // Next.js 16 requires Node 20
300300
alwaysOn: environment == 'prod' ? true : false

0 commit comments

Comments
 (0)