Skip to content

Commit 8790649

Browse files
authored
fix: [DTOSS-11779] the alerts action group id set only when the alerts are enabled (#1773)
fix: the alerts action group id set only when the alerts are enabled
1 parent 2b9c74b commit 8790649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infrastructure/tf-core/sql_server.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module "azure_sql_server" {
2828

2929
# Azure Monitor Alerting
3030
enable_alerting = var.features.alerts_enabled
31-
action_group_id = module.monitor_action_group_performance[0].monitor_action_group.id
31+
action_group_id = var.features.alerts_enabled ? module.monitor_action_group_performance[0].monitor_action_group.id : null
3232

3333
sql_uai_name = null # not used - deprecate in module
3434
sql_admin_group_name = var.sqlserver.sql_admin_group_name

0 commit comments

Comments
 (0)