Skip to content

Commit 2ca7247

Browse files
author
Sergey Kanzhelev
committed
add instrumentation key
1 parent fee048e commit 2ca7247

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

azuredeploy.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,23 @@
124124
"dependsOn": [ "[concat('Microsoft.Web/sites/', parameters('siteName'))]" ],
125125
"tags": { "[concat('hidden-link:', resourceGroup().id, '/providers/Microsoft.Web/sites/', parameters('siteName'))]": "Resource" },
126126
"properties": { "ApplicationId": "[parameters('siteName')]" }
127+
},
128+
{
129+
"apiVersion": "2014-04-01",
130+
"type": "config",
131+
"name": "web",
132+
"dependsOn": [
133+
"[concat('microsoft.insights/components/', parameters('siteName'))]",
134+
"[concat('Microsoft.Web/sites/', parameters('siteName'))]"
135+
],
136+
"properties": {
137+
"appSettings": [
138+
{
139+
"name": "APPINSIGHTS_INSTRUMENTATIONKEY",
140+
"value": "[reference(concat('Microsoft.Web/sites/', parameters('siteName'))).InstrumentationKey]"
141+
}
142+
]
143+
}
127144
}
128145
]
129146
}

0 commit comments

Comments
 (0)