Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlockstar committed Dec 24, 2024
1 parent 66ca9ca commit 4206228
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions infrastructure/modules/sql-server/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -82,27 +82,27 @@ module "diagnostic_setting_sql_server" {
/* --------------------------------------------------------------------------------------------------
SQL Server Extended Auditing Policy
-------------------------------------------------------------------------------------------------- */
resource "azurerm_mssql_server_extended_auditing_policy" "azure_sql_server" {
# resource "azurerm_mssql_server_extended_auditing_policy" "azure_sql_server" {

server_id = azurerm_mssql_server.azure_sql_server.id
log_monitoring_enabled = var.log_monitoring_enabled
retention_in_days = var.auditing_policy_retention_in_days
# server_id = azurerm_mssql_server.azure_sql_server.id
# log_monitoring_enabled = var.log_monitoring_enabled
# retention_in_days = var.auditing_policy_retention_in_days

depends_on = [
module.rbac_assignments
]
}
# depends_on = [
# module.rbac_assignments
# ]
# }

/* --------------------------------------------------------------------------------------------------
Security Alert Policy for SQL Server
-------------------------------------------------------------------------------------------------- */
resource "azurerm_mssql_server_security_alert_policy" "sql_server_alert_policy" {
# resource "azurerm_mssql_server_security_alert_policy" "sql_server_alert_policy" {

server_name = azurerm_mssql_server.azure_sql_server.name
resource_group_name = var.resource_group_name
state = var.sql_server_alert_policy_state
retention_days = var.security_alert_policy_retention_days
}
# server_name = azurerm_mssql_server.azure_sql_server.name
# resource_group_name = var.resource_group_name
# state = var.sql_server_alert_policy_state
# retention_days = var.security_alert_policy_retention_days
# }

/* --------------------------------------------------------------------------------------------------
Vulnerability Assessment for SQL Server
Expand Down

0 comments on commit 4206228

Please sign in to comment.