We recommend using Azure Native.
azure.newrelic.TagRule
Explore with Pulumi AI
Manages an Azure Native New Relic Tag Rule.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "East US",
});
const exampleMonitor = new azure.newrelic.Monitor("example", {
name: "example-nrm",
resourceGroupName: example.name,
location: example.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("example", {
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",
}],
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="East US")
example_monitor = azure.newrelic.Monitor("example",
name="example-nrm",
resource_group_name=example.name,
location=example.location,
plan={
"effective_date": "2023-06-06T00:00:00Z",
},
user={
"email": "user@example.com",
"first_name": "Example",
"last_name": "User",
"phone_number": "+12313803556",
})
example_tag_rule = azure.newrelic.TagRule("example",
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=[{
"name": "key",
"action": "Include",
"value": "value",
}],
metric_tag_filters=[{
"name": "key",
"action": "Exclude",
"value": "value",
}])
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/newrelic"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("East US"),
})
if err != nil {
return err
}
exampleMonitor, err := newrelic.NewMonitor(ctx, "example", &newrelic.MonitorArgs{
Name: pulumi.String("example-nrm"),
ResourceGroupName: example.Name,
Location: example.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, "example", &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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "East US",
});
var exampleMonitor = new Azure.NewRelic.Monitor("example", new()
{
Name = "example-nrm",
ResourceGroupName = example.Name,
Location = example.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("example", 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 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("East US")
.build());
var exampleMonitor = new Monitor("exampleMonitor", MonitorArgs.builder()
.name("example-nrm")
.resourceGroupName(example.name())
.location(example.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());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: East US
exampleMonitor:
type: azure:newrelic:Monitor
name: example
properties:
name: example-nrm
resourceGroupName: ${example.name}
location: ${example.location}
plan:
effectiveDate: 2023-06-06T00:00:00Z
user:
email: user@example.com
firstName: Example
lastName: User
phoneNumber: '+12313803556'
exampleTagRule:
type: azure:newrelic:TagRule
name: example
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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TagRule(name: string, args: TagRuleArgs, opts?: CustomResourceOptions);
@overload
def TagRule(resource_name: str,
args: TagRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TagRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
monitor_id: Optional[str] = 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,
subscription_log_enabled: Optional[bool] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var tagRuleResource = new Azure.NewRelic.TagRule("tagRuleResource", new()
{
MonitorId = "string",
ActivityLogEnabled = false,
AzureActiveDirectoryLogEnabled = false,
LogTagFilters = new[]
{
new Azure.NewRelic.Inputs.TagRuleLogTagFilterArgs
{
Action = "string",
Name = "string",
Value = "string",
},
},
MetricEnabled = false,
MetricTagFilters = new[]
{
new Azure.NewRelic.Inputs.TagRuleMetricTagFilterArgs
{
Action = "string",
Name = "string",
Value = "string",
},
},
SubscriptionLogEnabled = false,
});
example, err := newrelic.NewTagRule(ctx, "tagRuleResource", &newrelic.TagRuleArgs{
MonitorId: pulumi.String("string"),
ActivityLogEnabled: pulumi.Bool(false),
AzureActiveDirectoryLogEnabled: pulumi.Bool(false),
LogTagFilters: newrelic.TagRuleLogTagFilterArray{
&newrelic.TagRuleLogTagFilterArgs{
Action: pulumi.String("string"),
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
MetricEnabled: pulumi.Bool(false),
MetricTagFilters: newrelic.TagRuleMetricTagFilterArray{
&newrelic.TagRuleMetricTagFilterArgs{
Action: pulumi.String("string"),
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
SubscriptionLogEnabled: pulumi.Bool(false),
})
var tagRuleResource = new TagRule("tagRuleResource", TagRuleArgs.builder()
.monitorId("string")
.activityLogEnabled(false)
.azureActiveDirectoryLogEnabled(false)
.logTagFilters(TagRuleLogTagFilterArgs.builder()
.action("string")
.name("string")
.value("string")
.build())
.metricEnabled(false)
.metricTagFilters(TagRuleMetricTagFilterArgs.builder()
.action("string")
.name("string")
.value("string")
.build())
.subscriptionLogEnabled(false)
.build());
tag_rule_resource = azure.newrelic.TagRule("tagRuleResource",
monitor_id="string",
activity_log_enabled=False,
azure_active_directory_log_enabled=False,
log_tag_filters=[{
"action": "string",
"name": "string",
"value": "string",
}],
metric_enabled=False,
metric_tag_filters=[{
"action": "string",
"name": "string",
"value": "string",
}],
subscription_log_enabled=False)
const tagRuleResource = new azure.newrelic.TagRule("tagRuleResource", {
monitorId: "string",
activityLogEnabled: false,
azureActiveDirectoryLogEnabled: false,
logTagFilters: [{
action: "string",
name: "string",
value: "string",
}],
metricEnabled: false,
metricTagFilters: [{
action: "string",
name: "string",
value: "string",
}],
subscriptionLogEnabled: false,
});
type: azure:newrelic:TagRule
properties:
activityLogEnabled: false
azureActiveDirectoryLogEnabled: false
logTagFilters:
- action: string
name: string
value: string
metricEnabled: false
metricTagFilters:
- action: string
name: string
value: string
monitorId: string
subscriptionLogEnabled: false
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TagRule resource accepts the following input properties:
- Monitor
Id 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.
- Activity
Log boolEnabled - Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to
false
. - Azure
Active boolDirectory Log Enabled - Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to
false
. - Log
Tag List<TagFilters Rule Log Tag Filter> - 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 List<TagFilters Rule Metric Tag Filter> - A
metric_tag_filter
block as defined below. - Subscription
Log boolEnabled - Whether subscription logs should be sent for the Monitor resource. Defaults to
false
.
- Monitor
Id 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.
- Activity
Log boolEnabled - Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to
false
. - Azure
Active boolDirectory Log Enabled - Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to
false
. - Log
Tag []TagFilters Rule Log Tag Filter Args - 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 []TagFilters Rule Metric Tag Filter Args - A
metric_tag_filter
block as defined below. - Subscription
Log boolEnabled - Whether subscription logs should be sent for the Monitor resource. Defaults to
false
.
- monitor
Id 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.
- activity
Log BooleanEnabled - Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to
false
. - azure
Active BooleanDirectory Log Enabled - Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to
false
. - log
Tag List<TagFilters Rule Log Tag Filter> - A
log_tag_filter
block as defined below. - metric
Enabled Boolean - Whether metrics should be sent for the Monitor resource. Defaults to
false
. - metric
Tag List<TagFilters Rule Metric Tag Filter> - A
metric_tag_filter
block as defined below. - subscription
Log BooleanEnabled - Whether subscription logs should be sent for the Monitor resource. Defaults to
false
.
- monitor
Id 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.
- activity
Log booleanEnabled - Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to
false
. - azure
Active booleanDirectory Log Enabled - Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to
false
. - log
Tag TagFilters Rule Log Tag Filter[] - A
log_tag_filter
block as defined below. - metric
Enabled boolean - Whether metrics should be sent for the Monitor resource. Defaults to
false
. - metric
Tag TagFilters Rule Metric Tag Filter[] - A
metric_tag_filter
block as defined below. - subscription
Log booleanEnabled - 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_ boolenabled - Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to
false
. - azure_
active_ booldirectory_ log_ enabled - Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to
false
. - log_
tag_ Sequence[Tagfilters Rule Log Tag Filter Args] - 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_ Sequence[Tagfilters Rule Metric Tag Filter Args] - A
metric_tag_filter
block as defined below. - subscription_
log_ boolenabled - Whether subscription logs should be sent for the Monitor resource. Defaults to
false
.
- monitor
Id 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.
- activity
Log BooleanEnabled - Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to
false
. - azure
Active BooleanDirectory Log Enabled - Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to
false
. - log
Tag List<Property Map>Filters - A
log_tag_filter
block as defined below. - metric
Enabled Boolean - Whether metrics should be sent for the Monitor resource. Defaults to
false
. - metric
Tag List<Property Map>Filters - A
metric_tag_filter
block as defined below. - subscription
Log BooleanEnabled - 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.
- Activity
Log boolEnabled - Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to
false
. - Azure
Active boolDirectory Log Enabled - Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to
false
. - Log
Tag List<TagFilters Rule Log Tag Filter> - 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 List<TagFilters Rule Metric Tag Filter> - A
metric_tag_filter
block as defined below. - Monitor
Id 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.
- Subscription
Log boolEnabled - Whether subscription logs should be sent for the Monitor resource. Defaults to
false
.
- Activity
Log boolEnabled - Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to
false
. - Azure
Active boolDirectory Log Enabled - Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to
false
. - Log
Tag []TagFilters Rule Log Tag Filter Args - 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 []TagFilters Rule Metric Tag Filter Args - A
metric_tag_filter
block as defined below. - Monitor
Id 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.
- Subscription
Log boolEnabled - Whether subscription logs should be sent for the Monitor resource. Defaults to
false
.
- activity
Log BooleanEnabled - Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to
false
. - azure
Active BooleanDirectory Log Enabled - Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to
false
. - log
Tag List<TagFilters Rule Log Tag Filter> - A
log_tag_filter
block as defined below. - metric
Enabled Boolean - Whether metrics should be sent for the Monitor resource. Defaults to
false
. - metric
Tag List<TagFilters Rule Metric Tag Filter> - A
metric_tag_filter
block as defined below. - monitor
Id 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.
- subscription
Log BooleanEnabled - Whether subscription logs should be sent for the Monitor resource. Defaults to
false
.
- activity
Log booleanEnabled - Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to
false
. - azure
Active booleanDirectory Log Enabled - Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to
false
. - log
Tag TagFilters Rule Log Tag Filter[] - A
log_tag_filter
block as defined below. - metric
Enabled boolean - Whether metrics should be sent for the Monitor resource. Defaults to
false
. - metric
Tag TagFilters Rule Metric Tag Filter[] - A
metric_tag_filter
block as defined below. - monitor
Id 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.
- subscription
Log booleanEnabled - Whether subscription logs should be sent for the Monitor resource. Defaults to
false
.
- activity_
log_ boolenabled - Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to
false
. - azure_
active_ booldirectory_ log_ enabled - Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to
false
. - log_
tag_ Sequence[Tagfilters Rule Log Tag Filter Args] - 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_ Sequence[Tagfilters Rule Metric Tag Filter Args] - 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_ boolenabled - Whether subscription logs should be sent for the Monitor resource. Defaults to
false
.
- activity
Log BooleanEnabled - Whether activity logs from Azure resources should be sent for the Monitor resource. Defaults to
false
. - azure
Active BooleanDirectory Log Enabled - Whether Azure Active Directory logs should be sent for the Monitor resource. Defaults to
false
. - log
Tag List<Property Map>Filters - A
log_tag_filter
block as defined below. - metric
Enabled Boolean - Whether metrics should be sent for the Monitor resource. Defaults to
false
. - metric
Tag List<Property Map>Filters - A
metric_tag_filter
block as defined below. - monitor
Id 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.
- subscription
Log BooleanEnabled - Whether subscription logs should be sent for the Monitor resource. Defaults to
false
.
Supporting Types
TagRuleLogTagFilter, TagRuleLogTagFilterArgs
TagRuleMetricTagFilter, TagRuleMetricTagFilterArgs
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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.