1. Packages
  2. Azure Classic
  3. API Docs
  4. newrelic
  5. TagRule

We recommend using Azure Native.

Azure Classic v5.67.0 published on Wednesday, Feb 21, 2024 by Pulumi

azure.newrelic.TagRule

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.67.0 published on Wednesday, Feb 21, 2024 by Pulumi

    Manages an Azure Native New Relic Tag Rule.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
        {
            Location = "East US",
        });
    
        var exampleMonitor = new Azure.NewRelic.Monitor("exampleMonitor", new()
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            Plan = new Azure.NewRelic.Inputs.MonitorPlanArgs
            {
                EffectiveDate = "2023-06-06T00:00:00Z",
            },
            User = new Azure.NewRelic.Inputs.MonitorUserArgs
            {
                Email = "user@example.com",
                FirstName = "Example",
                LastName = "User",
                PhoneNumber = "+12313803556",
            },
        });
    
        var exampleTagRule = new Azure.NewRelic.TagRule("exampleTagRule", new()
        {
            MonitorId = exampleMonitor.Id,
            AzureActiveDirectoryLogEnabled = true,
            ActivityLogEnabled = true,
            MetricEnabled = true,
            SubscriptionLogEnabled = true,
            LogTagFilters = new[]
            {
                new Azure.NewRelic.Inputs.TagRuleLogTagFilterArgs
                {
                    Name = "key",
                    Action = "Include",
                    Value = "value",
                },
            },
            MetricTagFilters = new[]
            {
                new Azure.NewRelic.Inputs.TagRuleMetricTagFilterArgs
                {
                    Name = "key",
                    Action = "Exclude",
                    Value = "value",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/newrelic"
    	"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("East US"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleMonitor, err := newrelic.NewMonitor(ctx, "exampleMonitor", &newrelic.MonitorArgs{
    			ResourceGroupName: exampleResourceGroup.Name,
    			Location:          exampleResourceGroup.Location,
    			Plan: &newrelic.MonitorPlanArgs{
    				EffectiveDate: pulumi.String("2023-06-06T00:00:00Z"),
    			},
    			User: &newrelic.MonitorUserArgs{
    				Email:       pulumi.String("user@example.com"),
    				FirstName:   pulumi.String("Example"),
    				LastName:    pulumi.String("User"),
    				PhoneNumber: pulumi.String("+12313803556"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = newrelic.NewTagRule(ctx, "exampleTagRule", &newrelic.TagRuleArgs{
    			MonitorId:                      exampleMonitor.ID(),
    			AzureActiveDirectoryLogEnabled: pulumi.Bool(true),
    			ActivityLogEnabled:             pulumi.Bool(true),
    			MetricEnabled:                  pulumi.Bool(true),
    			SubscriptionLogEnabled:         pulumi.Bool(true),
    			LogTagFilters: newrelic.TagRuleLogTagFilterArray{
    				&newrelic.TagRuleLogTagFilterArgs{
    					Name:   pulumi.String("key"),
    					Action: pulumi.String("Include"),
    					Value:  pulumi.String("value"),
    				},
    			},
    			MetricTagFilters: newrelic.TagRuleMetricTagFilterArray{
    				&newrelic.TagRuleMetricTagFilterArgs{
    					Name:   pulumi.String("key"),
    					Action: pulumi.String("Exclude"),
    					Value:  pulumi.String("value"),
    				},
    			},
    		})
    		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.newrelic.Monitor;
    import com.pulumi.azure.newrelic.MonitorArgs;
    import com.pulumi.azure.newrelic.inputs.MonitorPlanArgs;
    import com.pulumi.azure.newrelic.inputs.MonitorUserArgs;
    import com.pulumi.azure.newrelic.TagRule;
    import com.pulumi.azure.newrelic.TagRuleArgs;
    import com.pulumi.azure.newrelic.inputs.TagRuleLogTagFilterArgs;
    import com.pulumi.azure.newrelic.inputs.TagRuleMetricTagFilterArgs;
    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("East US")
                .build());
    
            var exampleMonitor = new Monitor("exampleMonitor", MonitorArgs.builder()        
                .resourceGroupName(exampleResourceGroup.name())
                .location(exampleResourceGroup.location())
                .plan(MonitorPlanArgs.builder()
                    .effectiveDate("2023-06-06T00:00:00Z")
                    .build())
                .user(MonitorUserArgs.builder()
                    .email("user@example.com")
                    .firstName("Example")
                    .lastName("User")
                    .phoneNumber("+12313803556")
                    .build())
                .build());
    
            var exampleTagRule = new TagRule("exampleTagRule", TagRuleArgs.builder()        
                .monitorId(exampleMonitor.id())
                .azureActiveDirectoryLogEnabled(true)
                .activityLogEnabled(true)
                .metricEnabled(true)
                .subscriptionLogEnabled(true)
                .logTagFilters(TagRuleLogTagFilterArgs.builder()
                    .name("key")
                    .action("Include")
                    .value("value")
                    .build())
                .metricTagFilters(TagRuleMetricTagFilterArgs.builder()
                    .name("key")
                    .action("Exclude")
                    .value("value")
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="East US")
    example_monitor = azure.newrelic.Monitor("exampleMonitor",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location,
        plan=azure.newrelic.MonitorPlanArgs(
            effective_date="2023-06-06T00:00:00Z",
        ),
        user=azure.newrelic.MonitorUserArgs(
            email="user@example.com",
            first_name="Example",
            last_name="User",
            phone_number="+12313803556",
        ))
    example_tag_rule = azure.newrelic.TagRule("exampleTagRule",
        monitor_id=example_monitor.id,
        azure_active_directory_log_enabled=True,
        activity_log_enabled=True,
        metric_enabled=True,
        subscription_log_enabled=True,
        log_tag_filters=[azure.newrelic.TagRuleLogTagFilterArgs(
            name="key",
            action="Include",
            value="value",
        )],
        metric_tag_filters=[azure.newrelic.TagRuleMetricTagFilterArgs(
            name="key",
            action="Exclude",
            value="value",
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "East US"});
    const exampleMonitor = new azure.newrelic.Monitor("exampleMonitor", {
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
        plan: {
            effectiveDate: "2023-06-06T00:00:00Z",
        },
        user: {
            email: "user@example.com",
            firstName: "Example",
            lastName: "User",
            phoneNumber: "+12313803556",
        },
    });
    const exampleTagRule = new azure.newrelic.TagRule("exampleTagRule", {
        monitorId: exampleMonitor.id,
        azureActiveDirectoryLogEnabled: true,
        activityLogEnabled: true,
        metricEnabled: true,
        subscriptionLogEnabled: true,
        logTagFilters: [{
            name: "key",
            action: "Include",
            value: "value",
        }],
        metricTagFilters: [{
            name: "key",
            action: "Exclude",
            value: "value",
        }],
    });
    
    resources:
      exampleResourceGroup:
        type: azure:core:ResourceGroup
        properties:
          location: East US
      exampleMonitor:
        type: azure:newrelic:Monitor
        properties:
          resourceGroupName: ${exampleResourceGroup.name}
          location: ${exampleResourceGroup.location}
          plan:
            effectiveDate: 2023-06-06T00:00:00Z
          user:
            email: user@example.com
            firstName: Example
            lastName: User
            phoneNumber: '+12313803556'
      exampleTagRule:
        type: azure:newrelic:TagRule
        properties:
          monitorId: ${exampleMonitor.id}
          azureActiveDirectoryLogEnabled: true
          activityLogEnabled: true
          metricEnabled: true
          subscriptionLogEnabled: true
          logTagFilters:
            - name: key
              action: Include
              value: value
          metricTagFilters:
            - name: key
              action: Exclude
              value: value
    

    Create TagRule Resource

    new TagRule(name: string, args: TagRuleArgs, opts?: CustomResourceOptions);
    @overload
    def TagRule(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                activity_log_enabled: Optional[bool] = None,
                azure_active_directory_log_enabled: Optional[bool] = None,
                log_tag_filters: Optional[Sequence[TagRuleLogTagFilterArgs]] = None,
                metric_enabled: Optional[bool] = None,
                metric_tag_filters: Optional[Sequence[TagRuleMetricTagFilterArgs]] = None,
                monitor_id: Optional[str] = None,
                subscription_log_enabled: Optional[bool] = None)
    @overload
    def TagRule(resource_name: str,
                args: TagRuleArgs,
                opts: Optional[ResourceOptions] = None)
    func NewTagRule(ctx *Context, name string, args TagRuleArgs, opts ...ResourceOption) (*TagRule, error)
    public TagRule(string name, TagRuleArgs args, CustomResourceOptions? opts = null)
    public TagRule(String name, TagRuleArgs args)
    public TagRule(String name, TagRuleArgs args, CustomResourceOptions options)
    
    type: azure:newrelic:TagRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args TagRuleArgs
    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 TagRuleArgs
    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 TagRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TagRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TagRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TagRule 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 TagRule resource accepts the following input properties:

    MonitorId string
    Specifies the ID of the New Relic Monitor this Tag Rule should be created within. Changing this forces a new Azure Native New Relic Tag Rule to be created.
    ActivityLogEnabled bool
    Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to false.
    AzureActiveDirectoryLogEnabled bool
    Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to false.
    LogTagFilters List<TagRuleLogTagFilter>
    A log_tag_filter block as defined below.
    MetricEnabled bool
    Whether metrics should be sent for the Monitor resource. Defaults to false.
    MetricTagFilters List<TagRuleMetricTagFilter>
    A metric_tag_filter block as defined below.
    SubscriptionLogEnabled bool
    Whether subscription logs should be sent for the Monitor resource. Defaults to false.
    MonitorId string
    Specifies the ID of the New Relic Monitor this Tag Rule should be created within. Changing this forces a new Azure Native New Relic Tag Rule to be created.
    ActivityLogEnabled bool
    Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to false.
    AzureActiveDirectoryLogEnabled bool
    Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to false.
    LogTagFilters []TagRuleLogTagFilterArgs
    A log_tag_filter block as defined below.
    MetricEnabled bool
    Whether metrics should be sent for the Monitor resource. Defaults to false.
    MetricTagFilters []TagRuleMetricTagFilterArgs
    A metric_tag_filter block as defined below.
    SubscriptionLogEnabled bool
    Whether subscription logs should be sent for the Monitor resource. Defaults to false.
    monitorId String
    Specifies the ID of the New Relic Monitor this Tag Rule should be created within. Changing this forces a new Azure Native New Relic Tag Rule to be created.
    activityLogEnabled Boolean
    Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to false.
    azureActiveDirectoryLogEnabled Boolean
    Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to false.
    logTagFilters List<TagRuleLogTagFilter>
    A log_tag_filter block as defined below.
    metricEnabled Boolean
    Whether metrics should be sent for the Monitor resource. Defaults to false.
    metricTagFilters List<TagRuleMetricTagFilter>
    A metric_tag_filter block as defined below.
    subscriptionLogEnabled Boolean
    Whether subscription logs should be sent for the Monitor resource. Defaults to false.
    monitorId string
    Specifies the ID of the New Relic Monitor this Tag Rule should be created within. Changing this forces a new Azure Native New Relic Tag Rule to be created.
    activityLogEnabled boolean
    Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to false.
    azureActiveDirectoryLogEnabled boolean
    Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to false.
    logTagFilters TagRuleLogTagFilter[]
    A log_tag_filter block as defined below.
    metricEnabled boolean
    Whether metrics should be sent for the Monitor resource. Defaults to false.
    metricTagFilters TagRuleMetricTagFilter[]
    A metric_tag_filter block as defined below.
    subscriptionLogEnabled boolean
    Whether subscription logs should be sent for the Monitor resource. Defaults to false.
    monitor_id str
    Specifies the ID of the New Relic Monitor this Tag Rule should be created within. Changing this forces a new Azure Native New Relic Tag Rule to be created.
    activity_log_enabled bool
    Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to false.
    azure_active_directory_log_enabled bool
    Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to false.
    log_tag_filters Sequence[TagRuleLogTagFilterArgs]
    A log_tag_filter block as defined below.
    metric_enabled bool
    Whether metrics should be sent for the Monitor resource. Defaults to false.
    metric_tag_filters Sequence[TagRuleMetricTagFilterArgs]
    A metric_tag_filter block as defined below.
    subscription_log_enabled bool
    Whether subscription logs should be sent for the Monitor resource. Defaults to false.
    monitorId String
    Specifies the ID of the New Relic Monitor this Tag Rule should be created within. Changing this forces a new Azure Native New Relic Tag Rule to be created.
    activityLogEnabled Boolean
    Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to false.
    azureActiveDirectoryLogEnabled Boolean
    Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to false.
    logTagFilters List<Property Map>
    A log_tag_filter block as defined below.
    metricEnabled Boolean
    Whether metrics should be sent for the Monitor resource. Defaults to false.
    metricTagFilters List<Property Map>
    A metric_tag_filter block as defined below.
    subscriptionLogEnabled Boolean
    Whether subscription logs should be sent for the Monitor resource. Defaults to false.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TagRule 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 TagRule Resource

    Get an existing TagRule 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?: TagRuleState, opts?: CustomResourceOptions): TagRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            activity_log_enabled: Optional[bool] = None,
            azure_active_directory_log_enabled: Optional[bool] = None,
            log_tag_filters: Optional[Sequence[TagRuleLogTagFilterArgs]] = None,
            metric_enabled: Optional[bool] = None,
            metric_tag_filters: Optional[Sequence[TagRuleMetricTagFilterArgs]] = None,
            monitor_id: Optional[str] = None,
            subscription_log_enabled: Optional[bool] = None) -> TagRule
    func GetTagRule(ctx *Context, name string, id IDInput, state *TagRuleState, opts ...ResourceOption) (*TagRule, error)
    public static TagRule Get(string name, Input<string> id, TagRuleState? state, CustomResourceOptions? opts = null)
    public static TagRule get(String name, Output<String> id, TagRuleState 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:
    ActivityLogEnabled bool
    Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to false.
    AzureActiveDirectoryLogEnabled bool
    Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to false.
    LogTagFilters List<TagRuleLogTagFilter>
    A log_tag_filter block as defined below.
    MetricEnabled bool
    Whether metrics should be sent for the Monitor resource. Defaults to false.
    MetricTagFilters List<TagRuleMetricTagFilter>
    A metric_tag_filter block as defined below.
    MonitorId string
    Specifies the ID of the New Relic Monitor this Tag Rule should be created within. Changing this forces a new Azure Native New Relic Tag Rule to be created.
    SubscriptionLogEnabled bool
    Whether subscription logs should be sent for the Monitor resource. Defaults to false.
    ActivityLogEnabled bool
    Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to false.
    AzureActiveDirectoryLogEnabled bool
    Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to false.
    LogTagFilters []TagRuleLogTagFilterArgs
    A log_tag_filter block as defined below.
    MetricEnabled bool
    Whether metrics should be sent for the Monitor resource. Defaults to false.
    MetricTagFilters []TagRuleMetricTagFilterArgs
    A metric_tag_filter block as defined below.
    MonitorId string
    Specifies the ID of the New Relic Monitor this Tag Rule should be created within. Changing this forces a new Azure Native New Relic Tag Rule to be created.
    SubscriptionLogEnabled bool
    Whether subscription logs should be sent for the Monitor resource. Defaults to false.
    activityLogEnabled Boolean
    Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to false.
    azureActiveDirectoryLogEnabled Boolean
    Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to false.
    logTagFilters List<TagRuleLogTagFilter>
    A log_tag_filter block as defined below.
    metricEnabled Boolean
    Whether metrics should be sent for the Monitor resource. Defaults to false.
    metricTagFilters List<TagRuleMetricTagFilter>
    A metric_tag_filter block as defined below.
    monitorId String
    Specifies the ID of the New Relic Monitor this Tag Rule should be created within. Changing this forces a new Azure Native New Relic Tag Rule to be created.
    subscriptionLogEnabled Boolean
    Whether subscription logs should be sent for the Monitor resource. Defaults to false.
    activityLogEnabled boolean
    Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to false.
    azureActiveDirectoryLogEnabled boolean
    Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to false.
    logTagFilters TagRuleLogTagFilter[]
    A log_tag_filter block as defined below.
    metricEnabled boolean
    Whether metrics should be sent for the Monitor resource. Defaults to false.
    metricTagFilters TagRuleMetricTagFilter[]
    A metric_tag_filter block as defined below.
    monitorId string
    Specifies the ID of the New Relic Monitor this Tag Rule should be created within. Changing this forces a new Azure Native New Relic Tag Rule to be created.
    subscriptionLogEnabled boolean
    Whether subscription logs should be sent for the Monitor resource. Defaults to false.
    activity_log_enabled bool
    Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to false.
    azure_active_directory_log_enabled bool
    Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to false.
    log_tag_filters Sequence[TagRuleLogTagFilterArgs]
    A log_tag_filter block as defined below.
    metric_enabled bool
    Whether metrics should be sent for the Monitor resource. Defaults to false.
    metric_tag_filters Sequence[TagRuleMetricTagFilterArgs]
    A metric_tag_filter block as defined below.
    monitor_id str
    Specifies the ID of the New Relic Monitor this Tag Rule should be created within. Changing this forces a new Azure Native New Relic Tag Rule to be created.
    subscription_log_enabled bool
    Whether subscription logs should be sent for the Monitor resource. Defaults to false.
    activityLogEnabled Boolean
    Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to false.
    azureActiveDirectoryLogEnabled Boolean
    Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to false.
    logTagFilters List<Property Map>
    A log_tag_filter block as defined below.
    metricEnabled Boolean
    Whether metrics should be sent for the Monitor resource. Defaults to false.
    metricTagFilters List<Property Map>
    A metric_tag_filter block as defined below.
    monitorId String
    Specifies the ID of the New Relic Monitor this Tag Rule should be created within. Changing this forces a new Azure Native New Relic Tag Rule to be created.
    subscriptionLogEnabled Boolean
    Whether subscription logs should be sent for the Monitor resource. Defaults to false.

    Supporting Types

    TagRuleLogTagFilter, TagRuleLogTagFilterArgs

    Action string
    Valid actions for a filtering tag. Possible values are Exclude and Include. Exclusion takes priority over inclusion.
    Name string
    Specifies the name (also known as the key) of the tag.
    Value string
    Specifies the value of the tag.
    Action string
    Valid actions for a filtering tag. Possible values are Exclude and Include. Exclusion takes priority over inclusion.
    Name string
    Specifies the name (also known as the key) of the tag.
    Value string
    Specifies the value of the tag.
    action String
    Valid actions for a filtering tag. Possible values are Exclude and Include. Exclusion takes priority over inclusion.
    name String
    Specifies the name (also known as the key) of the tag.
    value String
    Specifies the value of the tag.
    action string
    Valid actions for a filtering tag. Possible values are Exclude and Include. Exclusion takes priority over inclusion.
    name string
    Specifies the name (also known as the key) of the tag.
    value string
    Specifies the value of the tag.
    action str
    Valid actions for a filtering tag. Possible values are Exclude and Include. Exclusion takes priority over inclusion.
    name str
    Specifies the name (also known as the key) of the tag.
    value str
    Specifies the value of the tag.
    action String
    Valid actions for a filtering tag. Possible values are Exclude and Include. Exclusion takes priority over inclusion.
    name String
    Specifies the name (also known as the key) of the tag.
    value String
    Specifies the value of the tag.

    TagRuleMetricTagFilter, TagRuleMetricTagFilterArgs

    Action string
    Valid actions for a filtering tag. Possible values are Exclude and Include. Exclusion takes priority over inclusion.
    Name string
    Specifies the name (also known as the key) of the tag.
    Value string
    Specifies the value of the tag.
    Action string
    Valid actions for a filtering tag. Possible values are Exclude and Include. Exclusion takes priority over inclusion.
    Name string
    Specifies the name (also known as the key) of the tag.
    Value string
    Specifies the value of the tag.
    action String
    Valid actions for a filtering tag. Possible values are Exclude and Include. Exclusion takes priority over inclusion.
    name String
    Specifies the name (also known as the key) of the tag.
    value String
    Specifies the value of the tag.
    action string
    Valid actions for a filtering tag. Possible values are Exclude and Include. Exclusion takes priority over inclusion.
    name string
    Specifies the name (also known as the key) of the tag.
    value string
    Specifies the value of the tag.
    action str
    Valid actions for a filtering tag. Possible values are Exclude and Include. Exclusion takes priority over inclusion.
    name str
    Specifies the name (also known as the key) of the tag.
    value str
    Specifies the value of the tag.
    action String
    Valid actions for a filtering tag. Possible values are Exclude and Include. Exclusion takes priority over inclusion.
    name String
    Specifies the name (also known as the key) of the tag.
    value String
    Specifies the value of the tag.

    Import

    Azure Native New Relic Tag Rule can be imported using the resource id, e.g.

    $ pulumi import azure:newrelic/tagRule:TagRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/NewRelic.Observability/monitors/monitor1/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.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.67.0 published on Wednesday, Feb 21, 2024 by Pulumi