Skip to content

Commit

Permalink
Add ingestionMode parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
krbar committed Jan 20, 2025
1 parent 77907bb commit 0d775be
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions avm/res/insights/component/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ param disableLocalAuth bool = false
@description('Optional. Force users to create their own storage account for profiler and debugger.')
param forceCustomerStorageForProfiler bool = false

@description('Optional. Indicates the flow of the ingestion.')
@allowed([
'ApplicationInsights'
'ApplicationInsightsWithDiagnosticSettings'
'LogAnalytics'
])
param ingestionMode string = 'ApplicationInsights'

@description('Optional. Linked storage account resource ID.')
param linkedStorageAccountResourceId string?

Expand Down Expand Up @@ -155,6 +163,7 @@ resource appInsights 'Microsoft.Insights/components@2020-02-02' = {
publicNetworkAccessForQuery: publicNetworkAccessForQuery
RetentionInDays: retentionInDays
SamplingPercentage: samplingPercentage
IngestionMode: ingestionMode
}
}

Expand Down

0 comments on commit 0d775be

Please sign in to comment.