Hi,
Sentinel is not just SecurityInsights solution resource. Resources of type Microsoft.OperationsManagement/solutions are predefined so certain properties needs to be specified in specific pattern. Below I did edit on the code around that resource type, and it should deploy.
// ========== sentinel.bicep ==========
targetScope = 'resourceGroup'
// Parameters to modify according to needs
param location string
@description('Specifies the name of the client who needs Sentinel.')
param nameClient string
@description('Specifies the prefix for the data connectors.')
param connectorsPref string
// Variables
var sentinelName = 'Sentinel-xxxxx' // Sentinel-myCompanyName
var workspaceName = 'Workspace${nameClient}Sentinel'
var tag9 = 'Workspace pour les logs Sentinel' // sorry the description is in french
var configSentinel = loadJsonContent('../Configs/sentinel_config.json')
// Sentinel creation
resource workspace 'Microsoft.OperationalInsights/workspaces@2022-10-01' = {
name: workspaceName
location: location
properties: {
sku: {
name: configSentinel.skuName
}
retentionInDays: configSentinel.retentionInDays
}
}
// Sentinel solution creation
resource sentinel 'Microsoft.OperationsManagement/solutions@2015-11-01-preview' = {
name: 'SecurityInsights(${workspaceName})'
location: location
tags: {
WorkshopSentinel: tag9
}
properties: {
workspaceResourceId: workspace.id
}
plan:{
name: 'SecurityInsights(${workspaceName})'
product: 'OMSGallery/SecurityInsights'
promotionCode: ''
publisher: 'Microsoft'
}
}
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.