You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below is the terraform code that's causing the issue. I am running with all the logs and metrics provided from the data block. Still, metrics and logs are getting updated every single time
data "azurerm_monitor_diagnostic_categories" "storage-diagnostic-categories" {
resource_id = << Pointing to blob service in storage account >>
}
resource "azurerm_monitor_diagnostic_setting" "diagnostic-ehaudit" {
name = << Name of the monitor setting >>
target_resource_id = << Pointing to blob service in storage account >>
eventhub_authorization_rule_id = << Corresponding rule id >>
eventhub_name = << Event hub name>>
dynamic "log" {
for_each = data.azurerm_monitor_diagnostic_categories.storage-diagnostic-categories.logs
content {
category = log.value
enabled = var.logs_enabled
retention_policy {
days = 30
enabled = var.logs_enabled
}
}
}
dynamic "metric" {
for_each = data.azurerm_monitor_diagnostic_categories.storage-diagnostic-categories.metrics
content {
category = metric.value
enabled = var.metrics_enabled
retention_policy {
days = 30
enabled = var.metrics_enabled
}
}
}
}
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Running terraform which below configuration
Below is the terraform code that's causing the issue. I am running with all the logs and metrics provided from the data block. Still, metrics and logs are getting updated every single time
Terraform plan :
Steps to reproduce :
The text was updated successfully, but these errors were encountered: