Microsoft.Logz monitors/tagRules

ARM template resource definition

The monitors/tagRules resource type can be deployed to:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Logz/monitors/tagRules resource, add the following JSON to your template.

{
  "type": "Microsoft.Logz/monitors/tagRules",
  "apiVersion": "2022-01-01-preview",
  "name": "string",
  "properties": {
    "logRules": {
      "filteringTags": [
        {
          "action": "string",
          "name": "string",
          "value": "string"
        }
      ],
      "sendAadLogs": "bool",
      "sendActivityLogs": "bool",
      "sendSubscriptionLogs": "bool"
    }
  }
}

Property values

monitors/tagRules

Name Description Value
type The resource type 'Microsoft.Logz/monitors/tagRules'
apiVersion The resource api version '2022-01-01-preview'
name The resource name

See how to set names and types for child resources in JSON ARM templates.
string (required)
properties Definition of the properties for a TagRules resource. MonitoringTagRulesProperties

MonitoringTagRulesProperties

Name Description Value
logRules Set of rules for sending logs for the Monitor resource. LogRules

LogRules

Name Description Value
filteringTags List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. FilteringTag[]
sendAadLogs Flag specifying if AAD logs should be sent for the Monitor resource. bool
sendActivityLogs Flag specifying if activity logs from Azure resources should be sent for the Monitor resource. bool
sendSubscriptionLogs Flag specifying if subscription logs should be sent for the Monitor resource. bool

FilteringTag

Name Description Value
action Valid actions for a filtering tag. Exclusion takes priority over inclusion. 'Exclude'
'Include'
name The name (also known as the key) of the tag. string
value The value of the tag. string