Skip to content
This repository was archived by the owner on Aug 5, 2024. It is now read-only.

Commit b7c78fb

Browse files
committed
store a few more variables
1 parent 8c3d07e commit b7c78fb

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

infra/azuredeploy.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,25 @@
326326
"type": "string",
327327
"value": "[variables('keyVaultName')]"
328328
},
329+
"eventHubNamespaceName": {
330+
"type": "string",
331+
"value": "[variables('eventHubNamespaceName')]"
332+
},
329333
"webAppName": {
330334
"type": "string",
331335
"value": "[variables('webAppName')]"
336+
},
337+
"passwordsSecretName": {
338+
"type": "string",
339+
"value": "[variables('passwordsSecretName')]"
340+
},
341+
"storageConnectionStringSecretName": {
342+
"type": "string",
343+
"value": "[variables('storageConnectionStringSecretName')]"
344+
},
345+
"eventHubConnectionStringSecretName": {
346+
"type": "string",
347+
"value": "[variables('eventHubConnectionStringSecretName')]"
332348
}
333349
}
334350
}

infra/provision.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ const dinfo = JSON.parse((await $`az deployment group create \
117117
const { outputs } = dinfo.properties
118118
const webAppName = outputs.webAppName.value
119119
const keyVaultName = outputs.keyVaultName.value
120+
const eventHubNamespaceName = outputs.eventHubNamespaceName.value
121+
const storageConnectionStringSecretName = outputs.storageConnectionStringSecretName.value
122+
const eventHubConnectionStringSecretName = outputs.eventHubConnectionStringSecretName.value
123+
const passwordsSecretName = outputs.passwordsSecretName.value
120124

121125
const homepage = `https://${webAppName}.azurewebsites.net/swagger/`
122126

@@ -129,6 +133,10 @@ fs.writeFileSync("../.env",
129133
WEBSITE_SITE_NAME="${webAppName}"
130134
WEBSITE_HOSTNAME=0.0.0.0:7071
131135
DEVS_KEY_VAULT_NAME="${keyVaultName}"
136+
DEVS_EVENT_HUB_NAME="${eventHubNamespaceName}"
137+
DEVS_STORAGE_CONNECTION_STRING_SECRET="${storageConnectionStringSecretName}"
138+
DEVS_EVENT_HUB_CONNECTION_STRING_SECRET="${eventHubConnectionStringSecretName}"
139+
DEVS_PASSWORDS_SECRET="${passwordsSecretName}"
132140
DEVS_SWAGGER_URL="${homepage}"
133141
`, { encoding: "utf8" })
134142

0 commit comments

Comments
 (0)