Skip to content
Open
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
8 changes: 7 additions & 1 deletion modules/web/site/config--appsettings/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,18 @@ var azureWebJobsValues = !empty(storageAccountResourceId) ? union({
AzureWebJobsDashboard: 'DefaultEndpointsProtocol=https;AccountName=${storageAccount.name};AccountKey=${storageAccount.listKeys().keys[0].value};'
} : {})) : {}

var websiteContentShare = !empty(storageAccountResourceId) ? union({
WEBSITE_CONTENTAZUREFILECONNECTIONSTRING: 'DefaultEndpointsProtocol=https;AccountName=${storageAccount.name};AccountKey=${storageAccount.listKeys().keys[0].value};'
}, {
WEBSITE_CONTENTSHARE: appName
}) : {}

var appInsightsValues = !empty(appInsightResourceId) ? {
APPINSIGHTS_INSTRUMENTATIONKEY: appInsight.properties.InstrumentationKey
APPLICATIONINSIGHTS_CONNECTION_STRING: appInsight.properties.ConnectionString
} : {}

var expandedAppSettings = union(appSettingsKeyValuePairs, azureWebJobsValues, appInsightsValues)
var expandedAppSettings = union(appSettingsKeyValuePairs, azureWebJobsValues, appInsightsValues, websiteContentShare)

// =========== //
// Existing resources //
Expand Down