Skip to content

avidhara/terraform-azurerm-diagnostic-settings

Repository files navigation

Terraform module for Azure Diagnostic Settings

How to use it as a module

Requirements

Name Version
terraform >= 0.13.1
azurerm >= 3.0.0

Providers

Name Version
azurerm >= 3.0.0

Modules

No modules.

Resources

Name Type
azurerm_monitor_diagnostic_setting.this resource

Inputs

Name Description Type Default Required
create_diagnostic_setting (Optional) Do you want to create the resource bool true no
enabled_log (Optional) One or more enabled_log blocks, At least one enabled_log or metric block must be specified. any [] no
eventhub_authorization_rule_id (Optional) Specifies the ID of an Event Hub Namespace Authorization Rule used to send Diagnostics Data. string null no
eventhub_name (Optional) Specifies the name of the Event Hub where Diagnostics Data should be sent. string null no
log_analytics_destination_type (Optional) Possible values are AzureDiagnostics and Dedicated. When set to Dedicated, logs sent to a Log Analytics workspace will go into resource specific tables, instead of the legacy AzureDiagnostics table. string "AzureDiagnostics" no
log_analytics_workspace_id (Optional) Specifies the ID of a Log Analytics Workspace where Diagnostics Data should be sent. string null no
metric (Optional) One or more metric blocks, At least one enabled_log or metric block must be specified. any [] no
name (Required) Specifies the name of the Diagnostic Setting. Changing this forces a new resource to be created. string n/a yes
partner_solution_id (Optional) The ID of the market partner solution where Diagnostics Data should be sent. For potential partner integrations string null no
storage_account_id (Optional) The ID of the Storage Account where logs should be sent. string null no
target_resource_id (Required) The ID of an existing Resource on which to configure Diagnostic Settings. Changing this forces a new resource to be created. string n/a yes

Outputs

Name Description
id The ID of the Diagnostic Setting.