-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.bicep
35 lines (32 loc) · 915 Bytes
/
main.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
param openAiEndpoint string
param openAiApiKey string
param wbData object = base64ToJson(loadFileAsBase64('workbook_template.json'))
param rgLocation string = resourceGroup().location
// Application Insights
module appInsights './appInsights.bicep' = {
name: 'appInsightsModule'
params: {
rgLocation: rgLocation
wbSerializedData: wbData
}
}
// API Management
module apiManagement './apiManagement.bicep' = {
name: 'apiManagementModule'
params: {
openAiEndpoint: openAiEndpoint
openAiApiKey: openAiApiKey
appInsightsInstrumentationKey: appInsights.outputs.instrumentationKey
appInsightsId: appInsights.outputs.id
rgLocation: rgLocation
}
}
// Dashboard (WIP)
module dashboard './dashboard.bicep' = {
name: 'dashboardModule'
params: {
apiGateway: apiManagement.outputs.gatewayUrl
appInsightsId: appInsights.outputs.id
appInsightsName: appInsights.name
}
}