Data Source: azurerm_monitor_data_collection_rule

Use this data source to access information about an existing Data Collection Rule.

Example Usage

data "azurerm_monitor_data_collection_rule" "example" {
  name                = "example-rule"
  resource_group_name = azurerm_resource_group.example.name
}

output "rule_id" {
  value = data.azurerm_monitor_data_collection_rule.example.id
}

Argument Reference

Attributes Reference


A azure_monitor_metrics block exports the following:


A column block exports the following:


A data_import block exports the following:


A data_flow block exports the following:


A data_sources block exports the following:


A destinations block exports the following:


An event_hub_data_source block exports the following:


An event_hub block exports the following:


An event_hub_direct block exports the following:


A extension block exports the following:


An iis_log block exports the following:


An identity block exports the following:


A label_include_filter block exports the following:


An log_file block exports the following:


A monitor_account block exports the following:


A log_analytics block exports the following:


A performance_counter block exports the following:


A platform_telemetry block exports the following:


A prometheus_forwarder block exports the following:


A settings block within the log_file block exports the following:


A storage_blob block exports the following:


A storage_blob_direct block exports the following:


A storage_table_direct block exports the following:


A stream_declaration block exports the following:


A syslog block exports the following:


A text block within the log_file.settings block exports the following:


A windows_event_log block exports the following:


A windows_firewall_log block exports the following:

Timeouts

The timeouts block allows you to specify timeouts for certain actions: