1. Packages
  2. Azure Native
  3. API Docs
  4. insights
  5. ActivityLogAlert
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.9.0 published on Wednesday, Sep 27, 2023 by Pulumi

azure-native.insights.ActivityLogAlert

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.9.0 published on Wednesday, Sep 27, 2023 by Pulumi

    An Activity Log Alert rule resource. Azure REST API version: 2023-01-01-preview. Prior API version in Azure Native 1.x: 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.Insights.ActivityLogAlert("activityLogAlert", new()
        {
            Actions = new AzureNative.Insights.Inputs.ActionListArgs
            {
                ActionGroups = new[]
                {
                    new AzureNative.Insights.Inputs.ActionGroupArgs
                    {
                        ActionGroupId = "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
                        ActionProperties = 
                        {
                            { "Email.Title", "my email title" },
                        },
                        WebhookProperties = 
                        {
                            { "sampleWebhookProperty", "SamplePropertyValue" },
                        },
                    },
                },
            },
            ActivityLogAlertName = "SampleActivityLogAlertRule",
            Condition = new AzureNative.Insights.Inputs.AlertRuleAllOfConditionArgs
            {
                AllOf = new[]
                {
                    new AzureNative.Insights.Inputs.AlertRuleAnyOfOrLeafConditionArgs
                    {
                        Equals = "Administrative",
                        Field = "category",
                    },
                    new AzureNative.Insights.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,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := insights.NewActivityLogAlert(ctx, "activityLogAlert", &insights.ActivityLogAlertArgs{
    			Actions: insights.ActionListResponse{
    				ActionGroups: insights.ActionGroupTypeArray{
    					&insights.ActionGroupTypeArgs{
    						ActionGroupId: pulumi.String("/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup"),
    						ActionProperties: pulumi.StringMap{
    							"Email.Title": pulumi.String("my email title"),
    						},
    						WebhookProperties: pulumi.StringMap{
    							"sampleWebhookProperty": pulumi.String("SamplePropertyValue"),
    						},
    					},
    				},
    			},
    			ActivityLogAlertName: pulumi.String("SampleActivityLogAlertRule"),
    			Condition: insights.AlertRuleAllOfConditionResponse{
    				AllOf: insights.AlertRuleAnyOfOrLeafConditionArray{
    					&insights.AlertRuleAnyOfOrLeafConditionArgs{
    						Equals: pulumi.String("Administrative"),
    						Field:  pulumi.String("category"),
    					},
    					&insights.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: nil,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.insights.ActivityLogAlert;
    import com.pulumi.azurenative.insights.ActivityLogAlertArgs;
    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(Map.of("actionGroups", Map.ofEntries(
                    Map.entry("actionGroupId", "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup"),
                    Map.entry("actionProperties", Map.of("Email.Title", "my email title")),
                    Map.entry("webhookProperties", Map.of("sampleWebhookProperty", "SamplePropertyValue"))
                )))
                .activityLogAlertName("SampleActivityLogAlertRule")
                .condition(Map.of("allOf",             
                    Map.ofEntries(
                        Map.entry("equals", "Administrative"),
                        Map.entry("field", "category")
                    ),
                    Map.ofEntries(
                        Map.entry("equals", "Error"),
                        Map.entry("field", "level")
                    )))
                .description("Description of sample Activity Log Alert rule.")
                .enabled(true)
                .location("Global")
                .resourceGroupName("MyResourceGroup")
                .scopes("/subscriptions/187f412d-1758-44d9-b052-169e2564721d")
                .tags()
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    activity_log_alert = azure_native.insights.ActivityLogAlert("activityLogAlert",
        actions=azure_native.insights.ActionListResponseArgs(
            action_groups=[azure_native.insights.ActionGroupArgs(
                action_group_id="/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
                action_properties={
                    "Email.Title": "my email title",
                },
                webhook_properties={
                    "sampleWebhookProperty": "SamplePropertyValue",
                },
            )],
        ),
        activity_log_alert_name="SampleActivityLogAlertRule",
        condition=azure_native.insights.AlertRuleAllOfConditionResponseArgs(
            all_of=[
                azure_native.insights.AlertRuleAnyOfOrLeafConditionArgs(
                    equals="Administrative",
                    field="category",
                ),
                azure_native.insights.AlertRuleAnyOfOrLeafConditionArgs(
                    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={})
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const activityLogAlert = new azure_native.insights.ActivityLogAlert("activityLogAlert", {
        actions: {
            actionGroups: [{
                actionGroupId: "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
                actionProperties: {
                    "Email.Title": "my email title",
                },
                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: {},
    });
    
    resources:
      activityLogAlert:
        type: azure-native:insights:ActivityLogAlert
        properties:
          actions:
            actionGroups:
              - actionGroupId: /subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup
                actionProperties:
                  Email.Title: my email title
                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: {}
    

    Create or update an Activity Log Alert rule for tenant level events

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var activityLogAlert = new AzureNative.Insights.ActivityLogAlert("activityLogAlert", new()
        {
            Actions = new AzureNative.Insights.Inputs.ActionListArgs
            {
                ActionGroups = new[]
                {
                    new AzureNative.Insights.Inputs.ActionGroupArgs
                    {
                        ActionGroupId = "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
                        ActionProperties = 
                        {
                            { "Email.Title", "my email title" },
                        },
                        WebhookProperties = 
                        {
                            { "sampleWebhookProperty", "SamplePropertyValue" },
                        },
                    },
                },
            },
            ActivityLogAlertName = "SampleActivityLogAlertSHRuleOnTenantLevel",
            Condition = new AzureNative.Insights.Inputs.AlertRuleAllOfConditionArgs
            {
                AllOf = new[]
                {
                    new AzureNative.Insights.Inputs.AlertRuleAnyOfOrLeafConditionArgs
                    {
                        Equals = "ServiceHealth",
                        Field = "category",
                    },
                },
            },
            Description = "Description of sample Activity Log Alert service health rule on tenant level events.",
            Enabled = true,
            Location = "Global",
            ResourceGroupName = "MyResourceGroup",
            Tags = null,
            TenantScope = "72f988bf-86f1-41af-91ab-2d7cd011db47",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := insights.NewActivityLogAlert(ctx, "activityLogAlert", &insights.ActivityLogAlertArgs{
    			Actions: insights.ActionListResponse{
    				ActionGroups: insights.ActionGroupTypeArray{
    					&insights.ActionGroupTypeArgs{
    						ActionGroupId: pulumi.String("/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup"),
    						ActionProperties: pulumi.StringMap{
    							"Email.Title": pulumi.String("my email title"),
    						},
    						WebhookProperties: pulumi.StringMap{
    							"sampleWebhookProperty": pulumi.String("SamplePropertyValue"),
    						},
    					},
    				},
    			},
    			ActivityLogAlertName: pulumi.String("SampleActivityLogAlertSHRuleOnTenantLevel"),
    			Condition: insights.AlertRuleAllOfConditionResponse{
    				AllOf: insights.AlertRuleAnyOfOrLeafConditionArray{
    					&insights.AlertRuleAnyOfOrLeafConditionArgs{
    						Equals: pulumi.String("ServiceHealth"),
    						Field:  pulumi.String("category"),
    					},
    				},
    			},
    			Description:       pulumi.String("Description of sample Activity Log Alert service health rule on tenant level events."),
    			Enabled:           pulumi.Bool(true),
    			Location:          pulumi.String("Global"),
    			ResourceGroupName: pulumi.String("MyResourceGroup"),
    			Tags:              nil,
    			TenantScope:       pulumi.String("72f988bf-86f1-41af-91ab-2d7cd011db47"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.insights.ActivityLogAlert;
    import com.pulumi.azurenative.insights.ActivityLogAlertArgs;
    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(Map.of("actionGroups", Map.ofEntries(
                    Map.entry("actionGroupId", "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup"),
                    Map.entry("actionProperties", Map.of("Email.Title", "my email title")),
                    Map.entry("webhookProperties", Map.of("sampleWebhookProperty", "SamplePropertyValue"))
                )))
                .activityLogAlertName("SampleActivityLogAlertSHRuleOnTenantLevel")
                .condition(Map.of("allOf", Map.ofEntries(
                    Map.entry("equals", "ServiceHealth"),
                    Map.entry("field", "category")
                )))
                .description("Description of sample Activity Log Alert service health rule on tenant level events.")
                .enabled(true)
                .location("Global")
                .resourceGroupName("MyResourceGroup")
                .tags()
                .tenantScope("72f988bf-86f1-41af-91ab-2d7cd011db47")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    activity_log_alert = azure_native.insights.ActivityLogAlert("activityLogAlert",
        actions=azure_native.insights.ActionListResponseArgs(
            action_groups=[azure_native.insights.ActionGroupArgs(
                action_group_id="/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
                action_properties={
                    "Email.Title": "my email title",
                },
                webhook_properties={
                    "sampleWebhookProperty": "SamplePropertyValue",
                },
            )],
        ),
        activity_log_alert_name="SampleActivityLogAlertSHRuleOnTenantLevel",
        condition=azure_native.insights.AlertRuleAllOfConditionResponseArgs(
            all_of=[azure_native.insights.AlertRuleAnyOfOrLeafConditionArgs(
                equals="ServiceHealth",
                field="category",
            )],
        ),
        description="Description of sample Activity Log Alert service health rule on tenant level events.",
        enabled=True,
        location="Global",
        resource_group_name="MyResourceGroup",
        tags={},
        tenant_scope="72f988bf-86f1-41af-91ab-2d7cd011db47")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const activityLogAlert = new azure_native.insights.ActivityLogAlert("activityLogAlert", {
        actions: {
            actionGroups: [{
                actionGroupId: "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
                actionProperties: {
                    "Email.Title": "my email title",
                },
                webhookProperties: {
                    sampleWebhookProperty: "SamplePropertyValue",
                },
            }],
        },
        activityLogAlertName: "SampleActivityLogAlertSHRuleOnTenantLevel",
        condition: {
            allOf: [{
                equals: "ServiceHealth",
                field: "category",
            }],
        },
        description: "Description of sample Activity Log Alert service health rule on tenant level events.",
        enabled: true,
        location: "Global",
        resourceGroupName: "MyResourceGroup",
        tags: {},
        tenantScope: "72f988bf-86f1-41af-91ab-2d7cd011db47",
    });
    
    resources:
      activityLogAlert:
        type: azure-native:insights:ActivityLogAlert
        properties:
          actions:
            actionGroups:
              - actionGroupId: /subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup
                actionProperties:
                  Email.Title: my email title
                webhookProperties:
                  sampleWebhookProperty: SamplePropertyValue
          activityLogAlertName: SampleActivityLogAlertSHRuleOnTenantLevel
          condition:
            allOf:
              - equals: ServiceHealth
                field: category
          description: Description of sample Activity Log Alert service health rule on tenant level events.
          enabled: true
          location: Global
          resourceGroupName: MyResourceGroup
          tags: {}
          tenantScope: 72f988bf-86f1-41af-91ab-2d7cd011db47
    

    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.Insights.ActivityLogAlert("activityLogAlert", new()
        {
            Actions = new AzureNative.Insights.Inputs.ActionListArgs
            {
                ActionGroups = new[]
                {
                    new AzureNative.Insights.Inputs.ActionGroupArgs
                    {
                        ActionGroupId = "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
                        ActionProperties = 
                        {
                            { "Email.Title", "my email title" },
                        },
                        WebhookProperties = 
                        {
                            { "sampleWebhookProperty", "SamplePropertyValue" },
                        },
                    },
                },
            },
            ActivityLogAlertName = "SampleActivityLogAlertRuleWithAnyOfCondition",
            Condition = new AzureNative.Insights.Inputs.AlertRuleAllOfConditionArgs
            {
                AllOf = new[]
                {
                    new AzureNative.Insights.Inputs.AlertRuleAnyOfOrLeafConditionArgs
                    {
                        Equals = "ServiceHealth",
                        Field = "category",
                    },
                    new AzureNative.Insights.Inputs.AlertRuleAnyOfOrLeafConditionArgs
                    {
                        AnyOf = new[]
                        {
                            new AzureNative.Insights.Inputs.AlertRuleLeafConditionArgs
                            {
                                Equals = "Incident",
                                Field = "properties.incidentType",
                            },
                            new AzureNative.Insights.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,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
    _, err := insights.NewActivityLogAlert(ctx, "activityLogAlert", &insights.ActivityLogAlertArgs{
    Actions: insights.ActionListResponse{
    ActionGroups: insights.ActionGroupTypeArray{
    &insights.ActionGroupTypeArgs{
    ActionGroupId: pulumi.String("/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup"),
    ActionProperties: pulumi.StringMap{
    "Email.Title": pulumi.String("my email title"),
    },
    WebhookProperties: pulumi.StringMap{
    "sampleWebhookProperty": pulumi.String("SamplePropertyValue"),
    },
    },
    },
    },
    ActivityLogAlertName: pulumi.String("SampleActivityLogAlertRuleWithAnyOfCondition"),
    Condition: insights.AlertRuleAllOfConditionResponse{
    AllOf: insights.AlertRuleAnyOfOrLeafConditionArray{
    &insights.AlertRuleAnyOfOrLeafConditionArgs{
    Equals: pulumi.String("ServiceHealth"),
    Field: pulumi.String("category"),
    },
    interface{}{
    AnyOf: insights.AlertRuleLeafConditionArray{
    &insights.AlertRuleLeafConditionArgs{
    Equals: pulumi.String("Incident"),
    Field: pulumi.String("properties.incidentType"),
    },
    &insights.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: nil,
    })
    if err != nil {
    return err
    }
    return nil
    })
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.insights.ActivityLogAlert;
    import com.pulumi.azurenative.insights.ActivityLogAlertArgs;
    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(Map.of("actionGroups", Map.ofEntries(
                    Map.entry("actionGroupId", "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup"),
                    Map.entry("actionProperties", Map.of("Email.Title", "my email title")),
                    Map.entry("webhookProperties", Map.of("sampleWebhookProperty", "SamplePropertyValue"))
                )))
                .activityLogAlertName("SampleActivityLogAlertRuleWithAnyOfCondition")
                .condition(Map.of("allOf",             
                    Map.ofEntries(
                        Map.entry("equals", "ServiceHealth"),
                        Map.entry("field", "category")
                    ),
                    Map.of("anyOf",                 
                        Map.ofEntries(
                            Map.entry("equals", "Incident"),
                            Map.entry("field", "properties.incidentType")
                        ),
                        Map.ofEntries(
                            Map.entry("equals", "Maintenance"),
                            Map.entry("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()
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    activity_log_alert = azure_native.insights.ActivityLogAlert("activityLogAlert",
        actions=azure_native.insights.ActionListResponseArgs(
            action_groups=[azure_native.insights.ActionGroupArgs(
                action_group_id="/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
                action_properties={
                    "Email.Title": "my email title",
                },
                webhook_properties={
                    "sampleWebhookProperty": "SamplePropertyValue",
                },
            )],
        ),
        activity_log_alert_name="SampleActivityLogAlertRuleWithAnyOfCondition",
        condition=azure_native.insights.AlertRuleAllOfConditionResponseArgs(
            all_of=[
                azure_native.insights.AlertRuleAnyOfOrLeafConditionArgs(
                    equals="ServiceHealth",
                    field="category",
                ),
                {
                    "anyOf": [
                        azure_native.insights.AlertRuleLeafConditionArgs(
                            equals="Incident",
                            field="properties.incidentType",
                        ),
                        azure_native.insights.AlertRuleLeafConditionArgs(
                            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={})
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const activityLogAlert = new azure_native.insights.ActivityLogAlert("activityLogAlert", {
        actions: {
            actionGroups: [{
                actionGroupId: "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
                actionProperties: {
                    "Email.Title": "my email title",
                },
                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: {},
    });
    
    resources:
      activityLogAlert:
        type: azure-native:insights:ActivityLogAlert
        properties:
          actions:
            actionGroups:
              - actionGroupId: /subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup
                actionProperties:
                  Email.Title: my email title
                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: {}
    

    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.Insights.ActivityLogAlert("activityLogAlert", new()
        {
            Actions = new AzureNative.Insights.Inputs.ActionListArgs
            {
                ActionGroups = new[]
                {
                    new AzureNative.Insights.Inputs.ActionGroupArgs
                    {
                        ActionGroupId = "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
                        ActionProperties = 
                        {
                            { "Email.Title", "my email title" },
                        },
                        WebhookProperties = 
                        {
                            { "sampleWebhookProperty", "SamplePropertyValue" },
                        },
                    },
                },
            },
            ActivityLogAlertName = "SampleActivityLogAlertRuleWithContainsAny",
            Condition = new AzureNative.Insights.Inputs.AlertRuleAllOfConditionArgs
            {
                AllOf = new[]
                {
                    new AzureNative.Insights.Inputs.AlertRuleAnyOfOrLeafConditionArgs
                    {
                        Equals = "ServiceHealth",
                        Field = "category",
                    },
                    new AzureNative.Insights.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,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := insights.NewActivityLogAlert(ctx, "activityLogAlert", &insights.ActivityLogAlertArgs{
    			Actions: insights.ActionListResponse{
    				ActionGroups: insights.ActionGroupTypeArray{
    					&insights.ActionGroupTypeArgs{
    						ActionGroupId: pulumi.String("/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup"),
    						ActionProperties: pulumi.StringMap{
    							"Email.Title": pulumi.String("my email title"),
    						},
    						WebhookProperties: pulumi.StringMap{
    							"sampleWebhookProperty": pulumi.String("SamplePropertyValue"),
    						},
    					},
    				},
    			},
    			ActivityLogAlertName: pulumi.String("SampleActivityLogAlertRuleWithContainsAny"),
    			Condition: insights.AlertRuleAllOfConditionResponse{
    				AllOf: insights.AlertRuleAnyOfOrLeafConditionArray{
    					&insights.AlertRuleAnyOfOrLeafConditionArgs{
    						Equals: pulumi.String("ServiceHealth"),
    						Field:  pulumi.String("category"),
    					},
    					&insights.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: nil,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.insights.ActivityLogAlert;
    import com.pulumi.azurenative.insights.ActivityLogAlertArgs;
    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(Map.of("actionGroups", Map.ofEntries(
                    Map.entry("actionGroupId", "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup"),
                    Map.entry("actionProperties", Map.of("Email.Title", "my email title")),
                    Map.entry("webhookProperties", Map.of("sampleWebhookProperty", "SamplePropertyValue"))
                )))
                .activityLogAlertName("SampleActivityLogAlertRuleWithContainsAny")
                .condition(Map.of("allOf",             
                    Map.ofEntries(
                        Map.entry("equals", "ServiceHealth"),
                        Map.entry("field", "category")
                    ),
                    Map.ofEntries(
                        Map.entry("containsAny",                     
                            "North Europe",
                            "West Europe"),
                        Map.entry("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()
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    activity_log_alert = azure_native.insights.ActivityLogAlert("activityLogAlert",
        actions=azure_native.insights.ActionListResponseArgs(
            action_groups=[azure_native.insights.ActionGroupArgs(
                action_group_id="/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
                action_properties={
                    "Email.Title": "my email title",
                },
                webhook_properties={
                    "sampleWebhookProperty": "SamplePropertyValue",
                },
            )],
        ),
        activity_log_alert_name="SampleActivityLogAlertRuleWithContainsAny",
        condition=azure_native.insights.AlertRuleAllOfConditionResponseArgs(
            all_of=[
                azure_native.insights.AlertRuleAnyOfOrLeafConditionArgs(
                    equals="ServiceHealth",
                    field="category",
                ),
                azure_native.insights.AlertRuleAnyOfOrLeafConditionArgs(
                    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={})
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const activityLogAlert = new azure_native.insights.ActivityLogAlert("activityLogAlert", {
        actions: {
            actionGroups: [{
                actionGroupId: "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup",
                actionProperties: {
                    "Email.Title": "my email title",
                },
                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: {},
    });
    
    resources:
      activityLogAlert:
        type: azure-native:insights:ActivityLogAlert
        properties:
          actions:
            actionGroups:
              - actionGroupId: /subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup
                actionProperties:
                  Email.Title: my email title
                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: {}
    

    Create ActivityLogAlert Resource

    new ActivityLogAlert(name: string, args: ActivityLogAlertArgs, opts?: CustomResourceOptions);
    @overload
    def ActivityLogAlert(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         actions: Optional[ActionListArgs] = None,
                         activity_log_alert_name: Optional[str] = None,
                         condition: Optional[AlertRuleAllOfConditionArgs] = None,
                         description: Optional[str] = None,
                         enabled: Optional[bool] = None,
                         location: Optional[str] = None,
                         resource_group_name: Optional[str] = None,
                         scopes: Optional[Sequence[str]] = None,
                         tags: Optional[Mapping[str, str]] = None,
                         tenant_scope: Optional[str] = None)
    @overload
    def ActivityLogAlert(resource_name: str,
                         args: ActivityLogAlertArgs,
                         opts: Optional[ResourceOptions] = 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:insights:ActivityLogAlert
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ActivityLogAlertArgs
    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 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 string
    The unique name of the resource.
    args ActivityLogAlertArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ActivityLogAlertArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ActivityLogAlertArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    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

    The ActivityLogAlert resource accepts the following input properties:

    Actions Pulumi.AzureNative.Insights.Inputs.ActionList

    The actions that will activate when the condition is met.

    Condition Pulumi.AzureNative.Insights.Inputs.AlertRuleAllOfCondition

    The condition that will cause this alert to activate.

    ResourceGroupName string

    The name of the resource group. The name is case insensitive.

    ActivityLogAlertName 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 string

    The location of the resource. Since Azure Activity Log Alerts is a global service, the location of the rules should always be 'global'.

    Scopes 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.

    Tags Dictionary<string, string>

    The tags of the resource.

    TenantScope string

    The tenant GUID. Must be provided for tenant-level and management group events rules.

    Actions ActionListArgs

    The actions that will activate when the condition is met.

    Condition AlertRuleAllOfConditionArgs

    The condition that will cause this alert to activate.

    ResourceGroupName string

    The name of the resource group. The name is case insensitive.

    ActivityLogAlertName 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 string

    The location of the resource. Since Azure Activity Log Alerts is a global service, the location of the rules should always be 'global'.

    Scopes []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.

    Tags map[string]string

    The tags of the resource.

    TenantScope string

    The tenant GUID. Must be provided for tenant-level and management group events rules.

    actions ActionList

    The actions that will activate when the condition is met.

    condition AlertRuleAllOfCondition

    The condition that will cause this alert to activate.

    resourceGroupName String

    The name of the resource group. The name is case insensitive.

    activityLogAlertName 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 String

    The location of the resource. Since Azure Activity Log Alerts is a global service, the location of the rules should always be 'global'.

    scopes 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.

    tags Map<String,String>

    The tags of the resource.

    tenantScope String

    The tenant GUID. Must be provided for tenant-level and management group events rules.

    actions ActionList

    The actions that will activate when the condition is met.

    condition AlertRuleAllOfCondition

    The condition that will cause this alert to activate.

    resourceGroupName string

    The name of the resource group. The name is case insensitive.

    activityLogAlertName 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 string

    The location of the resource. Since Azure Activity Log Alerts is a global service, the location of the rules should always be 'global'.

    scopes 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.

    tags {[key: string]: string}

    The tags of the resource.

    tenantScope string

    The tenant GUID. Must be provided for tenant-level and management group events rules.

    actions ActionListArgs

    The actions that will activate when the condition is met.

    condition AlertRuleAllOfConditionArgs

    The condition that will cause this alert to activate.

    resource_group_name str

    The name of the resource group. The name is case insensitive.

    activity_log_alert_name 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 str

    The location of the resource. Since Azure Activity Log Alerts is a global service, the location of the rules should always be 'global'.

    scopes 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.

    tags Mapping[str, str]

    The tags of the resource.

    tenant_scope str

    The tenant GUID. Must be provided for tenant-level and management group events rules.

    actions Property Map

    The actions that will activate when the condition is met.

    condition Property Map

    The condition that will cause this alert to activate.

    resourceGroupName String

    The name of the resource group. The name is case insensitive.

    activityLogAlertName 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 String

    The location of the resource. Since Azure Activity Log Alerts is a global service, the location of the rules should always be 'global'.

    scopes 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.

    tags Map<String>

    The tags of the resource.

    tenantScope String

    The tenant GUID. Must be provided for tenant-level and management group events rules.

    Outputs

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

    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.

    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.

    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.

    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.

    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.

    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 string

    The resource ID of the Action Group. This cannot be null or empty.

    ActionProperties Dictionary<string, string>

    Predefined list of properties and configuration items for the action group.

    WebhookProperties Dictionary<string, string>

    the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.

    ActionGroupId string

    The resource ID of the Action Group. This cannot be null or empty.

    ActionProperties map[string]string

    Predefined list of properties and configuration items for the action group.

    WebhookProperties map[string]string

    the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.

    actionGroupId String

    The resource ID of the Action Group. This cannot be null or empty.

    actionProperties Map<String,String>

    Predefined list of properties and configuration items for the action group.

    webhookProperties Map<String,String>

    the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.

    actionGroupId string

    The resource ID of the Action Group. This cannot be null or empty.

    actionProperties {[key: string]: string}

    Predefined list of properties and configuration items for the action group.

    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 str

    The resource ID of the Action Group. This cannot be null or empty.

    action_properties Mapping[str, str]

    Predefined list of properties and configuration items for the action group.

    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 String

    The resource ID of the Action Group. This cannot be null or empty.

    actionProperties Map<String>

    Predefined list of properties and configuration items for the action group.

    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 string

    The resource ID of the Action Group. This cannot be null or empty.

    ActionProperties Dictionary<string, string>

    Predefined list of properties and configuration items for the action group.

    WebhookProperties Dictionary<string, string>

    the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.

    ActionGroupId string

    The resource ID of the Action Group. This cannot be null or empty.

    ActionProperties map[string]string

    Predefined list of properties and configuration items for the action group.

    WebhookProperties map[string]string

    the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.

    actionGroupId String

    The resource ID of the Action Group. This cannot be null or empty.

    actionProperties Map<String,String>

    Predefined list of properties and configuration items for the action group.

    webhookProperties Map<String,String>

    the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.

    actionGroupId string

    The resource ID of the Action Group. This cannot be null or empty.

    actionProperties {[key: string]: string}

    Predefined list of properties and configuration items for the action group.

    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 str

    The resource ID of the Action Group. This cannot be null or empty.

    action_properties Mapping[str, str]

    Predefined list of properties and configuration items for the action group.

    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 String

    The resource ID of the Action Group. This cannot be null or empty.

    actionProperties Map<String>

    Predefined list of properties and configuration items for the action group.

    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 []AlertRuleAnyOfOrLeafCondition

    The list of Activity Log Alert rule conditions.

    allOf List<AlertRuleAnyOfOrLeafCondition>

    The list of Activity Log Alert rule conditions.

    allOf AlertRuleAnyOfOrLeafCondition[]

    The list of Activity Log Alert rule conditions.

    all_of Sequence[AlertRuleAnyOfOrLeafCondition]

    The list of Activity Log Alert rule conditions.

    allOf List<Property Map>

    The list of Activity Log Alert rule conditions.

    AlertRuleAllOfConditionResponse, AlertRuleAllOfConditionResponseArgs

    AllOf []AlertRuleAnyOfOrLeafConditionResponse

    The list of Activity Log Alert rule conditions.

    allOf List<AlertRuleAnyOfOrLeafConditionResponse>

    The list of Activity Log Alert rule conditions.

    allOf AlertRuleAnyOfOrLeafConditionResponse[]

    The list of Activity Log Alert rule conditions.

    all_of Sequence[AlertRuleAnyOfOrLeafConditionResponse]

    The list of Activity Log Alert rule conditions.

    allOf List<Property Map>

    The list of Activity Log Alert rule conditions.

    AlertRuleAnyOfOrLeafCondition, AlertRuleAnyOfOrLeafConditionArgs

    AnyOf List<Pulumi.AzureNative.Insights.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.Insights.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:insights:ActivityLogAlert SampleActivityLogAlertRuleWithContainsAny /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/activityLogAlerts/{activityLogAlertName} 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.9.0 published on Wednesday, Sep 27, 2023 by Pulumi