1. Packages
  2. Azure Native
  3. API Docs
  4. monitor
  5. ActivityLogAlert
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.monitor.ActivityLogAlert

Explore with Pulumi AI

An Activity Log Alert rule resource.

Uses Azure REST API version 2020-10-01.

Example Usage

Create or update an Activity Log Alert rule

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var activityLogAlert = new AzureNative.Monitor.ActivityLogAlert("activityLogAlert", new()
    {
        Actions = new AzureNative.Monitor.Inputs.ActionListArgs
        {
            ActionGroups = new[]
            {
                new AzureNative.Monitor.Inputs.ActionGroupArgs
                {
                    ActionGroupId = "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
                    WebhookProperties = 
                    {
                        { "sampleWebhookProperty", "SamplePropertyValue" },
                    },
                },
            },
        },
        ActivityLogAlertName = "SampleActivityLogAlertRule",
        Condition = new AzureNative.Monitor.Inputs.AlertRuleAllOfConditionArgs
        {
            AllOf = new[]
            {
                new AzureNative.Monitor.Inputs.AlertRuleAnyOfOrLeafConditionArgs
                {
                    Equals = "Administrative",
                    Field = "category",
                },
                new AzureNative.Monitor.Inputs.AlertRuleAnyOfOrLeafConditionArgs
                {
                    Equals = "Error",
                    Field = "level",
                },
            },
        },
        Description = "Description of sample Activity Log Alert rule.",
        Enabled = true,
        Location = "Global",
        ResourceGroupName = "MyResourceGroup",
        Scopes = new[]
        {
            "/subscriptions/187f412d-1758-44d9-b052-169e2564721d",
        },
        Tags = null,
    });

});
Copy
package main

