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

Commit c9cf217

Browse files
committed
AI integration
1 parent 1378d53 commit c9cf217

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"ApimServiceName": {
6+
"type": "string"
7+
},
8+
"ApplicationInsightsInstanceName": {
9+
"type": "string"
10+
},
11+
"ApplicationInsightsInstrumentationKey": {
12+
"type": "string"
13+
},
14+
"SamplingRate": {
15+
"type": "int"
16+
}
17+
},
18+
"variables": {},
19+
"resources": [
20+
{
21+
"type": "Microsoft.ApiManagement/service/loggers",
22+
"name": "[concat(parameters('ApimServiceName'), '/', parameters('ApplicationInsightsInstanceName'))]",
23+
"apiVersion": "2018-06-01-preview",
24+
"properties": {
25+
"loggerType": "applicationInsights",
26+
"description": "Logger resources to APIM",
27+
"credentials": {
28+
"instrumentationKey": "[parameters('ApplicationInsightsInstrumentationKey')]"
29+
}
30+
}
31+
},
32+
{
33+
"type": "Microsoft.ApiManagement/service/diagnostics",
34+
"name": "[concat(parameters('ApimServiceName'), '/applicationinsights')]",
35+
"apiVersion": "2018-06-01-preview",
36+
"properties": {
37+
"alwaysLog": "allErrors",
38+
"loggerId": "[concat('/loggers/', parameters('ApplicationInsightsInstanceName'))]",
39+
"sampling": {
40+
"samplingType": "fixed",
41+
"percentage": "[parameters('SamplingRate')]"
42+
},
43+
"frontend": {
44+
"request": {
45+
"headers": [],
46+
"body": {}
47+
},
48+
"response": {
49+
"headers": [],
50+
"body": {}
51+
}
52+
},
53+
"backend": {
54+
"request": {
55+
"headers": [],
56+
"body": {}
57+
},
58+
"response": {
59+
"headers": [],
60+
"body": {}
61+
}
62+
},
63+
"enableHttpCorrelationHeaders": false
64+
},
65+
"dependsOn": [
66+
"[resourceId('Microsoft.ApiManagement/service/loggers', parameters('ApimServiceName'), parameters('ApplicationInsightsInstanceName'))]"
67+
]
68+
}
69+
70+
]
71+
}

0 commit comments

Comments
 (0)