azure.monitoring.LogzSubAccountTagRule

Manages a Logz Sub Account Tag Rule.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
    {
        Location = "West Europe",
    });

    var exampleLogzMonitor = new Azure.Monitoring.LogzMonitor("exampleLogzMonitor", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        Plan = new Azure.Monitoring.Inputs.LogzMonitorPlanArgs
        {
            BillingCycle = "MONTHLY",
            EffectiveDate = "2022-06-06T00:00:00Z",
            UsageType = "COMMITTED",
        },
        User = new Azure.Monitoring.Inputs.LogzMonitorUserArgs
        {
            Email = "user@example.com",
            FirstName = "Example",
            LastName = "User",
            PhoneNumber = "+12313803556",
        },
    });

    var exampleLogzSubAccount = new Azure.Monitoring.LogzSubAccount("exampleLogzSubAccount", new()
    {
        LogzMonitorId = exampleLogzMonitor.Id,
        User = new Azure.Monitoring.Inputs.LogzSubAccountUserArgs
        {
            Email = exampleLogzMonitor.User.Apply(user => user.Email),
            FirstName = exampleLogzMonitor.User.Apply(user => user.FirstName),
            LastName = exampleLogzMonitor.User.Apply(user => user.LastName),
            PhoneNumber = exampleLogzMonitor.User.Apply(user => user.PhoneNumber),
        },
    });

    var exampleLogzSubAccountTagRule = new Azure.Monitoring.LogzSubAccountTagRule("exampleLogzSubAccountTagRule", new()
    {
        LogzSubAccountId = exampleLogzSubAccount.Id,
        SendAadLogs = true,
        SendActivityLogs = true,
        SendSubscriptionLogs = true,
        TagFilters = new[]
        {
            new Azure.Monitoring.Inputs.LogzSubAccountTagRuleTagFilterArgs
            {
                Name = "name1",
                Action = "Include",
                Value = "value1",
            },
            new Azure.Monitoring.Inputs.LogzSubAccountTagRuleTagFilterArgs
            {
                Name = "name2",
                Action = "Exclude",
                Value = "value2",
            },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/monitoring"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleLogzMonitor, err := monitoring.NewLogzMonitor(ctx, "exampleLogzMonitor", &monitoring.LogzMonitorArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			Plan: &monitoring.LogzMonitorPlanArgs{
				BillingCycle:  pulumi.String("MONTHLY"),
				EffectiveDate: pulumi.String("2022-06-06T00:00:00Z"),
				UsageType:     pulumi.String("COMMITTED"),
			},
			User: &monitoring.LogzMonitorUserArgs{
				Email:       pulumi.String("user@example.com"),
				FirstName:   pulumi.String("Example"),
				LastName:    pulumi.String("User"),
				PhoneNumber: pulumi.String("+12313803556"),
			},
		})
		if err != nil {
			return err
		}
		exampleLogzSubAccount, err := monitoring.NewLogzSubAccount(ctx, "exampleLogzSubAccount", &monitoring.LogzSubAccountArgs{
			LogzMonitorId: exampleLogzMonitor.ID(),
			User: &monitoring.LogzSubAccountUserArgs{
				Email: exampleLogzMonitor.User.ApplyT(func(user monitoring.LogzMonitorUser) (*string, error) {
					return &user.Email, nil
				}).(pulumi.StringPtrOutput),
				FirstName: exampleLogzMonitor.User.ApplyT(func(user monitoring.LogzMonitorUser) (*string, error) {
					return &user.FirstName, nil
				}).(pulumi.StringPtrOutput),
				LastName: exampleLogzMonitor.User.ApplyT(func(user monitoring.LogzMonitorUser) (*string, error) {
					return &user.LastName, nil
				}).(pulumi.StringPtrOutput),
				PhoneNumber: exampleLogzMonitor.User.ApplyT(func(user monitoring.LogzMonitorUser) (*string, error) {
					return &user.PhoneNumber, nil
				}).(pulumi.StringPtrOutput),
			},
		})
		if err != nil {
			return err
		}
		_, err = monitoring.NewLogzSubAccountTagRule(ctx, "exampleLogzSubAccountTagRule", &monitoring.LogzSubAccountTagRuleArgs{
			LogzSubAccountId:     exampleLogzSubAccount.ID(),
			SendAadLogs:          pulumi.Bool(true),
			SendActivityLogs:     pulumi.Bool(true),
			SendSubscriptionLogs: pulumi.Bool(true),
			TagFilters: monitoring.LogzSubAccountTagRuleTagFilterArray{
				&monitoring.LogzSubAccountTagRuleTagFilterArgs{
					Name:   pulumi.String("name1"),
					Action: pulumi.String("Include"),
					Value:  pulumi.String("value1"),
				},
				&monitoring.LogzSubAccountTagRuleTagFilterArgs{
					Name:   pulumi.String("name2"),
					Action: pulumi.String("Exclude"),
					Value:  pulumi.String("value2"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.monitoring.LogzMonitor;
import com.pulumi.azure.monitoring.LogzMonitorArgs;
import com.pulumi.azure.monitoring.inputs.LogzMonitorPlanArgs;
import com.pulumi.azure.monitoring.inputs.LogzMonitorUserArgs;
import com.pulumi.azure.monitoring.LogzSubAccount;
import com.pulumi.azure.monitoring.LogzSubAccountArgs;
import com.pulumi.azure.monitoring.inputs.LogzSubAccountUserArgs;
import com.pulumi.azure.monitoring.LogzSubAccountTagRule;
import com.pulumi.azure.monitoring.LogzSubAccountTagRuleArgs;
import com.pulumi.azure.monitoring.inputs.LogzSubAccountTagRuleTagFilterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
            .location("West Europe")
            .build());

        var exampleLogzMonitor = new LogzMonitor("exampleLogzMonitor", LogzMonitorArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .plan(LogzMonitorPlanArgs.builder()
                .billingCycle("MONTHLY")
                .effectiveDate("2022-06-06T00:00:00Z")
                .usageType("COMMITTED")
                .build())
            .user(LogzMonitorUserArgs.builder()
                .email("user@example.com")
                .firstName("Example")
                .lastName("User")
                .phoneNumber("+12313803556")
                .build())
            .build());

        var exampleLogzSubAccount = new LogzSubAccount("exampleLogzSubAccount", LogzSubAccountArgs.builder()        
            .logzMonitorId(exampleLogzMonitor.id())
            .user(LogzSubAccountUserArgs.builder()
                .email(exampleLogzMonitor.user().applyValue(user -> user.email()))
                .firstName(exampleLogzMonitor.user().applyValue(user -> user.firstName()))
                .lastName(exampleLogzMonitor.user().applyValue(user -> user.lastName()))
                .phoneNumber(exampleLogzMonitor.user().applyValue(user -> user.phoneNumber()))
                .build())
            .build());

        var exampleLogzSubAccountTagRule = new LogzSubAccountTagRule("exampleLogzSubAccountTagRule", LogzSubAccountTagRuleArgs.builder()        
            .logzSubAccountId(exampleLogzSubAccount.id())
            .sendAadLogs(true)
            .sendActivityLogs(true)
            .sendSubscriptionLogs(true)
            .tagFilters(            
                LogzSubAccountTagRuleTagFilterArgs.builder()
                    .name("name1")
                    .action("Include")
                    .value("value1")
                    .build(),
                LogzSubAccountTagRuleTagFilterArgs.builder()
                    .name("name2")
                    .action("Exclude")
                    .value("value2")
                    .build())
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_logz_monitor = azure.monitoring.LogzMonitor("exampleLogzMonitor",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    plan=azure.monitoring.LogzMonitorPlanArgs(
        billing_cycle="MONTHLY",
        effective_date="2022-06-06T00:00:00Z",
        usage_type="COMMITTED",
    ),
    user=azure.monitoring.LogzMonitorUserArgs(
        email="user@example.com",
        first_name="Example",
        last_name="User",
        phone_number="+12313803556",
    ))
example_logz_sub_account = azure.monitoring.LogzSubAccount("exampleLogzSubAccount",
    logz_monitor_id=example_logz_monitor.id,
    user=azure.monitoring.LogzSubAccountUserArgs(
        email=example_logz_monitor.user.email,
        first_name=example_logz_monitor.user.first_name,
        last_name=example_logz_monitor.user.last_name,
        phone_number=example_logz_monitor.user.phone_number,
    ))
example_logz_sub_account_tag_rule = azure.monitoring.LogzSubAccountTagRule("exampleLogzSubAccountTagRule",
    logz_sub_account_id=example_logz_sub_account.id,
    send_aad_logs=True,
    send_activity_logs=True,
    send_subscription_logs=True,
    tag_filters=[
        azure.monitoring.LogzSubAccountTagRuleTagFilterArgs(
            name="name1",
            action="Include",
            value="value1",
        ),
        azure.monitoring.LogzSubAccountTagRuleTagFilterArgs(
            name="name2",
            action="Exclude",
            value="value2",
        ),
    ])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleLogzMonitor = new azure.monitoring.LogzMonitor("exampleLogzMonitor", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    plan: {
        billingCycle: "MONTHLY",
        effectiveDate: "2022-06-06T00:00:00Z",
        usageType: "COMMITTED",
    },
    user: {
        email: "user@example.com",
        firstName: "Example",
        lastName: "User",
        phoneNumber: "+12313803556",
    },
});
const exampleLogzSubAccount = new azure.monitoring.LogzSubAccount("exampleLogzSubAccount", {
    logzMonitorId: exampleLogzMonitor.id,
    user: {
        email: exampleLogzMonitor.user.apply(user => user.email),
        firstName: exampleLogzMonitor.user.apply(user => user.firstName),
        lastName: exampleLogzMonitor.user.apply(user => user.lastName),
        phoneNumber: exampleLogzMonitor.user.apply(user => user.phoneNumber),
    },
});
const exampleLogzSubAccountTagRule = new azure.monitoring.LogzSubAccountTagRule("exampleLogzSubAccountTagRule", {
    logzSubAccountId: exampleLogzSubAccount.id,
    sendAadLogs: true,
    sendActivityLogs: true,
    sendSubscriptionLogs: true,
    tagFilters: [
        {
            name: "name1",
            action: "Include",
            value: "value1",
        },
        {
            name: "name2",
            action: "Exclude",
            value: "value2",
        },
    ],
});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleLogzMonitor:
    type: azure:monitoring:LogzMonitor
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      plan:
        billingCycle: MONTHLY
        effectiveDate: 2022-06-06T00:00:00Z
        usageType: COMMITTED
      user:
        email: user@example.com
        firstName: Example
        lastName: User
        phoneNumber: '+12313803556'
  exampleLogzSubAccount:
    type: azure:monitoring:LogzSubAccount
    properties:
      logzMonitorId: ${exampleLogzMonitor.id}
      user:
        email: ${exampleLogzMonitor.user.email}
        firstName: ${exampleLogzMonitor.user.firstName}
        lastName: ${exampleLogzMonitor.user.lastName}
        phoneNumber: ${exampleLogzMonitor.user.phoneNumber}
  exampleLogzSubAccountTagRule:
    type: azure:monitoring:LogzSubAccountTagRule
    properties:
      logzSubAccountId: ${exampleLogzSubAccount.id}
      sendAadLogs: true
      sendActivityLogs: true
      sendSubscriptionLogs: true
      tagFilters:
        - name: name1
          action: Include
          value: value1
        - name: name2
          action: Exclude
          value: value2

Create LogzSubAccountTagRule Resource

new LogzSubAccountTagRule(name: string, args: LogzSubAccountTagRuleArgs, opts?: CustomResourceOptions);
@overload
def LogzSubAccountTagRule(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          logz_sub_account_id: Optional[str] = None,
                          send_aad_logs: Optional[bool] = None,
                          send_activity_logs: Optional[bool] = None,
                          send_subscription_logs: Optional[bool] = None,
                          tag_filters: Optional[Sequence[LogzSubAccountTagRuleTagFilterArgs]] = None)
@overload
def LogzSubAccountTagRule(resource_name: str,
                          args: LogzSubAccountTagRuleArgs,
                          opts: Optional[ResourceOptions] = None)
func NewLogzSubAccountTagRule(ctx *Context, name string, args LogzSubAccountTagRuleArgs, opts ...ResourceOption) (*LogzSubAccountTagRule, error)
public LogzSubAccountTagRule(string name, LogzSubAccountTagRuleArgs args, CustomResourceOptions? opts = null)
public LogzSubAccountTagRule(String name, LogzSubAccountTagRuleArgs args)
public LogzSubAccountTagRule(String name, LogzSubAccountTagRuleArgs args, CustomResourceOptions options)
type: azure:monitoring:LogzSubAccountTagRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args LogzSubAccountTagRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args LogzSubAccountTagRuleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args LogzSubAccountTagRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args LogzSubAccountTagRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args LogzSubAccountTagRuleArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

LogzSubAccountTagRule Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The LogzSubAccountTagRule resource accepts the following input properties:

LogzSubAccountId string

The ID of the Logz Sub Account. Changing this forces a new Logz Sub Account Tag Rule to be created.

SendAadLogs bool

Whether AAD logs should be sent to the Monitor resource?

SendActivityLogs bool

Whether activity logs from this Logz Sub Account Tag Rule should be sent to the Monitor resource?

SendSubscriptionLogs bool

Whether subscription logs should be sent to the Monitor resource?

TagFilters List<LogzSubAccountTagRuleTagFilterArgs>

One or more (up to 10) tag_filter blocks as defined below.

LogzSubAccountId string

The ID of the Logz Sub Account. Changing this forces a new Logz Sub Account Tag Rule to be created.

SendAadLogs bool

Whether AAD logs should be sent to the Monitor resource?

SendActivityLogs bool

Whether activity logs from this Logz Sub Account Tag Rule should be sent to the Monitor resource?

SendSubscriptionLogs bool

Whether subscription logs should be sent to the Monitor resource?

TagFilters []LogzSubAccountTagRuleTagFilterArgs

One or more (up to 10) tag_filter blocks as defined below.

logzSubAccountId String

The ID of the Logz Sub Account. Changing this forces a new Logz Sub Account Tag Rule to be created.

sendAadLogs Boolean

Whether AAD logs should be sent to the Monitor resource?

sendActivityLogs Boolean

Whether activity logs from this Logz Sub Account Tag Rule should be sent to the Monitor resource?

sendSubscriptionLogs Boolean

Whether subscription logs should be sent to the Monitor resource?

tagFilters List<LogzSubAccountTagRuleTagFilterArgs>

One or more (up to 10) tag_filter blocks as defined below.

logzSubAccountId string

The ID of the Logz Sub Account. Changing this forces a new Logz Sub Account Tag Rule to be created.

sendAadLogs boolean

Whether AAD logs should be sent to the Monitor resource?

sendActivityLogs boolean

Whether activity logs from this Logz Sub Account Tag Rule should be sent to the Monitor resource?

sendSubscriptionLogs boolean

Whether subscription logs should be sent to the Monitor resource?

tagFilters LogzSubAccountTagRuleTagFilterArgs[]

One or more (up to 10) tag_filter blocks as defined below.

logz_sub_account_id str

The ID of the Logz Sub Account. Changing this forces a new Logz Sub Account Tag Rule to be created.

send_aad_logs bool

Whether AAD logs should be sent to the Monitor resource?

send_activity_logs bool

Whether activity logs from this Logz Sub Account Tag Rule should be sent to the Monitor resource?

send_subscription_logs bool

Whether subscription logs should be sent to the Monitor resource?

tag_filters Sequence[LogzSubAccountTagRuleTagFilterArgs]

One or more (up to 10) tag_filter blocks as defined below.

logzSubAccountId String

The ID of the Logz Sub Account. Changing this forces a new Logz Sub Account Tag Rule to be created.

sendAadLogs Boolean

Whether AAD logs should be sent to the Monitor resource?

sendActivityLogs Boolean

Whether activity logs from this Logz Sub Account Tag Rule should be sent to the Monitor resource?

sendSubscriptionLogs Boolean

Whether subscription logs should be sent to the Monitor resource?

tagFilters List<Property Map>

One or more (up to 10) tag_filter blocks as defined below.

Outputs

All input properties are implicitly available as output properties. Additionally, the LogzSubAccountTagRule resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing LogzSubAccountTagRule Resource

Get an existing LogzSubAccountTagRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: LogzSubAccountTagRuleState, opts?: CustomResourceOptions): LogzSubAccountTagRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        logz_sub_account_id: Optional[str] = None,
        send_aad_logs: Optional[bool] = None,
        send_activity_logs: Optional[bool] = None,
        send_subscription_logs: Optional[bool] = None,
        tag_filters: Optional[Sequence[LogzSubAccountTagRuleTagFilterArgs]] = None) -> LogzSubAccountTagRule
func GetLogzSubAccountTagRule(ctx *Context, name string, id IDInput, state *LogzSubAccountTagRuleState, opts ...ResourceOption) (*LogzSubAccountTagRule, error)
public static LogzSubAccountTagRule Get(string name, Input<string> id, LogzSubAccountTagRuleState? state, CustomResourceOptions? opts = null)
public static LogzSubAccountTagRule get(String name, Output<String> id, LogzSubAccountTagRuleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
LogzSubAccountId string

The ID of the Logz Sub Account. Changing this forces a new Logz Sub Account Tag Rule to be created.

SendAadLogs bool

Whether AAD logs should be sent to the Monitor resource?

SendActivityLogs bool

Whether activity logs from this Logz Sub Account Tag Rule should be sent to the Monitor resource?

SendSubscriptionLogs bool

Whether subscription logs should be sent to the Monitor resource?

TagFilters List<LogzSubAccountTagRuleTagFilterArgs>

One or more (up to 10) tag_filter blocks as defined below.

LogzSubAccountId string

The ID of the Logz Sub Account. Changing this forces a new Logz Sub Account Tag Rule to be created.

SendAadLogs bool

Whether AAD logs should be sent to the Monitor resource?

SendActivityLogs bool

Whether activity logs from this Logz Sub Account Tag Rule should be sent to the Monitor resource?

SendSubscriptionLogs bool

Whether subscription logs should be sent to the Monitor resource?

TagFilters []LogzSubAccountTagRuleTagFilterArgs

One or more (up to 10) tag_filter blocks as defined below.

logzSubAccountId String

The ID of the Logz Sub Account. Changing this forces a new Logz Sub Account Tag Rule to be created.

sendAadLogs Boolean

Whether AAD logs should be sent to the Monitor resource?

sendActivityLogs Boolean

Whether activity logs from this Logz Sub Account Tag Rule should be sent to the Monitor resource?

sendSubscriptionLogs Boolean

Whether subscription logs should be sent to the Monitor resource?

tagFilters List<LogzSubAccountTagRuleTagFilterArgs>

One or more (up to 10) tag_filter blocks as defined below.

logzSubAccountId string

The ID of the Logz Sub Account. Changing this forces a new Logz Sub Account Tag Rule to be created.

sendAadLogs boolean

Whether AAD logs should be sent to the Monitor resource?

sendActivityLogs boolean

Whether activity logs from this Logz Sub Account Tag Rule should be sent to the Monitor resource?

sendSubscriptionLogs boolean

Whether subscription logs should be sent to the Monitor resource?

tagFilters LogzSubAccountTagRuleTagFilterArgs[]

One or more (up to 10) tag_filter blocks as defined below.

logz_sub_account_id str

The ID of the Logz Sub Account. Changing this forces a new Logz Sub Account Tag Rule to be created.

send_aad_logs bool

Whether AAD logs should be sent to the Monitor resource?

send_activity_logs bool

Whether activity logs from this Logz Sub Account Tag Rule should be sent to the Monitor resource?

send_subscription_logs bool

Whether subscription logs should be sent to the Monitor resource?

tag_filters Sequence[LogzSubAccountTagRuleTagFilterArgs]

One or more (up to 10) tag_filter blocks as defined below.

logzSubAccountId String

The ID of the Logz Sub Account. Changing this forces a new Logz Sub Account Tag Rule to be created.

sendAadLogs Boolean

Whether AAD logs should be sent to the Monitor resource?

sendActivityLogs Boolean

Whether activity logs from this Logz Sub Account Tag Rule should be sent to the Monitor resource?

sendSubscriptionLogs Boolean

Whether subscription logs should be sent to the Monitor resource?

tagFilters List<Property Map>

One or more (up to 10) tag_filter blocks as defined below.

Supporting Types

LogzSubAccountTagRuleTagFilter

Action string

The action is used to limit logs collection to include or exclude Azure resources with specific tags. Possible values are Include and Exclude. Note that the Exclude takes priority over the Include.

Name string

The name of the tag to match.

Value string

The value of the tag to match.

Action string

The action is used to limit logs collection to include or exclude Azure resources with specific tags. Possible values are Include and Exclude. Note that the Exclude takes priority over the Include.

Name string

The name of the tag to match.

Value string

The value of the tag to match.

action String

The action is used to limit logs collection to include or exclude Azure resources with specific tags. Possible values are Include and Exclude. Note that the Exclude takes priority over the Include.

name String

The name of the tag to match.

value String

The value of the tag to match.

action string

The action is used to limit logs collection to include or exclude Azure resources with specific tags. Possible values are Include and Exclude. Note that the Exclude takes priority over the Include.

name string

The name of the tag to match.

value string

The value of the tag to match.

action str

The action is used to limit logs collection to include or exclude Azure resources with specific tags. Possible values are Include and Exclude. Note that the Exclude takes priority over the Include.

name str

The name of the tag to match.

value str

The value of the tag to match.

action String

The action is used to limit logs collection to include or exclude Azure resources with specific tags. Possible values are Include and Exclude. Note that the Exclude takes priority over the Include.

name String

The name of the tag to match.

value String

The value of the tag to match.

Import

Logz Sub Account Tag Rules can be imported using the resource id, e.g.

 $ pulumi import azure:monitoring/logzSubAccountTagRule:LogzSubAccountTagRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Logz/monitors/monitor1/accounts/subAccount1/tagRules/ruleSet1

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.