import (
	monitor "github.com/pulumi/pulumi-azure-native-sdk/monitor/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := monitor.NewActivityLogAlert(ctx, "activityLogAlert", &monitor.ActivityLogAlertArgs{
			Actions: &monitor.ActionListArgs{
				ActionGroups: monitor.ActionGroupTypeArray{
					&monitor.ActionGroupTypeArgs{
						ActionGroupId: pulumi.String("/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup"),
						WebhookProperties: pulumi.StringMap{
							"sampleWebhookProperty": pulumi.String("SamplePropertyValue"),
						},
					},
				},
			},
			ActivityLogAlertName: pulumi.String("SampleActivityLogAlertRule"),
			Condition: &monitor.AlertRuleAllOfConditionArgs{
				AllOf: monitor.AlertRuleAnyOfOrLeafConditionArray{
					&monitor.AlertRuleAnyOfOrLeafConditionArgs{
						Equals: pulumi.String("Administrative"),
						Field:  pulumi.String("category"),
					},
					&monitor.AlertRuleAnyOfOrLeafConditionArgs{
						Equals: pulumi.String("Error"),
						Field:  pulumi.String("level"),
					},
				},
			},
			Description:       pulumi.String("Description of sample Activity Log Alert rule."),
			Enabled:           pulumi.Bool(true),
			Location:          pulumi.String("Global"),
			ResourceGroupName: pulumi.String("MyResourceGroup"),
			Scopes: pulumi.StringArray{
				pulumi.String("/subscriptions/187f412d-1758-44d9-b052-169e2564721d"),
			},
			Tags: pulumi.StringMap{},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.monitor.ActivityLogAlert;
import com.pulumi.azurenative.monitor.ActivityLogAlertArgs;
import com.pulumi.azurenative.monitor.inputs.ActionListArgs;
import com.pulumi.azurenative.monitor.inputs.AlertRuleAllOfConditionArgs;
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 activityLogAlert = new ActivityLogAlert("activityLogAlert", ActivityLogAlertArgs.builder()
            .actions(ActionListArgs.builder()
                .actionGroups(ActionGroupArgs.builder()
                    .actionGroupId("/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup")
                    .webhookProperties(Map.of("sampleWebhookProperty", "SamplePropertyValue"))
                    .build())
                .build())
            .activityLogAlertName("SampleActivityLogAlertRule")
            .condition(AlertRuleAllOfConditionArgs.builder()
                .allOf(                
                    AlertRuleAnyOfOrLeafConditionArgs.builder()
                        .equals("Administrative")
                        .field("category")
                        .build(),
                    AlertRuleAnyOfOrLeafConditionArgs.builder()
                        .equals("Error")
                        .field("level")
                        .build())
                .build())
            .description("Description of sample Activity Log Alert rule.")
            .enabled(true)
            .location("Global")
            .resourceGroupName("MyResourceGroup")
            .scopes("/subscriptions/187f412d-1758-44d9-b052-169e2564721d")
            .tags(Map.ofEntries(
            ))
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const activityLogAlert = new azure_native.monitor.ActivityLogAlert("activityLogAlert", {
    actions: {
        actionGroups: [{
            actionGroupId: "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
            webhookProperties: {
                sampleWebhookProperty: "SamplePropertyValue",
            },
        }],
    },
    activityLogAlertName: "SampleActivityLogAlertRule",
    condition: {
        allOf: [
            {
                equals: "Administrative",
                field: "category",
            },
            {
                equals: "Error",
                field: "level",
            },
        ],
    },
    description: "Description of sample Activity Log Alert rule.",
    enabled: true,
    location: "Global",
    resourceGroupName: "MyResourceGroup",
    scopes: ["/subscriptions/187f412d-1758-44d9-b052-169e2564721d"],
    tags: {},
});
Copy
import pulumi
import pulumi_azure_native as azure_native

activity_log_alert = azure_native.monitor.ActivityLogAlert("activityLogAlert",
    actions={
        "action_groups": [{
            "action_group_id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
            "webhook_properties": {
                "sampleWebhookProperty": "SamplePropertyValue",
            },
        }],
    },
    activity_log_alert_name="SampleActivityLogAlertRule",
    condition={
        "all_of": [
            {
                "equals": "Administrative",
                "field": "category",
            },
            {
                "equals": "Error",
                "field": "level",
            },
        ],
    },
    description="Description of sample Activity Log Alert rule.",
    enabled=True,
    location="Global",
    resource_group_name="MyResourceGroup",
    scopes=["/subscriptions/187f412d-1758-44d9-b052-169e2564721d"],
    tags={})
Copy
resources:
  activityLogAlert:
    type: azure-native:monitor:ActivityLogAlert
    properties:
      actions:
        actionGroups:
          - actionGroupId: /subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup
            webhookProperties:
              sampleWebhookProperty: SamplePropertyValue
      activityLogAlertName: SampleActivityLogAlertRule
      condition:
        allOf:
          - equals: Administrative
            field: category
          - equals: Error
            field: level
      description: Description of sample Activity Log Alert rule.
      enabled: true
      location: Global
      resourceGroupName: MyResourceGroup
      scopes:
        - /subscriptions/187f412d-1758-44d9-b052-169e2564721d
      tags: {}
Copy

Create or update an Activity Log Alert rule with 'anyOf' condition

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var activityLogAlert = new AzureNative.Monitor.ActivityLogAlert("activityLogAlert", new()
    {
        Actions = new AzureNative.Monitor.Inputs.ActionListArgs
        {
            ActionGroups = new[]
            {
                new AzureNative.Monitor.Inputs.ActionGroupArgs
                {
                    ActionGroupId = "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
                    WebhookProperties = 
                    {
                        { "sampleWebhookProperty", "SamplePropertyValue" },
                    },
                },
            },
        },
        ActivityLogAlertName = "SampleActivityLogAlertRuleWithAnyOfCondition",
        Condition = new AzureNative.Monitor.Inputs.AlertRuleAllOfConditionArgs
        {
            AllOf = new[]
            {
                new AzureNative.Monitor.Inputs.AlertRuleAnyOfOrLeafConditionArgs
                {
                    Equals = "ServiceHealth",
                    Field = "category",
                },
                new AzureNative.Monitor.Inputs.AlertRuleAnyOfOrLeafConditionArgs
                {
                    AnyOf = new[]
                    {
                        new AzureNative.Monitor.Inputs.AlertRuleLeafConditionArgs
                        {
                            Equals = "Incident",
                            Field = "properties.incidentType",
                        },
                        new AzureNative.Monitor.Inputs.AlertRuleLeafConditionArgs
                        {
                            Equals = "Maintenance",
                            Field = "properties.incidentType",
                        },
                    },
                },
            },
        },
        Description = "Description of sample Activity Log Alert rule with 'anyOf' condition.",
        Enabled = true,
        Location = "Global",
        ResourceGroupName = "MyResourceGroup",
        Scopes = new[]
        {
            "subscriptions/187f412d-1758-44d9-b052-169e2564721d",
        },
        Tags = null,
    });

});
Copy
package main

