Commit 3fb1088 1 parent c6913bd commit 3fb1088 Copy full SHA for 3fb1088
File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ param location string = resourceGroup().location
27
27
var containerRegistryPasswordRef = 'container-registry-password'
28
28
var mailgunApiKeyRef = 'mailgun-api-key'
29
29
30
- resource workspace 'Microsoft.OperationalInsights/workspaces@2021-12-01-preview' = {
30
+ // https://learn.microsoft.com/en-us/azure/templates/microsoft.operationalinsights/workspaces?pivots=deployment-language-bicep
31
+ resource workspace 'Microsoft.OperationalInsights/workspaces@2023-09-01' = {
31
32
name : workspaceName
32
33
location : location
33
34
tags : tags
@@ -40,14 +41,19 @@ resource workspace 'Microsoft.OperationalInsights/workspaces@2021-12-01-preview'
40
41
}
41
42
}
42
43
44
+ // https://learn.microsoft.com/en-us/azure/templates/microsoft.insights/components?pivots=deployment-language-bicep
43
45
resource appInsights 'Microsoft.Insights/components@2020-02-02' = {
44
46
name : appInsightsName
45
47
location : location
46
- tags : tags
47
- kind : 'web'
48
+ kind : 'other'
48
49
properties : {
49
50
Application_Type : 'web'
50
51
Flow_Type : 'Bluefield'
52
+ WorkspaceResourceId : workspace .id
53
+ RetentionInDays : 90
54
+ IngestionMode : 'LogAnalytics'
55
+ publicNetworkAccessForIngestion : 'Enabled'
56
+ publicNetworkAccessForQuery : 'Enabled'
51
57
}
52
58
}
53
59
You can’t perform that action at this time.
0 commit comments