File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
services/event-hub-data-source Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,8 @@ resource "azurerm_role_assignment" "sysdig_data_receiver" {
120
120
# Create diagnostic settings for the subscription
121
121
# ---------------------------------------------------------------------------------------------
122
122
resource "azurerm_monitor_diagnostic_setting" "sysdig_diagnostic_setting" {
123
+ count = var. is_organizational ? 0 : 1
124
+
123
125
name = " ${ var . diagnostic_settings_name } -${ random_string . random . result } -${ local . subscription_hash } "
124
126
target_resource_id = data. azurerm_subscription . sysdig_subscription . id
125
127
eventhub_authorization_rule_id = azurerm_eventhub_namespace_authorization_rule. sysdig_rule . id
Original file line number Diff line number Diff line change @@ -109,6 +109,8 @@ resource "azurerm_role_assignment" "sysdig_data_receiver" {
109
109
# Create diagnostic settings for the subscription
110
110
# ---------------------------------------------------------------------------------------------
111
111
resource "azurerm_monitor_diagnostic_setting" "sysdig_diagnostic_setting" {
112
+ count = var. is_organizational ? 0 : 1
113
+
112
114
name = " ${ var . diagnostic_settings_name } -${ local . subscription_hash } "
113
115
target_resource_id = data. azurerm_subscription . sysdig_subscription . id
114
116
eventhub_authorization_rule_id = azurerm_eventhub_namespace_authorization_rule. sysdig_rule . id
You can’t perform that action at this time.
0 commit comments