This commit is contained in:
Chris Kruining 2024-11-28 07:18:53 +01:00
parent 501daf7a91
commit e917ab12ed
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
7 changed files with 133 additions and 125 deletions

View file

@ -1,11 +1,17 @@
import { Context } from 'types.bicep'
import { Context } from 'br/Tricep:types:latest'
import { with_managed_identity } from 'br/Tricep:common/identity:latest'
import { log_analytics } from 'br/Tricep:recommended/operational-insights/log-analytics:latest'
targetScope = 'resourceGroup'
param context Context
// resource monitoring 'Microsoft.___/___@___' = {
// name: '___-${context.locationAbbreviation}-${context.environment}-${context.projectName}'
// location: context.location
// properties: {}
// }
var logAnalyticsConfig = log_analytics(context, [
with_managed_identity()
])
resource monitoring 'Microsoft.OperationalInsights/workspaces@2023-09-01' = {
name: logAnalyticsConfig.name
location: logAnalyticsConfig.location
properties: logAnalyticsConfig.properties
}