-
Notifications
You must be signed in to change notification settings - Fork 2
/
modules.funcAppSettings.bicep
33 lines (29 loc) · 1.46 KB
/
modules.funcAppSettings.bicep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
param keyVaultName string
param serviceFuncName string
@secure()
param appInsightsConnectionString string
@secure()
param storageAccountConnectionString string
param keyVaultSecretNameStorageAccountConnectionString string
param keyVaultSecretNameServiceBusConnectionString string
param keyVaultSecretNameSignalRConnectionString string
resource serviceFuncRes 'Microsoft.Web/sites@2021-03-01' existing = {
name: serviceFuncName
}
resource serviceFuncAppSettingsRes 'Microsoft.Web/sites/config@2021-03-01' = {
parent: serviceFuncRes
name: 'appsettings'
properties: {
AzureWebJobsStorage: '@Microsoft.KeyVault(VaultName=${keyVaultName};SecretName=${keyVaultSecretNameStorageAccountConnectionString})'
AzureWebJobsDisableHomepage: 'true'
WEBSITE_CONTENTAZUREFILECONNECTIONSTRING: storageAccountConnectionString
APPLICATIONINSIGHTS_CONNECTION_STRING: appInsightsConnectionString
FUNCTIONS_EXTENSION_VERSION: '~4'
FUNCTIONS_WORKER_RUNTIME: 'dotnet'
WEBSITE_TIME_ZONE: 'W. Europe Standard Time'
WEBSITE_CONTENTSHARE: serviceFuncName
StorageConnectionString: '@Microsoft.KeyVault(VaultName=${keyVaultName};SecretName=${keyVaultSecretNameStorageAccountConnectionString})'
SignalRConnectionString: '@Microsoft.KeyVault(VaultName=${keyVaultName};SecretName=${keyVaultSecretNameSignalRConnectionString})'
ServiceBusConncectionString: '@Microsoft.KeyVault(VaultName=${keyVaultName};SecretName=${keyVaultSecretNameServiceBusConnectionString})'
}
}