-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
dashboard.bicep
58 lines (48 loc) · 1.28 KB
/
dashboard.bicep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
param apiGateway string
param appInsightsId string
param appInsightsName string
var gatewayContent = format(
'''
# OpenAI API Gateway
Replace your OpenAI API endpoint with the following values.
**Endpoint URL**: `{0}`
**Endpoint Key**: Navigate to your API Management instance -> Subscription keys
**Endpoint Key**:
- Navigate to your resource group where you deployed this script
- Find your API Management instance\n- Subscription keys -> Show / Copy keys
# Workbooks and visualizations
- Navigate to your resource group where you deployed this script
- Open the service named OpenAI Workbook"
''', apiGateway)
resource dashboard 'Microsoft.Portal/dashboards@2020-09-01-preview' = {
name: 'OpenAIDashboard'
location: 'global'
properties: {
lenses: [
{
order: 0
parts: [
{
position: {
x: 0
y: 0
rowSpan: 6
colSpan: 9
}
metadata: {
inputs: []
type: 'Extension/HubsExtension/PartType/MarkdownPart'
settings: {
content: {
settings: {
content: gatewayContent
}
}
}
}
}
]
}
]
}
}