Skip to content

Commit f829603

Browse files
fix: update bicep files for env vars
1 parent df4e248 commit f829603

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

infrastructure/resource_group_level/modules/webapps/portal-api.bicep

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -109,22 +109,10 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2022-09-01' existing
109109
var storageAccountKey = storageAccount.listKeys().keys[0].value
110110

111111
var settingsCalculated = {
112-
AZURE_PORTAL_STORAGE_ACCESS_KEY: {
113-
type: 'Custom'
114-
value: storageAccountKey
115-
}
116-
AZURE_PORTAL_STORAGE_ACCOUNT: {
117-
type: 'Custom'
118-
value: storageAccountName
119-
}
120-
MONGO_INITDB_DATABASE: {
121-
type: 'Custom'
122-
value: cosmosDbDatabaseName
123-
}
124-
MONGODB_URI: {
125-
type: 'Custom'
126-
value: mongoDbConnectionString
127-
}
112+
AZURE_PORTAL_STORAGE_ACCESS_KEY: storageAccountKey
113+
AZURE_PORTAL_STORAGE_ACCOUNT: storageAccountName
114+
MONGO_INITDB_DATABASE: cosmosDbDatabaseName
115+
MONGODB_URI: mongoDbConnectionString
128116
}
129117

130118
var appSettings = union(settings, staticSettings, secureSettings, additionalSettings, additionalSecureSettings, nodeEnv, settingsCalculated)

0 commit comments

Comments
 (0)