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

add a Bicep Azure Sentinel module #385

Merged
merged 7 commits into from
Sep 7, 2021
Merged
Show file tree
Hide file tree
Changes from 2 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
12 changes: 12 additions & 0 deletions src/bicep/mlz.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@ module logAnalyticsWorkspace './modules/logAnalyticsWorkspace.bicep' = {
]
}

//// sentinel
module sentinelSolution './modules/sentinelSolution.bicep' = {
glennmusa marked this conversation as resolved.
Show resolved Hide resolved
name: 'deploy-sentinel-${nowUtc}'
scope: resourceGroup(operationsSubscriptionId, operationsResourceGroupName)
params: {
workspaceName: logAnalyticsWorkspaceName
workspaceLocation: logAnalyticsWorkspaceLocation
tags: tags
sentinelBool:false
}
}

//// hub and spoke

module hub './modules/hubNetwork.bicep' = {
Expand Down
26 changes: 26 additions & 0 deletions src/bicep/modules/SentinelSolution.bicep
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
param workspaceName string
param workspaceLocation string
param tags object = {}
param sentinelBool bool

resource workspace 'Microsoft.OperationalInsights/workspaces@2020-08-01' existing = {
name: workspaceName
}

resource sentinelSolution 'Microsoft.OperationsManagement/solutions@2015-11-01-preview'= if(sentinelBool) {
name: 'SecurityInsights(${workspaceName})'
location: workspaceLocation
tags:tags
dependsOn:[
workspace
]
properties: {
workspaceResourceId: workspace.id
}
plan: {
name: 'SecurityInsights(${workspaceName})'
publisher: 'Microsoft'
product: 'OMSGallery/SecurityInsights'
promotionCode: ''
}
}
vidyambala marked this conversation as resolved.
Show resolved Hide resolved