import (
	monitor "github.com/pulumi/pulumi-azure-native-sdk/monitor/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := monitor.NewActivityLogAlert(ctx, "activityLogAlert", &monitor.ActivityLogAlertArgs{
			Actions: &monitor.ActionListArgs{
				ActionGroups: monitor.ActionGroupTypeArray{
					&monitor.ActionGroupTypeArgs{
						ActionGroupId: pulumi.String("/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup"),
						WebhookProperties: pulumi.StringMap{
							"sampleWebhookProperty": pulumi.String("SamplePropertyValue"),
						},
					},
				},
			},
			ActivityLogAlertName: pulumi.String("SampleActivityLogAlertRuleWithAnyOfCondition"),
			Condition: &monitor.AlertRuleAllOfConditionArgs{
				AllOf: monitor.AlertRuleAnyOfOrLeafConditionArray{
					&monitor.AlertRuleAnyOfOrLeafConditionArgs{
						Equals: pulumi.String("ServiceHealth"),
						Field:  pulumi.String("category"),
					},
					&monitor.AlertRuleAnyOfOrLeafConditionArgs{
						AnyOf: monitor.AlertRuleLeafConditionArray{
							&monitor.AlertRuleLeafConditionArgs{
								Equals: pulumi.String("Incident"),
								Field:  pulumi.String("properties.incidentType"),
							},
							&monitor.AlertRuleLeafConditionArgs{
								Equals: pulumi.String("Maintenance"),
								Field:  pulumi.String("properties.incidentType"),
							},
						},
					},
				},
			},
			Description:       pulumi.String("Description of sample Activity Log Alert rule with 'anyOf' condition."),
			Enabled:           pulumi.Bool(true),
			Location:          pulumi.String("Global"),
			ResourceGroupName: pulumi.String("MyResourceGroup"),
			Scopes: pulumi.StringArray{
				pulumi.String("subscriptions/187f412d-1758-44d9-b052-169e2564721d"),
			},
			Tags: pulumi.StringMap{},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.monitor.ActivityLogAlert;
import com.pulumi.azurenative.monitor.ActivityLogAlertArgs;
import com.pulumi.azurenative.monitor.inputs.ActionListArgs;
import com.pulumi.azurenative.monitor.inputs.AlertRuleAllOfConditionArgs;
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 activityLogAlert = new ActivityLogAlert("activityLogAlert", ActivityLogAlertArgs.builder()
            .actions(ActionListArgs.builder()
                .actionGroups(ActionGroupArgs.builder()
                    .actionGroupId("/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup")
                    .webhookProperties(Map.of("sampleWebhookProperty", "SamplePropertyValue"))
                    .build())
                .build())
            .activityLogAlertName("SampleActivityLogAlertRuleWithAnyOfCondition")
            .condition(AlertRuleAllOfConditionArgs.builder()
                .allOf(                
                    AlertRuleAnyOfOrLeafConditionArgs.builder()
                        .equals("ServiceHealth")
                        .field("category")
                        .build(),
                    AlertRuleAnyOfOrLeafConditionArgs.builder()
                        .anyOf(                        
                            AlertRuleLeafConditionArgs.builder()
                                .equals("Incident")
                                .field("properties.incidentType")
                                .build(),
                            AlertRuleLeafConditionArgs.builder()
                                .equals("Maintenance")
                                .field("properties.incidentType")
                                .build())
                        .build())
                .build())
            .description("Description of sample Activity Log Alert rule with 'anyOf' condition.")
            .enabled(true)
            .location("Global")
            .resourceGroupName("MyResourceGroup")
            .scopes("subscriptions/187f412d-1758-44d9-b052-169e2564721d")
            .tags(Map.ofEntries(
            ))
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const activityLogAlert = new azure_native.monitor.ActivityLogAlert("activityLogAlert", {
    actions: {
        actionGroups: [{
            actionGroupId: "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
            webhookProperties: {
                sampleWebhookProperty: "SamplePropertyValue",
            },
        }],
    },
    activityLogAlertName: "SampleActivityLogAlertRuleWithAnyOfCondition",
    condition: {
        allOf: [
            {
                equals: "ServiceHealth",
                field: "category",
            },
            {
                anyOf: [
                    {
                        equals: "Incident",
                        field: "properties.incidentType",
                    },
                    {
                        equals: "Maintenance",
                        field: "properties.incidentType",
                    },
                ],
            },
        ],
    },
    description: "Description of sample Activity Log Alert rule with 'anyOf' condition.",
    enabled: true,
    location: "Global",
    resourceGroupName: "MyResourceGroup",
    scopes: ["subscriptions/187f412d-1758-44d9-b052-169e2564721d"],
    tags: {},
});
Copy
import pulumi
import pulumi_azure_native as azure_native

activity_log_alert = azure_native.monitor.ActivityLogAlert("activityLogAlert",
    actions={
        "action_groups": [{
            "action_group_id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
            "webhook_properties": {
                "sampleWebhookProperty": "SamplePropertyValue",
            },
        }],
    },
    activity_log_alert_name="SampleActivityLogAlertRuleWithAnyOfCondition",
    condition={
        "all_of": [
            {
                "equals": "ServiceHealth",
                "field": "category",
            },
            {
                "any_of": [
                    {
                        "equals": "Incident",
                        "field": "properties.incidentType",
                    },
                    {
                        "equals": "Maintenance",
                        "field": "properties.incidentType",
                    },
                ],
            },
        ],
    },
    description="Description of sample Activity Log Alert rule with 'anyOf' condition.",
    enabled=True,
    location="Global",
    resource_group_name="MyResourceGroup",
    scopes=["subscriptions/187f412d-1758-44d9-b052-169e2564721d"],
    tags={})
Copy
resources:
  activityLogAlert:
    type: azure-native:monitor:ActivityLogAlert
    properties:
      actions:
        actionGroups:
          - actionGroupId: /subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup
            webhookProperties:
              sampleWebhookProperty: SamplePropertyValue
      activityLogAlertName: SampleActivityLogAlertRuleWithAnyOfCondition
      condition:
        allOf:
          - equals: ServiceHealth
            field: category
          - anyOf:
              - equals: Incident
                field: properties.incidentType
              - equals: Maintenance
                field: properties.incidentType
      description: Description of sample Activity Log Alert rule with 'anyOf' condition.
      enabled: true
      location: Global
      resourceGroupName: MyResourceGroup
      scopes:
        - subscriptions/187f412d-1758-44d9-b052-169e2564721d
      tags: {}
Copy

Create or update an Activity Log Alert rule with 'containsAny'

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var activityLogAlert = new AzureNative.Monitor.ActivityLogAlert("activityLogAlert", new()
    {
        Actions = new AzureNative.Monitor.Inputs.ActionListArgs
        {
            ActionGroups = new[]
            {
                new AzureNative.Monitor.Inputs.ActionGroupArgs
                {
                    ActionGroupId = "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
                    WebhookProperties = 
                    {
                        { "sampleWebhookProperty", "SamplePropertyValue" },
                    },
                },
            },
        },
        ActivityLogAlertName = "SampleActivityLogAlertRuleWithContainsAny",
        Condition = new AzureNative.Monitor.Inputs.AlertRuleAllOfConditionArgs
        {
            AllOf = new[]
            {
                new AzureNative.Monitor.Inputs.AlertRuleAnyOfOrLeafConditionArgs
                {
                    Equals = "ServiceHealth",
                    Field = "category",
                },
                new AzureNative.Monitor.Inputs.AlertRuleAnyOfOrLeafConditionArgs
                {
                    ContainsAny = new[]
                    {
                        "North Europe",
                        "West Europe",
                    },
                    Field = "properties.impactedServices[*].ImpactedRegions[*].RegionName",
                },
            },
        },
        Description = "Description of sample Activity Log Alert rule with 'containsAny'.",
        Enabled = true,
        Location = "Global",
        ResourceGroupName = "MyResourceGroup",
        Scopes = new[]
        {
            "subscriptions/187f412d-1758-44d9-b052-169e2564721d",
        },
        Tags = null,
    });

});
Copy
package main

