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

Commit 1a06362

Browse files
committed
AI integration
1 parent c9cf217 commit 1a06362

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

example/monitoring/application-insights/ai.template.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"ApimServiceName": {
66
"type": "string"
77
},
8-
"ApplicationInsightsInstanceName": {
8+
"ApplicationInsightsLocation": {
99
"type": "string"
1010
},
11-
"ApplicationInsightsInstrumentationKey": {
11+
"ApplicationInsightsInstanceName": {
1212
"type": "string"
1313
},
1414
"SamplingRate": {
@@ -17,6 +17,17 @@
1717
},
1818
"variables": {},
1919
"resources": [
20+
{
21+
"name": "[parameters('ApplicationInsightsInstanceName')]",
22+
"type": "Microsoft.Insights/components",
23+
"apiVersion": "2015-05-01",
24+
"location": "[parameters('ApplicationInsightsLocation')]",
25+
"tags": {},
26+
"kind": "other",
27+
"properties": {
28+
"Application_Type": "other"
29+
}
30+
},
2031
{
2132
"type": "Microsoft.ApiManagement/service/loggers",
2233
"name": "[concat(parameters('ApimServiceName'), '/', parameters('ApplicationInsightsInstanceName'))]",
@@ -25,7 +36,7 @@
2536
"loggerType": "applicationInsights",
2637
"description": "Logger resources to APIM",
2738
"credentials": {
28-
"instrumentationKey": "[parameters('ApplicationInsightsInstrumentationKey')]"
39+
"instrumentationKey": "[reference(resourceId('Microsoft.Insights/components', parameters('ApplicationInsightsInstanceName')), '2015-05-01').InstrumentationKey]"
2940
}
3041
}
3142
},

0 commit comments

Comments
 (0)