Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Modules] Added WEBSITE_CONTENTAZUREFILECONNECTIONSTRING to app settings #3885

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Next Next commit
Added WEBSITE_CONTENTAZUREFILECONNECTIONSTRING to app settings to sto…
…re binaries in blob
  • Loading branch information
pjainhso committed Aug 31, 2023
commit be3d0865fc2eb9ef58721a6032f1d2c1c4ffd9c3
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