Azure Logz Tag Rule
This page shows how to write Terraform for Logz Tag Rule and write them securely.
azurerm_logz_tag_rule (Terraform)
The Tag Rule in Logz can be configured in Terraform with the resource name azurerm_logz_tag_rule
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
The following arguments are supported:
logz_monitor_id
- (Required) The ID of the Logz Monitor. Changing this forces a new logz Tag Rule to be created.
tag_filter
- (Optional) One or more (up to 10)tag_filter
blocks as defined below.send_aad_logs
- (Optional) Whether AAD logs should be sent to the Monitor resource?send_activity_logs
- (Optional) Whether activity logs from Azure resources should be sent to the Monitor resource?send_subscription_logs
- (Optional) Whether subscription logs should be sent to the Monitor resource?
An tag_filter
block exports the following:
name
- (Required) The name of thistag_filter
.action
- (Required) The action for a filtering tag. Possible values are "Include" and "Exclude" is allowed. Note that theExclude
takes priority over theInclude
.value
- (Optional) The value of thistag_filter
.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the logz Tag Rule.
Explanation in Terraform Registry
Manages a logz Tag Rule.
Azure Resource Manager Example
Azure Resource Manager code does not have the related resource.