Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exposed 'deploySentinel' as an available parameter #515

Merged
merged 5 commits into from
Nov 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/bicep/mlz.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module logAnalyticsWorkspace './modules/logAnalyticsWorkspace.bicep' = {
name: logAnalyticsWorkspaceName
location: logAnalyticsWorkspaceLocation
tags: tags

deploySentinel: deploySentinel
retentionInDays: logAnalyticsWorkspaceRetentionInDays
skuName: logAnalyticsWorkspaceSkuName
workspaceCappingDailyQuotaGb: logAnalyticsWorkspaceCappingDailyQuotaGb
Expand Down Expand Up @@ -487,6 +487,8 @@ param logAnalyticsWorkspaceLocation string = operationsLocation
param logAnalyticsWorkspaceCappingDailyQuotaGb int = -1
param logAnalyticsWorkspaceRetentionInDays int = 30
param logAnalyticsWorkspaceSkuName string = 'PerGB2018'
@description('When set to "True", enables Microsoft Sentinel within the MLZ Log Analytics workspace.')
param deploySentinel bool = false

@allowed([
'NIST'
Expand Down
12 changes: 11 additions & 1 deletion src/bicep/mlz.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.4.1008.15138",
"templateHash": "5432467458779395437"
"templateHash": "12775752022763865170"
}
},
"parameters": {
Expand Down Expand Up @@ -464,6 +464,13 @@
"type": "string",
"defaultValue": "PerGB2018"
},
"deploySentinel": {
"type": "bool",
"defaultValue": false,
"metadata": {
"description": "When set to \"True\", enables Microsoft Sentinel within the MLZ Log Analytics workspace."
}
},
"policy": {
"type": "string",
"defaultValue": "NIST",
Expand Down Expand Up @@ -885,6 +892,9 @@
"tags": {
"value": "[parameters('tags')]"
},
"deploySentinel": {
"value": "[parameters('deploySentinel')]"
},
"retentionInDays": {
"value": "[parameters('logAnalyticsWorkspaceRetentionInDays')]"
},
Expand Down