-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.bicep
32 lines (28 loc) · 818 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
param appName string = uniqueString(resourceGroup().id)
module appServicePlanModule './app-service-plan.bicep' = {
name: 'appServicePlanDeploy'
params: {
appName: appName
}
}
module appServiceModule './app-service.bicep' = {
name: 'appServiceDeploy'
params: {
appName: appName
appServicePlanID: appServicePlanModule.outputs.appServicePlanID
APPINSIGHTS_INSTRUMENTATIONKEY: appInsightsModule.outputs.APPINSIGHTS_INSTRUMENTATIONKEY
}
}
module appInsightsModule './app-insights.bicep' = {
name: 'appInsightsDeploy'
params: {
appName: appName
logAnalaticsWorkspaceResourceID: logAnalyticsWorkspace.outputs.logAnalaticsWorkspaceResourceID
}
}
module logAnalyticsWorkspace './log-analytics.bicep' = {
name: 'logAnalyticsWorkspaceDeploy'
params: {
appName: appName
}
}