Issue with "azurerm monitor data collection rule"

Hi,

I have some problems setting up the “azurerm_monitor_data_collection_rule” resource, maybe someone can give me a tip where my mistake is.

Terrafrom Version: 1.3.7
azurerm: 3.41.0

The rule is created but nothing is selected in the “Performance Counters” and in “Syslog” all the “Facilities” are available but no “minimum log level”.

My code looks like this:

resource "azurerm_monitor_data_collection_rule" "data_collection_rule" {
  name                = "${var.project}-${var.environment}-log-rules"
  resource_group_name = lower("devops-${var.environment}-log-rg")
  location            = var.location

  destinations {
    log_analytics {
      workspace_resource_id = var.workspace_id
      name                  = "${var.project}-${var.environment}-destination-log"
    }
  }

  data_flow {
    streams      = ["Microsoft-Perf","Microsoft-Syslog"]
    destinations = ["${var.project}-${var.environment}-destination-log"]
  }

  data_sources {
    syslog {
      facility_names = ["*"]
      log_levels     = ["*"]
      name           = "${var.project}-${var.environment}-sysLogs"
    }

    performance_counter {
      streams                       = ["Microsoft-Perf"]
      sampling_frequency_in_seconds = 10
      counter_specifiers            = ["*"]
      name                          = "${var.project}-${var.environment}-perfCounter"
    }
  }
}

Does anyone have an idea where my mistake is?

Regards
Thorsten