pamelafox
commited on
Commit
·
aef59ad
1
Parent(s):
cd77237
Update Bicep files
Browse files- infra/main.bicep +12 -10
infra/main.bicep
CHANGED
@@ -52,7 +52,7 @@ module postgresServer 'core/database/postgresql/flexibleserver.bicep' = {
|
|
52 |
version: '14'
|
53 |
administratorLogin: postgresAdminUser
|
54 |
administratorLoginPassword: postgresAdminPassword
|
55 |
-
databaseNames: [
|
56 |
allowAzureIPsFirewall: true
|
57 |
}
|
58 |
}
|
@@ -136,15 +136,17 @@ var secrets = [
|
|
136 |
]
|
137 |
|
138 |
@batchSize(1)
|
139 |
-
module keyVaultSecrets './core/security/keyvault-secret.bicep' = [
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
|
|
|
|
146 |
}
|
147 |
-
|
148 |
|
149 |
module logAnalyticsWorkspace 'core/monitor/loganalytics.bicep' = {
|
150 |
name: 'loganalytics'
|
@@ -158,4 +160,4 @@ module logAnalyticsWorkspace 'core/monitor/loganalytics.bicep' = {
|
|
158 |
|
159 |
output WEB_URI string = 'https://${web.outputs.uri}'
|
160 |
output AZURE_LOCATION string = location
|
161 |
-
output AZURE_KEY_VAULT_NAME string = keyVault.outputs.name
|
|
|
52 |
version: '14'
|
53 |
administratorLogin: postgresAdminUser
|
54 |
administratorLoginPassword: postgresAdminPassword
|
55 |
+
databaseNames: [postgresDatabaseName]
|
56 |
allowAzureIPsFirewall: true
|
57 |
}
|
58 |
}
|
|
|
136 |
]
|
137 |
|
138 |
@batchSize(1)
|
139 |
+
module keyVaultSecrets './core/security/keyvault-secret.bicep' = [
|
140 |
+
for secret in secrets: {
|
141 |
+
name: 'keyvault-secret-${secret.name}'
|
142 |
+
scope: resourceGroup
|
143 |
+
params: {
|
144 |
+
keyVaultName: keyVault.outputs.name
|
145 |
+
name: secret.name
|
146 |
+
secretValue: secret.value
|
147 |
+
}
|
148 |
}
|
149 |
+
]
|
150 |
|
151 |
module logAnalyticsWorkspace 'core/monitor/loganalytics.bicep' = {
|
152 |
name: 'loganalytics'
|
|
|
160 |
|
161 |
output WEB_URI string = 'https://${web.outputs.uri}'
|
162 |
output AZURE_LOCATION string = location
|
163 |
+
output AZURE_KEY_VAULT_NAME string = keyVault.outputs.name
|