import (
	monitor "github.com/pulumi/pulumi-azure-native-sdk/monitor/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := monitor.NewActivityLogAlert(ctx, "activityLogAlert", &monitor.ActivityLogAlertArgs{
			Actions: &monitor.ActionListArgs{
				ActionGroups: monitor.ActionGroupTypeArray{
					&monitor.ActionGroupTypeArgs{
						ActionGroupId: pulumi.String("/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup"),
						WebhookProperties: pulumi.StringMap{
							"sampleWebhookProperty": pulumi.String("SamplePropertyValue"),
						},
					},
				},
			},
			ActivityLogAlertName: pulumi.String("SampleActivityLogAlertRuleWithContainsAny"),
			Condition: &monitor.AlertRuleAllOfConditionArgs{
				AllOf: monitor.AlertRuleAnyOfOrLeafConditionArray{
					&monitor.AlertRuleAnyOfOrLeafConditionArgs{
						Equals: pulumi.String("ServiceHealth"),
						Field:  pulumi.String("category"),
					},
					&monitor.AlertRuleAnyOfOrLeafConditionArgs{
						ContainsAny: pulumi.StringArray{
							pulumi.String("North Europe"),
							pulumi.String("West Europe"),
						},
						Field: pulumi.String("properties.impactedServices[*].ImpactedRegions[*].RegionName"),
					},
				},
			},
			Description:       pulumi.String("Description of sample Activity Log Alert rule with 'containsAny'."),
			Enabled:           pulumi.Bool(true),
			Location:          pulumi.String("Global"),
			ResourceGroupName: pulumi.String("MyResourceGroup"),
			Scopes: pulumi.StringArray{
				pulumi.String("subscriptions/187f412d-1758-44d9-b052-169e2564721d"),
			},
			Tags: pulumi.StringMap{},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.monitor.ActivityLogAlert;
import com.pulumi.azurenative.monitor.ActivityLogAlertArgs;
import com.pulumi.azurenative.monitor.inputs.ActionListArgs;
import com.pulumi.azurenative.monitor.inputs.AlertRuleAllOfConditionArgs;
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 activityLogAlert = new ActivityLogAlert("activityLogAlert", ActivityLogAlertArgs.builder()
            .actions(ActionListArgs.builder()
                .actionGroups(ActionGroupArgs.builder()
                    .actionGroupId("/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup")
                    .webhookProperties(Map.of("sampleWebhookProperty", "SamplePropertyValue"))
                    .build())
                .build())
            .activityLogAlertName("SampleActivityLogAlertRuleWithContainsAny")
            .condition(AlertRuleAllOfConditionArgs.builder()
                .allOf(                
                    AlertRuleAnyOfOrLeafConditionArgs.builder()
                        .equals("ServiceHealth")
                        .field("category")
                        .build(),
                    AlertRuleAnyOfOrLeafConditionArgs.builder()
                        .containsAny(                        
                            "North Europe",
                            "West Europe")
                        .field("properties.impactedServices[*].ImpactedRegions[*].RegionName")
                        .build())
                .build())
            .description("Description of sample Activity Log Alert rule with 'containsAny'.")
            .enabled(true)
            .location("Global")
            .resourceGroupName("MyResourceGroup")
            .scopes("subscriptions/187f412d-1758-44d9-b052-169e2564721d")
            .tags(Map.ofEntries(
            ))
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const activityLogAlert = new azure_native.monitor.ActivityLogAlert("activityLogAlert", {
    actions: {
        actionGroups: [{
            actionGroupId: "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
            webhookProperties: {
                sampleWebhookProperty: "SamplePropertyValue",
            },
        }],
    },
    activityLogAlertName: "SampleActivityLogAlertRuleWithContainsAny",
    condition: {
        allOf: [
            {
                equals: "ServiceHealth",
                field: "category",
            },
            {
                containsAny: [
                    "North Europe",
                    "West Europe",
                ],
                field: "properties.impactedServices[*].ImpactedRegions[*].RegionName",
            },
        ],
    },
    description: "Description of sample Activity Log Alert rule with 'containsAny'.",
    enabled: true,
    location: "Global",
    resourceGroupName: "MyResourceGroup",
    scopes: ["subscriptions/187f412d-1758-44d9-b052-169e2564721d"],
    tags: {},
});
Copy
import pulumi
import pulumi_azure_native as azure_native

activity_log_alert = azure_native.monitor.ActivityLogAlert("activityLogAlert",
    actions={
        "action_groups": [{
            "action_group_id": "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
            "webhook_properties": {
                "sampleWebhookProperty": "SamplePropertyValue",
            },
        }],
    },
    activity_log_alert_name="SampleActivityLogAlertRuleWithContainsAny",
    condition={
        "all_of": [
            {
                "equals": "ServiceHealth",
                "field": "category",
            },
            {
                "contains_any": [
                    "North Europe",
                    "West Europe",
                ],
                "field": "properties.impactedServices[*].ImpactedRegions[*].RegionName",
            },
        ],
    },
    description="Description of sample Activity Log Alert rule with 'containsAny'.",
    enabled=True,
    location="Global",
    resource_group_name="MyResourceGroup",
    scopes=["subscriptions/187f412d-1758-44d9-b052-169e2564721d"],
    tags={})
Copy
resources:
  activityLogAlert:
    type: azure-native:monitor:ActivityLogAlert
    properties:
      actions:
        actionGroups:
          - actionGroupId: /subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup
            webhookProperties:
              sampleWebhookProperty: SamplePropertyValue
      activityLogAlertName: SampleActivityLogAlertRuleWithContainsAny
      condition:
        allOf:
          - equals: ServiceHealth
            field: category
          - containsAny:
              - North Europe
              - West Europe
            field: properties.impactedServices[*].ImpactedRegions[*].RegionName
      description: Description of sample Activity Log Alert rule with 'containsAny'.
      enabled: true
      location: Global
      resourceGroupName: MyResourceGroup
      scopes:
        - subscriptions/187f412d-1758-44d9-b052-169e2564721d
      tags: {}
Copy

Create ActivityLogAlert Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ActivityLogAlert(name: string, args: ActivityLogAlertArgs, opts?: CustomResourceOptions);
@overload
def ActivityLogAlert(resource_name: str,
                     args: ActivityLogAlertArgs,
                     opts: Optional[ResourceOptions] = None)

@overload
def ActivityLogAlert(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     actions: Optional[ActionListArgs] = None,
                     condition: Optional[AlertRuleAllOfConditionArgs] = None,
                     resource_group_name: Optional[str] = None,
                     scopes: Optional[Sequence[str]] = None,
                     activity_log_alert_name: Optional[str] = None,
                     description: Optional[str] = None,
                     enabled: Optional[bool] = None,
                     location: Optional[str] = None,
                     tags: Optional[Mapping[str, str]] = None)
func NewActivityLogAlert(ctx *Context, name string, args ActivityLogAlertArgs, opts ...ResourceOption) (*ActivityLogAlert, error)
public ActivityLogAlert(string name, ActivityLogAlertArgs args, CustomResourceOptions? opts = null)
public ActivityLogAlert(String name, ActivityLogAlertArgs args)
public ActivityLogAlert(String name, ActivityLogAlertArgs args, CustomResourceOptions options)
type: azure-native:monitor:ActivityLogAlert
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ActivityLogAlertArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ActivityLogAlertArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ActivityLogAlertArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ActivityLogAlertArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ActivityLogAlertArgs
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 activityLogAlertResource = new AzureNative.Monitor.ActivityLogAlert("activityLogAlertResource", new()
{
    Actions = new AzureNative.Monitor.Inputs.ActionListArgs
    {
        ActionGroups = new[]
        {
            new AzureNative.Monitor.Inputs.ActionGroupArgs
            {
                ActionGroupId = "string",
                WebhookProperties = 
                {
                    { "string", "string" },
                },
            },
        },
    },
    Condition = new AzureNative.Monitor.Inputs.AlertRuleAllOfConditionArgs
    {
        AllOf = new[]
        {
            new AzureNative.Monitor.Inputs.AlertRuleAnyOfOrLeafConditionArgs
            {
                AnyOf = new[]
                {
                    new AzureNative.Monitor.Inputs.AlertRuleLeafConditionArgs
                    {
                        ContainsAny = new[]
                        {
                            "string",
                        },
                        Equals = "string",
                        Field = "string",
                    },
                },
                ContainsAny = new[]
                {
                    "string",
                },
                Equals = "string",
                Field = "string",
            },
        },
    },
    ResourceGroupName = "string",
    Scopes = new[]
    {
        "string",
    },
    ActivityLogAlertName = "string",
    Description = "string",
    Enabled = false,
    Location = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := monitor.NewActivityLogAlert(ctx, "activityLogAlertResource", &monitor.ActivityLogAlertArgs{
	Actions: &monitor.ActionListArgs{
		ActionGroups: monitor.ActionGroupTypeArray{
			&monitor.ActionGroupTypeArgs{
				ActionGroupId: pulumi.String("string"),
				WebhookProperties: pulumi.StringMap{
					"string": pulumi.String("string"),
				},
			},
		},
	},
	Condition: &monitor.AlertRuleAllOfConditionArgs{
		AllOf: monitor.AlertRuleAnyOfOrLeafConditionArray{
			&monitor.AlertRuleAnyOfOrLeafConditionArgs{
				AnyOf: monitor.AlertRuleLeafConditionArray{
					&monitor.AlertRuleLeafConditionArgs{
						ContainsAny: pulumi.StringArray{
							pulumi.String("string"),
						},
						Equals: pulumi.String("string"),
						Field:  pulumi.String("string"),
					},
				},
				ContainsAny: pulumi.StringArray{
					pulumi.String("string"),
				},
				Equals: pulumi.String("string"),
				Field:  pulumi.String("string"),
			},
		},
	},
	ResourceGroupName: pulumi.String("string"),
	Scopes: pulumi.StringArray{
		pulumi.String("string"),
	},
	ActivityLogAlertName: pulumi.String("string"),
	Description:          pulumi.String("string"),
	Enabled:              pulumi.Bool(false),
	Location:             pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var activityLogAlertResource = new ActivityLogAlert("activityLogAlertResource", ActivityLogAlertArgs.builder()
    .actions(ActionListArgs.builder()
        .actionGroups(ActionGroupArgs.builder()
            .actionGroupId("string")
            .webhookProperties(Map.of("string", "string"))
            .build())
        .build())
    .condition(AlertRuleAllOfConditionArgs.builder()
        .allOf(AlertRuleAnyOfOrLeafConditionArgs.builder()
            .anyOf(AlertRuleLeafConditionArgs.builder()
                .containsAny("string")
                .equals("string")
                .field("string")
                .build())
            .containsAny("string")
            .equals("string")
            .field("string")
            .build())
        .build())
    .resourceGroupName("string")
    .scopes("string")
    .activityLogAlertName("string")
    .description("string")
    .enabled(false)
    .location("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
activity_log_alert_resource = azure_native.monitor.ActivityLogAlert("activityLogAlertResource",
    actions={
        "action_groups": [{
            "action_group_id": "string",
            "webhook_properties": {
                "string": "string",
            },
        }],
    },
    condition={
        "all_of": [{
            "any_of": [{
                "contains_any": ["string"],
                "equals": "string",
                "field": "string",
            }],
            "contains_any": ["string"],
            "equals": "string",
            "field": "string",
        }],
    },
    resource_group_name="string",
    scopes=["string"],
    activity_log_alert_name="string",
    description="string",
    enabled=False,
    location="string",
    tags={
        "string": "string",
    })
Copy
const activityLogAlertResource = new azure_native.monitor.ActivityLogAlert("activityLogAlertResource", {
    actions: {
        actionGroups: [{
            actionGroupId: "string",
            webhookProperties: {
                string: "string",
            },
        }],
    },
    condition: {
        allOf: [{
            anyOf: [{
                containsAny: ["string"],
                equals: "string",
                field: "string",
            }],
            containsAny: ["string"],
            equals: "string",
            field: "string",
        }],
    },
    resourceGroupName: "string",
    scopes: ["string"],
    activityLogAlertName: "string",
    description: "string",
    enabled: false,
    location: "string",
    tags: {
        string: "string",
    },
});
Copy
type: azure-native:monitor:ActivityLogAlert
properties:
    actions:
        actionGroups:
            - actionGroupId: string
              webhookProperties:
                string: string
    activityLogAlertName: string
    condition:
        allOf:
            - anyOf:
                - containsAny:
                    - string
                  equals: string
                  field: string
              containsAny:
                - string
              equals: string
              field: string
    description: string
    enabled: false
    location: string
    resourceGroupName: string
    scopes:
        - string
    tags:
        string: string
Copy

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

Actions This property is required. Pulumi.AzureNative.Monitor.Inputs.ActionList
The actions that will activate when the condition is met.
Condition This property is required. Pulumi.AzureNative.Monitor.Inputs.AlertRuleAllOfCondition
The condition that will cause this alert to activate.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
Scopes This property is required. List<string>
A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
ActivityLogAlertName Changes to this property will trigger replacement. string
The name of the Activity Log Alert rule.
Description string
A description of this Activity Log Alert rule.
Enabled bool
Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
Location Changes to this property will trigger replacement. string
The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
Tags Dictionary<string, string>
The tags of the resource.
Actions This property is required. ActionListArgs
The actions that will activate when the condition is met.
Condition This property is required. AlertRuleAllOfConditionArgs
The condition that will cause this alert to activate.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
Scopes This property is required. []string
A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
ActivityLogAlertName Changes to this property will trigger replacement. string
The name of the Activity Log Alert rule.
Description string
A description of this Activity Log Alert rule.
Enabled bool
Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
Location Changes to this property will trigger replacement. string
The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
Tags map[string]string
The tags of the resource.
actions This property is required. ActionList
The actions that will activate when the condition is met.
condition This property is required. AlertRuleAllOfCondition
The condition that will cause this alert to activate.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
scopes This property is required. List<String>
A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
activityLogAlertName Changes to this property will trigger replacement. String
The name of the Activity Log Alert rule.
description String
A description of this Activity Log Alert rule.
enabled Boolean
Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
location Changes to this property will trigger replacement. String
The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
tags Map<String,String>
The tags of the resource.
actions This property is required. ActionList
The actions that will activate when the condition is met.
condition This property is required. AlertRuleAllOfCondition
The condition that will cause this alert to activate.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
scopes This property is required. string[]
A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
activityLogAlertName Changes to this property will trigger replacement. string
The name of the Activity Log Alert rule.
description string
A description of this Activity Log Alert rule.
enabled boolean
Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
location Changes to this property will trigger replacement. string
The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
tags {[key: string]: string}
The tags of the resource.
actions This property is required. ActionListArgs
The actions that will activate when the condition is met.
condition This property is required. AlertRuleAllOfConditionArgs
The condition that will cause this alert to activate.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
scopes This property is required. Sequence[str]
A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
activity_log_alert_name Changes to this property will trigger replacement. str
The name of the Activity Log Alert rule.
description str
A description of this Activity Log Alert rule.
enabled bool
Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
location Changes to this property will trigger replacement. str
The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
tags Mapping[str, str]
The tags of the resource.
actions This property is required. Property Map
The actions that will activate when the condition is met.
condition This property is required. Property Map
The condition that will cause this alert to activate.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
scopes This property is required. List<String>
A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
activityLogAlertName Changes to this property will trigger replacement. String
The name of the Activity Log Alert rule.
description String
A description of this Activity Log Alert rule.
enabled Boolean
Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
location Changes to this property will trigger replacement. String
The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
tags Map<String>
The tags of the resource.

Outputs

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

AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource.
Type string
The type of the resource.
AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource.
Type string
The type of the resource.
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource.
type String
The type of the resource.
azureApiVersion string
The Azure API version of the resource.
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource.
type string
The type of the resource.
azure_api_version str
The Azure API version of the resource.
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource.
type str
The type of the resource.
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource.
type String
The type of the resource.

Supporting Types

ActionGroup
, ActionGroupArgs

ActionGroupId This property is required. string
The resource ID of the Action Group. This cannot be null or empty.
WebhookProperties Dictionary<string, string>
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
ActionGroupId This property is required. string
The resource ID of the Action Group. This cannot be null or empty.
WebhookProperties map[string]string
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
actionGroupId This property is required. String
The resource ID of the Action Group. This cannot be null or empty.
webhookProperties Map<String,String>
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
actionGroupId This property is required. string
The resource ID of the Action Group. This cannot be null or empty.
webhookProperties {[key: string]: string}
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
action_group_id This property is required. str
The resource ID of the Action Group. This cannot be null or empty.
webhook_properties Mapping[str, str]
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
actionGroupId This property is required. String
The resource ID of the Action Group. This cannot be null or empty.
webhookProperties Map<String>
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.

ActionGroupResponse
, ActionGroupResponseArgs

ActionGroupId This property is required. string
The resource ID of the Action Group. This cannot be null or empty.
WebhookProperties Dictionary<string, string>
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
ActionGroupId This property is required. string
The resource ID of the Action Group. This cannot be null or empty.
WebhookProperties map[string]string
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
actionGroupId This property is required. String
The resource ID of the Action Group. This cannot be null or empty.
webhookProperties Map<String,String>
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
actionGroupId This property is required. string
The resource ID of the Action Group. This cannot be null or empty.
webhookProperties {[key: string]: string}
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
action_group_id This property is required. str
The resource ID of the Action Group. This cannot be null or empty.
webhook_properties Mapping[str, str]
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
actionGroupId This property is required. String
The resource ID of the Action Group. This cannot be null or empty.
webhookProperties Map<String>
the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.

ActionList
, ActionListArgs

ActionGroups []ActionGroupType
The list of the Action Groups.
actionGroups List<ActionGroup>
The list of the Action Groups.
actionGroups ActionGroup[]
The list of the Action Groups.
action_groups Sequence[ActionGroup]
The list of the Action Groups.
actionGroups List<Property Map>
The list of the Action Groups.

ActionListResponse
, ActionListResponseArgs

ActionGroups []ActionGroupResponse
The list of the Action Groups.
actionGroups List<ActionGroupResponse>
The list of the Action Groups.
actionGroups ActionGroupResponse[]
The list of the Action Groups.
action_groups Sequence[ActionGroupResponse]
The list of the Action Groups.
actionGroups List<Property Map>
The list of the Action Groups.

AlertRuleAllOfCondition
, AlertRuleAllOfConditionArgs

AllOf This property is required. List<Pulumi.AzureNative.Monitor.Inputs.AlertRuleAnyOfOrLeafCondition>
The list of Activity Log Alert rule conditions.
AllOf This property is required. []AlertRuleAnyOfOrLeafCondition
The list of Activity Log Alert rule conditions.
allOf This property is required. List<AlertRuleAnyOfOrLeafCondition>
The list of Activity Log Alert rule conditions.
allOf This property is required. AlertRuleAnyOfOrLeafCondition[]
The list of Activity Log Alert rule conditions.
all_of This property is required. Sequence[AlertRuleAnyOfOrLeafCondition]
The list of Activity Log Alert rule conditions.
allOf This property is required. List<Property Map>
The list of Activity Log Alert rule conditions.

AlertRuleAllOfConditionResponse
, AlertRuleAllOfConditionResponseArgs

AllOf This property is required. List<Pulumi.AzureNative.Monitor.Inputs.AlertRuleAnyOfOrLeafConditionResponse>
The list of Activity Log Alert rule conditions.
AllOf This property is required. []AlertRuleAnyOfOrLeafConditionResponse
The list of Activity Log Alert rule conditions.
allOf This property is required. List<AlertRuleAnyOfOrLeafConditionResponse>
The list of Activity Log Alert rule conditions.
allOf This property is required. AlertRuleAnyOfOrLeafConditionResponse[]
The list of Activity Log Alert rule conditions.
all_of This property is required. Sequence[AlertRuleAnyOfOrLeafConditionResponse]
The list of Activity Log Alert rule conditions.
allOf This property is required. List<Property Map>
The list of Activity Log Alert rule conditions.

AlertRuleAnyOfOrLeafCondition
, AlertRuleAnyOfOrLeafConditionArgs

AnyOf List<Pulumi.AzureNative.Monitor.Inputs.AlertRuleLeafCondition>
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
ContainsAny List<string>
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
Equals string
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
Field string
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
AnyOf []AlertRuleLeafCondition
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
ContainsAny []string
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
Equals string
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
Field string
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
anyOf List<AlertRuleLeafCondition>
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
containsAny List<String>
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals_ String
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field String
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
anyOf AlertRuleLeafCondition[]
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
containsAny string[]
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals string
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field string
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
any_of Sequence[AlertRuleLeafCondition]
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
contains_any Sequence[str]
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals str
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field str
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
anyOf List<Property Map>
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
containsAny List<String>
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals String
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field String
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.

AlertRuleAnyOfOrLeafConditionResponse
, AlertRuleAnyOfOrLeafConditionResponseArgs

AnyOf List<Pulumi.AzureNative.Monitor.Inputs.AlertRuleLeafConditionResponse>
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
ContainsAny List<string>
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
Equals string
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
Field string
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
AnyOf []AlertRuleLeafConditionResponse
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
ContainsAny []string
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
Equals string
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
Field string
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
anyOf List<AlertRuleLeafConditionResponse>
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
containsAny List<String>
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals_ String
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field String
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
anyOf AlertRuleLeafConditionResponse[]
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
containsAny string[]
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals string
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field string
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
any_of Sequence[AlertRuleLeafConditionResponse]
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
contains_any Sequence[str]
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals str
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field str
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
anyOf List<Property Map>
An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
containsAny List<String>
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals String
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field String
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.

AlertRuleLeafCondition
, AlertRuleLeafConditionArgs

ContainsAny List<string>
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
Equals string
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
Field string
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
ContainsAny []string
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
Equals string
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
Field string
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
containsAny List<String>
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals_ String
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field String
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
containsAny string[]
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals string
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field string
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
contains_any Sequence[str]
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals str
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field str
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
containsAny List<String>
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals String
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field String
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.

AlertRuleLeafConditionResponse
, AlertRuleLeafConditionResponseArgs

ContainsAny List<string>
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
Equals string
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
Field string
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
ContainsAny []string
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
Equals string
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
Field string
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
containsAny List<String>
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals_ String
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field String
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
containsAny string[]
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals string
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field string
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
contains_any Sequence[str]
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals str
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field str
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
containsAny List<String>
The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
equals String
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
field String
The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:monitor:ActivityLogAlert SampleActivityLogAlertRuleWithContainsAny /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/activityLogAlerts/{activityLogAlertName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0