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.

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).


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 this tag_filter.

  • action - (Required) The action for a filtering tag. Possible values are "Include" and "Exclude" is allowed. Note that the Exclude takes priority over the Include.

  • value - (Optional) The value of this tag_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.

Frequently asked questions

What is Azure Logz Tag Rule?

Azure Logz Tag Rule is a resource for Logz of Microsoft Azure. Settings can be wrote in Terraform.


Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.