mq-quiz / infra /core /monitor /applicationinsights.bicep
Pamela Fox
Port to core (appservice/vnet/pg changes made)
9595e1d
raw
history blame
844 Bytes
param name string
param dashboardName string
param location string = resourceGroup().location
param tags object = {}
param logAnalyticsWorkspaceId string
resource applicationInsights 'Microsoft.Insights/components@2020-02-02' = {
name: name
location: location
tags: tags
kind: 'web'
properties: {
Application_Type: 'web'
WorkspaceResourceId: logAnalyticsWorkspaceId
}
}
module applicationInsightsDashboard 'applicationinsights-dashboard.bicep' = {
name: 'application-insights-dashboard'
params: {
name: dashboardName
location: location
applicationInsightsName: applicationInsights.name
}
}
output connectionString string = applicationInsights.properties.ConnectionString
output instrumentationKey string = applicationInsights.properties.InstrumentationKey
output name string = applicationInsights.name