File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
modules/integrations/event-hub Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,24 @@ resource "azurerm_role_assignment" "sysdig_data_receiver" {
117
117
principal_id = azuread_service_principal. sysdig_event_hub_sp . object_id
118
118
}
119
119
120
+ # ---------------------------------------------------------------------------------------------
121
+ # Assign "Reader" role to Sysdig SP at subscription level to check resource existence
122
+ # ---------------------------------------------------------------------------------------------
123
+ resource "azurerm_role_assignment" "sysdig_subscription_reader" {
124
+ scope = data. azurerm_subscription . sysdig_subscription . id
125
+ role_definition_name = " Reader"
126
+ principal_id = azuread_service_principal. sysdig_event_hub_sp . object_id
127
+ }
128
+
129
+ # ---------------------------------------------------------------------------------------------
130
+ # Assign "Monitoring Reader" role to Sysdig SP at subscription level to check resource health
131
+ # ---------------------------------------------------------------------------------------------
132
+ resource "azurerm_role_assignment" "sysdig_subscription_monitoring_reader" {
133
+ scope = data. azurerm_subscription . sysdig_subscription . id
134
+ role_definition_name = " Monitoring Reader"
135
+ principal_id = azuread_service_principal. sysdig_event_hub_sp . object_id
136
+ }
137
+
120
138
# ---------------------------------------------------------------------------------------------
121
139
# Create diagnostic settings for the subscription
122
140
# ---------------------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments