From 3d199f8e938c32f94b8e4a8a8182417f77588d83 Mon Sep 17 00:00:00 2001 From: Clemens Wolff Date: Mon, 28 Jan 2019 07:52:35 -0500 Subject: [PATCH] Inline env variable --- azuredeploy.json | 52 +++++++++++++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 20 deletions(-) diff --git a/azuredeploy.json b/azuredeploy.json index 2174b146..7e89be35 100644 --- a/azuredeploy.json +++ b/azuredeploy.json @@ -102,24 +102,6 @@ "databaseServerName": "[concat(parameters('appName'),'-state')]", "setupScriptName": "[concat(parameters('appName'),'-setup')]", "appServicePlanName": "[concat(parameters('appName'),'-hosting')]", - "env": [ - { - "name": "WEBSITES_ENABLE_APP_SERVICE_STORAGE", - "value": "false" - }, - { - "name": "DEBUG", - "value": "False" - }, - { - "name": "SECRET_KEY", - "value": "[parameters('secretKey')]" - }, - { - "name": "DATABASE_URL", - "value": "[variables('databaseConnectionString')]" - } - ] }, "resources": [ { @@ -199,7 +181,20 @@ "[parameters('adminContactEmail')]", "[parameters('adminPassword')]" ], - "environmentVariables": "[variables('env')]", + "environmentVariables": [ + { + "name": "DEBUG", + "value": "False" + }, + { + "name": "SECRET_KEY", + "value": "[parameters('secretKey')]" + }, + { + "name": "DATABASE_URL", + "value": "[variables('databaseConnectionString')]" + } + ], "resources": { "requests": { "cpu": "1", @@ -231,7 +226,24 @@ "siteConfig": { "linuxFxVersion": "[concat('DOCKER|', parameters('dockerImageName'))]", "alwaysOn": true, - "appSettings": "[variables('env')]" + "appSettings": [ + { + "name": "WEBSITES_ENABLE_APP_SERVICE_STORAGE", + "value": "false" + }, + { + "name": "DEBUG", + "value": "False" + }, + { + "name": "SECRET_KEY", + "value": "[parameters('secretKey')]" + }, + { + "name": "DATABASE_URL", + "value": "[variables('databaseConnectionString')]" + } + ] }, "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('appServicePlanName'))]" }