Permalink
Browse files

second interation - auto pass keys

  • Loading branch information...
linkcd committed Feb 8, 2018
1 parent 01924d9 commit c24b08c6c911e78d1e290c91d96239fc932ea51f
Showing with 15 additions and 1 deletion.
  1. +15 −1 Real-life-infra-as-code/azuredeploy.json
@@ -71,7 +71,9 @@
"location": "[resourceGroup().location]",
"apiVersion": "2016-08-01",
"dependsOn": [
"[variables('serverFarmName')]"
"[concat('Microsoft.Web/serverfarms/', variables('serverFarmName'))]",
"[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]",
"[concat('microsoft.insights/components/', variables('appinsightName'))]"
],
"tags": {
"displayName": "[parameters('webAppName')]"
@@ -88,6 +90,18 @@
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "6.11.1"
},
{
"name": "STORAGE_ACCOUNT",
"value": "[variables('storageAccountName')]"
},
{
"name": "STORAGE_ACCESSKEY",
"value": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')), '2016-01-01').keys[0].value]"
},
{
"name": "APPINSIGHTS_INSTRUMENTATIONKEY",
"value": "[reference(resourceId('microsoft.insights/components', variables('appinsightName')), '2015-05-01').InstrumentationKey]"
}
]
}

0 comments on commit c24b08c

Please sign in to comment.