Skip to content

Commit 4c689b9

Browse files
author
Federico Arambarri
committed
script improvement
1 parent 4f41b1f commit 4c689b9

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

ChattyIO/bicep/main.bicep

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ var uniqueName = uniqueString(resourceGroup().id)
2323
@description('The name of the SQL logical server.')
2424
var serverName = 'sqlserver-${uniqueName}'
2525
@description('The name of the SQL Database.')
26-
var sqlDBName = 'chattyIoDatabase-${uniqueName}'
27-
var logAnalyticsWorkspaceName = 'chattyIoDatabase-${uniqueName}'
26+
var sqlDBName = 'extraneosFeatching-${uniqueName}'
27+
var logAnalyticsWorkspaceName = 'extraneosFeatching-${uniqueName}'
2828

2929

3030
resource sqlServer 'Microsoft.Sql/servers@2023-08-01-preview' = {
@@ -100,6 +100,25 @@ resource sqlVulnerabilityAssessment 'Microsoft.Sql/servers/sqlVulnerabilityAsses
100100
]
101101
}
102102

103+
resource solutions_SQLAuditing_githubmetrics 'Microsoft.OperationsManagement/solutions@2015-11-01-preview' = {
104+
name: 'SolutionSQLAuditing${logAnalyticsWorkspace.name}'
105+
location: location
106+
plan: {
107+
name: 'SQLAuditing${sqlDB.name}'
108+
promotionCode: ''
109+
product: 'SQLAuditing'
110+
publisher: 'Microsoft'
111+
}
112+
properties: {
113+
workspaceResourceId: logAnalyticsWorkspace.id
114+
containedResources: [
115+
'${resourceId('Microsoft.OperationalInsights/workspaces', logAnalyticsWorkspace.name)}/views/SQLSecurityInsights'
116+
'${resourceId('Microsoft.OperationalInsights/workspaces', logAnalyticsWorkspace.name)}/views/SQLAccessToSensitiveData'
117+
]
118+
referencedResources: []
119+
}
120+
}
121+
103122
resource sqlDB 'Microsoft.Sql/servers/databases@2023-08-01-preview' = {
104123
parent: sqlServer
105124
name: sqlDBName

0 commit comments

Comments
 (0)