-
Notifications
You must be signed in to change notification settings - Fork 1
/
log-analytics.bicep
30 lines (25 loc) · 954 Bytes
/
log-analytics.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
@description('Specifies the location of AKS cluster.')
param location string = resourceGroup().location
@description('Specifies the name of the Log Analytics Workspace.')
param logAnalyticsWorkspaceName string
@allowed([
'Free'
'Standalone'
'PerNode'
'PerGB2018'
])
@description('Specifies the service tier of the workspace: Free, Standalone, PerNode, Per-GB.')
param logAnalyticsSku string = 'PerGB2018'
@description('Specifies the workspace data retention in days. -1 means Unlimited retention for the Unlimited Sku. 730 days is the maximum allowed for all other Skus.')
param logAnalyticsRetentionInDays int = 60
resource logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2020-10-01' = {
name: logAnalyticsWorkspaceName
location: location
properties: {
sku: {
name: logAnalyticsSku
}
retentionInDays: logAnalyticsRetentionInDays
}
}
output logAnalyticsWorkspaceId string = logAnalyticsWorkspace.id