1. Packages
  2. Azure Classic
  3. API Docs
  4. monitoring
  5. ActivityLogAlert

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

azure.monitoring.ActivityLogAlert

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

    Manages an Activity Log Alert within Azure Monitor.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const main = new azure.monitoring.ActionGroup("main", {
        name: "example-actiongroup",
        resourceGroupName: example.name,
        shortName: "p0action",
        webhookReceivers: [{
            name: "callmyapi",
            serviceUri: "http://example.com/alert",
        }],
    });
    const toMonitor = new azure.storage.Account("to_monitor", {
        name: "examplesa",
        resourceGroupName: example.name,
        location: example.location,
        accountTier: "Standard",
        accountReplicationType: "GRS",
    });
    const mainActivityLogAlert = new azure.monitoring.ActivityLogAlert("main", {
        name: "example-activitylogalert",
        resourceGroupName: example.name,
        location: example.location,
        scopes: [example.id],
        description: "This alert will monitor a specific storage account updates.",
        criteria: {
            resourceId: toMonitor.id,
            operationName: "Microsoft.Storage/storageAccounts/write",
            category: "Recommendation",
        },
        actions: [{
            actionGroupId: main.id,
            webhookProperties: {
                from: "source",
            },
        }],
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    main = azure.monitoring.ActionGroup("main",
        name="example-actiongroup",
        resource_group_name=example.name,
        short_name="p0action",
        webhook_receivers=[{
            "name": "callmyapi",
            "service_uri": "http://example.com/alert",
        }])
    to_monitor = azure.storage.Account("to_monitor",
        name="examplesa",
        resource_group_name=example.name,
        location=example.location,
        account_tier="Standard",
        account_replication_type="GRS")
    main_activity_log_alert = azure.monitoring.ActivityLogAlert("main",
        name="example-activitylogalert",
        resource_group_name=example.name,
        location=example.location,
        scopes=[example.id],
        description="This alert will monitor a specific storage account updates.",
        criteria={
            "resource_id": to_monitor.id,
            "operation_name": "Microsoft.Storage/storageAccounts/write",
            "category": "Recommendation",
        },
        actions=[{
            "action_group_id": main.id,
            "webhook_properties": {
                "from_": "source",
            },
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/monitoring"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		main, err := monitoring.NewActionGroup(ctx, "main", &monitoring.ActionGroupArgs{
    			Name:              pulumi.String("example-actiongroup"),
    			ResourceGroupName: example.Name,
    			ShortName:         pulumi.String("p0action"),
    			WebhookReceivers: monitoring.ActionGroupWebhookReceiverArray{
    				&monitoring.ActionGroupWebhookReceiverArgs{
    					Name:       pulumi.String("callmyapi"),
    					ServiceUri: pulumi.String("http://example.com/alert"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		toMonitor, err := storage.NewAccount(ctx, "to_monitor", &storage.AccountArgs{
    			Name:                   pulumi.String("examplesa"),
    			ResourceGroupName:      example.Name,
    			Location:               example.Location,
    			AccountTier:            pulumi.String("Standard"),
    			AccountReplicationType: pulumi.String("GRS"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = monitoring.NewActivityLogAlert(ctx, "main", &monitoring.ActivityLogAlertArgs{
    			Name:              pulumi.String("example-activitylogalert"),
    			ResourceGroupName: example.Name,
    			Location:          example.Location,
    			Scopes: pulumi.StringArray{
    				example.ID(),
    			},
    			Description: pulumi.String("This alert will monitor a specific storage account updates."),
    			Criteria: &monitoring.ActivityLogAlertCriteriaArgs{
    				ResourceId:    toMonitor.ID(),
    				OperationName: pulumi.String("Microsoft.Storage/storageAccounts/write"),
    				Category:      pulumi.String("Recommendation"),
    			},
    			Actions: monitoring.ActivityLogAlertActionArray{
    				&monitoring.ActivityLogAlertActionArgs{
    					ActionGroupId: main.ID(),
    					WebhookProperties: pulumi.StringMap{
    						"from": pulumi.String("source"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var main = new Azure.Monitoring.ActionGroup("main", new()
        {
            Name = "example-actiongroup",
            ResourceGroupName = example.Name,
            ShortName = "p0action",
            WebhookReceivers = new[]
            {
                new Azure.Monitoring.Inputs.ActionGroupWebhookReceiverArgs
                {
                    Name = "callmyapi",
                    ServiceUri = "http://example.com/alert",
                },
            },
        });
    
        var toMonitor = new Azure.Storage.Account("to_monitor", new()
        {
            Name = "examplesa",
            ResourceGroupName = example.Name,
            Location = example.Location,
            AccountTier = "Standard",
            AccountReplicationType = "GRS",
        });
    
        var mainActivityLogAlert = new Azure.Monitoring.ActivityLogAlert("main", new()
        {
            Name = "example-activitylogalert",
            ResourceGroupName = example.Name,
            Location = example.Location,
            Scopes = new[]
            {
                example.Id,
            },
            Description = "This alert will monitor a specific storage account updates.",
            Criteria = new Azure.Monitoring.Inputs.ActivityLogAlertCriteriaArgs
            {
                ResourceId = toMonitor.Id,
                OperationName = "Microsoft.Storage/storageAccounts/write",
                Category = "Recommendation",
            },
            Actions = new[]
            {
                new Azure.Monitoring.Inputs.ActivityLogAlertActionArgs
                {
                    ActionGroupId = main.Id,
                    WebhookProperties = 
                    {
                        { "from", "source" },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.monitoring.ActionGroup;
    import com.pulumi.azure.monitoring.ActionGroupArgs;
    import com.pulumi.azure.monitoring.inputs.ActionGroupWebhookReceiverArgs;
    import com.pulumi.azure.storage.Account;
    import com.pulumi.azure.storage.AccountArgs;
    import com.pulumi.azure.monitoring.ActivityLogAlert;
    import com.pulumi.azure.monitoring.ActivityLogAlertArgs;
    import com.pulumi.azure.monitoring.inputs.ActivityLogAlertCriteriaArgs;
    import com.pulumi.azure.monitoring.inputs.ActivityLogAlertActionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var main = new ActionGroup("main", ActionGroupArgs.builder()
                .name("example-actiongroup")
                .resourceGroupName(example.name())
                .shortName("p0action")
                .webhookReceivers(ActionGroupWebhookReceiverArgs.builder()
                    .name("callmyapi")
                    .serviceUri("http://example.com/alert")
                    .build())
                .build());
    
            var toMonitor = new Account("toMonitor", AccountArgs.builder()
                .name("examplesa")
                .resourceGroupName(example.name())
                .location(example.location())
                .accountTier("Standard")
                .accountReplicationType("GRS")
                .build());
    
            var mainActivityLogAlert = new ActivityLogAlert("mainActivityLogAlert", ActivityLogAlertArgs.builder()
                .name("example-activitylogalert")
                .resourceGroupName(example.name())
                .location(example.location())
                .scopes(example.id())
                .description("This alert will monitor a specific storage account updates.")
                .criteria(ActivityLogAlertCriteriaArgs.builder()
                    .resourceId(toMonitor.id())
                    .operationName("Microsoft.Storage/storageAccounts/write")
                    .category("Recommendation")
                    .build())
                .actions(ActivityLogAlertActionArgs.builder()
                    .actionGroupId(main.id())
                    .webhookProperties(Map.of("from", "source"))
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      main:
        type: azure:monitoring:ActionGroup
        properties:
          name: example-actiongroup
          resourceGroupName: ${example.name}
          shortName: p0action
          webhookReceivers:
            - name: callmyapi
              serviceUri: http://example.com/alert
      toMonitor:
        type: azure:storage:Account
        name: to_monitor
        properties:
          name: examplesa
          resourceGroupName: ${example.name}
          location: ${example.location}
          accountTier: Standard
          accountReplicationType: GRS
      mainActivityLogAlert:
        type: azure:monitoring:ActivityLogAlert
        name: main
        properties:
          name: example-activitylogalert
          resourceGroupName: ${example.name}
          location: ${example.location}
          scopes:
            - ${example.id}
          description: This alert will monitor a specific storage account updates.
          criteria:
            resourceId: ${toMonitor.id}
            operationName: Microsoft.Storage/storageAccounts/write
            category: Recommendation
          actions:
            - actionGroupId: ${main.id}
              webhookProperties:
                from: source
    

    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,
                         criteria: Optional[ActivityLogAlertCriteriaArgs] = None,
                         resource_group_name: Optional[str] = None,
                         scopes: Optional[Sequence[str]] = None,
                         actions: Optional[Sequence[ActivityLogAlertActionArgs]] = None,
                         description: Optional[str] = None,
                         enabled: Optional[bool] = None,
                         location: Optional[str] = None,
                         name: 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:monitoring:ActivityLogAlert
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args 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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var activityLogAlertResource = new Azure.Monitoring.ActivityLogAlert("activityLogAlertResource", new()
    {
        Criteria = new Azure.Monitoring.Inputs.ActivityLogAlertCriteriaArgs
        {
            Category = "string",
            ResourceHealth = new Azure.Monitoring.Inputs.ActivityLogAlertCriteriaResourceHealthArgs
            {
                Currents = new[]
                {
                    "string",
                },
                Previouses = new[]
                {
                    "string",
                },
                Reasons = new[]
                {
                    "string",
                },
            },
            RecommendationCategory = "string",
            ResourceId = "string",
            ResourceProvider = "string",
            ResourceIds = new[]
            {
                "string",
            },
            RecommendationImpact = "string",
            RecommendationType = "string",
            ResourceGroup = "string",
            ResourceGroups = new[]
            {
                "string",
            },
            Caller = "string",
            Levels = new[]
            {
                "string",
            },
            Level = "string",
            OperationName = "string",
            ResourceProviders = new[]
            {
                "string",
            },
            ResourceType = "string",
            ResourceTypes = new[]
            {
                "string",
            },
            ServiceHealth = new Azure.Monitoring.Inputs.ActivityLogAlertCriteriaServiceHealthArgs
            {
                Events = new[]
                {
                    "string",
                },
                Locations = new[]
                {
                    "string",
                },
                Services = new[]
                {
                    "string",
                },
            },
            Status = "string",
            Statuses = new[]
            {
                "string",
            },
            SubStatus = "string",
            SubStatuses = new[]
            {
                "string",
            },
        },
        ResourceGroupName = "string",
        Scopes = new[]
        {
            "string",
        },
        Actions = new[]
        {
            new Azure.Monitoring.Inputs.ActivityLogAlertActionArgs
            {
                ActionGroupId = "string",
                WebhookProperties = 
                {
                    { "string", "string" },
                },
            },
        },
        Description = "string",
        Enabled = false,
        Location = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := monitoring.NewActivityLogAlert(ctx, "activityLogAlertResource", &monitoring.ActivityLogAlertArgs{
    	Criteria: &monitoring.ActivityLogAlertCriteriaArgs{
    		Category: pulumi.String("string"),
    		ResourceHealth: &monitoring.ActivityLogAlertCriteriaResourceHealthArgs{
    			Currents: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Previouses: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Reasons: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		RecommendationCategory: pulumi.String("string"),
    		ResourceId:             pulumi.String("string"),
    		ResourceProvider:       pulumi.String("string"),
    		ResourceIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		RecommendationImpact: pulumi.String("string"),
    		RecommendationType:   pulumi.String("string"),
    		ResourceGroup:        pulumi.String("string"),
    		ResourceGroups: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Caller: pulumi.String("string"),
    		Levels: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Level:         pulumi.String("string"),
    		OperationName: pulumi.String("string"),
    		ResourceProviders: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		ResourceType: pulumi.String("string"),
    		ResourceTypes: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		ServiceHealth: &monitoring.ActivityLogAlertCriteriaServiceHealthArgs{
    			Events: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Locations: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Services: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		Status: pulumi.String("string"),
    		Statuses: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		SubStatus: pulumi.String("string"),
    		SubStatuses: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	ResourceGroupName: pulumi.String("string"),
    	Scopes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Actions: monitoring.ActivityLogAlertActionArray{
    		&monitoring.ActivityLogAlertActionArgs{
    			ActionGroupId: pulumi.String("string"),
    			WebhookProperties: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    		},
    	},
    	Description: pulumi.String("string"),
    	Enabled:     pulumi.Bool(false),
    	Location:    pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var activityLogAlertResource = new ActivityLogAlert("activityLogAlertResource", ActivityLogAlertArgs.builder()
        .criteria(ActivityLogAlertCriteriaArgs.builder()
            .category("string")
            .resourceHealth(ActivityLogAlertCriteriaResourceHealthArgs.builder()
                .currents("string")
                .previouses("string")
                .reasons("string")
                .build())
            .recommendationCategory("string")
            .resourceId("string")
            .resourceProvider("string")
            .resourceIds("string")
            .recommendationImpact("string")
            .recommendationType("string")
            .resourceGroup("string")
            .resourceGroups("string")
            .caller("string")
            .levels("string")
            .level("string")
            .operationName("string")
            .resourceProviders("string")
            .resourceType("string")
            .resourceTypes("string")
            .serviceHealth(ActivityLogAlertCriteriaServiceHealthArgs.builder()
                .events("string")
                .locations("string")
                .services("string")
                .build())
            .status("string")
            .statuses("string")
            .subStatus("string")
            .subStatuses("string")
            .build())
        .resourceGroupName("string")
        .scopes("string")
        .actions(ActivityLogAlertActionArgs.builder()
            .actionGroupId("string")
            .webhookProperties(Map.of("string", "string"))
            .build())
        .description("string")
        .enabled(false)
        .location("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    activity_log_alert_resource = azure.monitoring.ActivityLogAlert("activityLogAlertResource",
        criteria={
            "category": "string",
            "resourceHealth": {
                "currents": ["string"],
                "previouses": ["string"],
                "reasons": ["string"],
            },
            "recommendationCategory": "string",
            "resourceId": "string",
            "resourceProvider": "string",
            "resourceIds": ["string"],
            "recommendationImpact": "string",
            "recommendationType": "string",
            "resourceGroup": "string",
            "resourceGroups": ["string"],
            "caller": "string",
            "levels": ["string"],
            "level": "string",
            "operationName": "string",
            "resourceProviders": ["string"],
            "resourceType": "string",
            "resourceTypes": ["string"],
            "serviceHealth": {
                "events": ["string"],
                "locations": ["string"],
                "services": ["string"],
            },
            "status": "string",
            "statuses": ["string"],
            "subStatus": "string",
            "subStatuses": ["string"],
        },
        resource_group_name="string",
        scopes=["string"],
        actions=[{
            "actionGroupId": "string",
            "webhookProperties": {
                "string": "string",
            },
        }],
        description="string",
        enabled=False,
        location="string",
        name="string",
        tags={
            "string": "string",
        })
    
    const activityLogAlertResource = new azure.monitoring.ActivityLogAlert("activityLogAlertResource", {
        criteria: {
            category: "string",
            resourceHealth: {
                currents: ["string"],
                previouses: ["string"],
                reasons: ["string"],
            },
            recommendationCategory: "string",
            resourceId: "string",
            resourceProvider: "string",
            resourceIds: ["string"],
            recommendationImpact: "string",
            recommendationType: "string",
            resourceGroup: "string",
            resourceGroups: ["string"],
            caller: "string",
            levels: ["string"],
            level: "string",
            operationName: "string",
            resourceProviders: ["string"],
            resourceType: "string",
            resourceTypes: ["string"],
            serviceHealth: {
                events: ["string"],
                locations: ["string"],
                services: ["string"],
            },
            status: "string",
            statuses: ["string"],
            subStatus: "string",
            subStatuses: ["string"],
        },
        resourceGroupName: "string",
        scopes: ["string"],
        actions: [{
            actionGroupId: "string",
            webhookProperties: {
                string: "string",
            },
        }],
        description: "string",
        enabled: false,
        location: "string",
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure:monitoring:ActivityLogAlert
    properties:
        actions:
            - actionGroupId: string
              webhookProperties:
                string: string
        criteria:
            caller: string
            category: string
            level: string
            levels:
                - string
            operationName: string
            recommendationCategory: string
            recommendationImpact: string
            recommendationType: string
            resourceGroup: string
            resourceGroups:
                - string
            resourceHealth:
                currents:
                    - string
                previouses:
                    - string
                reasons:
                    - string
            resourceId: string
            resourceIds:
                - string
            resourceProvider: string
            resourceProviders:
                - string
            resourceType: string
            resourceTypes:
                - string
            serviceHealth:
                events:
                    - string
                locations:
                    - string
                services:
                    - string
            status: string
            statuses:
                - string
            subStatus: string
            subStatuses:
                - string
        description: string
        enabled: false
        location: string
        name: string
        resourceGroupName: string
        scopes:
            - string
        tags:
            string: string
    

    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:

    Criteria ActivityLogAlertCriteria
    A criteria block as defined below.
    ResourceGroupName string
    The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
    Scopes List<string>
    The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
    Actions List<ActivityLogAlertAction>
    One or more action blocks as defined below.
    Description string
    The description of this activity log alert.
    Enabled bool
    Should this Activity Log Alert be enabled? Defaults to true.
    Location string
    The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created.
    Name string
    The name of the activity log alert. Changing this forces a new resource to be created.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    Criteria ActivityLogAlertCriteriaArgs
    A criteria block as defined below.
    ResourceGroupName string
    The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
    Scopes []string
    The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
    Actions []ActivityLogAlertActionArgs
    One or more action blocks as defined below.
    Description string
    The description of this activity log alert.
    Enabled bool
    Should this Activity Log Alert be enabled? Defaults to true.
    Location string
    The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created.
    Name string
    The name of the activity log alert. Changing this forces a new resource to be created.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    criteria ActivityLogAlertCriteria
    A criteria block as defined below.
    resourceGroupName String
    The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
    scopes List<String>
    The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
    actions List<ActivityLogAlertAction>
    One or more action blocks as defined below.
    description String
    The description of this activity log alert.
    enabled Boolean
    Should this Activity Log Alert be enabled? Defaults to true.
    location String
    The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created.
    name String
    The name of the activity log alert. Changing this forces a new resource to be created.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    criteria ActivityLogAlertCriteria
    A criteria block as defined below.
    resourceGroupName string
    The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
    scopes string[]
    The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
    actions ActivityLogAlertAction[]
    One or more action blocks as defined below.
    description string
    The description of this activity log alert.
    enabled boolean
    Should this Activity Log Alert be enabled? Defaults to true.
    location string
    The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created.
    name string
    The name of the activity log alert. Changing this forces a new resource to be created.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    criteria ActivityLogAlertCriteriaArgs
    A criteria block as defined below.
    resource_group_name str
    The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
    scopes Sequence[str]
    The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
    actions Sequence[ActivityLogAlertActionArgs]
    One or more action blocks as defined below.
    description str
    The description of this activity log alert.
    enabled bool
    Should this Activity Log Alert be enabled? Defaults to true.
    location str
    The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created.
    name str
    The name of the activity log alert. Changing this forces a new resource to be created.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    criteria Property Map
    A criteria block as defined below.
    resourceGroupName String
    The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
    scopes List<String>
    The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
    actions List<Property Map>
    One or more action blocks as defined below.
    description String
    The description of this activity log alert.
    enabled Boolean
    Should this Activity Log Alert be enabled? Defaults to true.
    location String
    The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created.
    name String
    The name of the activity log alert. Changing this forces a new resource to be created.
    tags Map<String>
    A mapping of tags to assign to the resource.

    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ActivityLogAlert Resource

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

    public static get(name: string, id: Input<ID>, state?: ActivityLogAlertState, opts?: CustomResourceOptions): ActivityLogAlert
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            actions: Optional[Sequence[ActivityLogAlertActionArgs]] = None,
            criteria: Optional[ActivityLogAlertCriteriaArgs] = None,
            description: Optional[str] = None,
            enabled: Optional[bool] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            scopes: Optional[Sequence[str]] = None,
            tags: Optional[Mapping[str, str]] = None) -> ActivityLogAlert
    func GetActivityLogAlert(ctx *Context, name string, id IDInput, state *ActivityLogAlertState, opts ...ResourceOption) (*ActivityLogAlert, error)
    public static ActivityLogAlert Get(string name, Input<string> id, ActivityLogAlertState? state, CustomResourceOptions? opts = null)
    public static ActivityLogAlert get(String name, Output<String> id, ActivityLogAlertState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Actions List<ActivityLogAlertAction>
    One or more action blocks as defined below.
    Criteria ActivityLogAlertCriteria
    A criteria block as defined below.
    Description string
    The description of this activity log alert.
    Enabled bool
    Should this Activity Log Alert be enabled? Defaults to true.
    Location string
    The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created.
    Name string
    The name of the activity log alert. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
    Scopes List<string>
    The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    Actions []ActivityLogAlertActionArgs
    One or more action blocks as defined below.
    Criteria ActivityLogAlertCriteriaArgs
    A criteria block as defined below.
    Description string
    The description of this activity log alert.
    Enabled bool
    Should this Activity Log Alert be enabled? Defaults to true.
    Location string
    The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created.
    Name string
    The name of the activity log alert. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
    Scopes []string
    The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
    Tags map[string]string
    A mapping of tags to assign to the resource.
    actions List<ActivityLogAlertAction>
    One or more action blocks as defined below.
    criteria ActivityLogAlertCriteria
    A criteria block as defined below.
    description String
    The description of this activity log alert.
    enabled Boolean
    Should this Activity Log Alert be enabled? Defaults to true.
    location String
    The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created.
    name String
    The name of the activity log alert. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
    scopes List<String>
    The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    actions ActivityLogAlertAction[]
    One or more action blocks as defined below.
    criteria ActivityLogAlertCriteria
    A criteria block as defined below.
    description string
    The description of this activity log alert.
    enabled boolean
    Should this Activity Log Alert be enabled? Defaults to true.
    location string
    The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created.
    name string
    The name of the activity log alert. Changing this forces a new resource to be created.
    resourceGroupName string
    The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
    scopes string[]
    The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    actions Sequence[ActivityLogAlertActionArgs]
    One or more action blocks as defined below.
    criteria ActivityLogAlertCriteriaArgs
    A criteria block as defined below.
    description str
    The description of this activity log alert.
    enabled bool
    Should this Activity Log Alert be enabled? Defaults to true.
    location str
    The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created.
    name str
    The name of the activity log alert. Changing this forces a new resource to be created.
    resource_group_name str
    The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
    scopes Sequence[str]
    The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    actions List<Property Map>
    One or more action blocks as defined below.
    criteria Property Map
    A criteria block as defined below.
    description String
    The description of this activity log alert.
    enabled Boolean
    Should this Activity Log Alert be enabled? Defaults to true.
    location String
    The Azure Region where the activity log alert rule should exist. Changing this forces a new resource to be created.
    name String
    The name of the activity log alert. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the resource group in which to create the activity log alert instance. Changing this forces a new resource to be created.
    scopes List<String>
    The Scope at which the Activity Log should be applied. A list of strings which could be a resource group , or a subscription, or a resource ID (such as a Storage Account).
    tags Map<String>
    A mapping of tags to assign to the resource.

    Supporting Types

    ActivityLogAlertAction, ActivityLogAlertActionArgs

    ActionGroupId string
    The ID of the Action Group can be sourced from the azure.monitoring.ActionGroup resource.
    WebhookProperties Dictionary<string, string>
    The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
    ActionGroupId string
    The ID of the Action Group can be sourced from the azure.monitoring.ActionGroup resource.
    WebhookProperties map[string]string
    The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
    actionGroupId String
    The ID of the Action Group can be sourced from the azure.monitoring.ActionGroup resource.
    webhookProperties Map<String,String>
    The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
    actionGroupId string
    The ID of the Action Group can be sourced from the azure.monitoring.ActionGroup resource.
    webhookProperties {[key: string]: string}
    The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
    action_group_id str
    The ID of the Action Group can be sourced from the azure.monitoring.ActionGroup resource.
    webhook_properties Mapping[str, str]
    The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
    actionGroupId String
    The ID of the Action Group can be sourced from the azure.monitoring.ActionGroup resource.
    webhookProperties Map<String>
    The map of custom string properties to include with the post operation. These data are appended to the webhook payload.

    ActivityLogAlertCriteria, ActivityLogAlertCriteriaArgs

    Category string
    The category of the operation. Possible values are Administrative, Autoscale, Policy, Recommendation, ResourceHealth, Security and ServiceHealth.
    Caller string
    The email address or Azure Active Directory identifier of the user who performed the operation.
    Level string
    The severity level of the event. Possible values are Verbose, Informational, Warning, Error, and Critical.
    Levels List<string>

    A list of severity level of the event. Possible values are Verbose, Informational, Warning, Error, and Critical.

    NOTE: level and levels are mutually exclusive.

    OperationName string
    The Resource Manager Role-Based Access Control operation name. Supported operation should be of the form: <resourceProvider>/<resourceType>/<operation>.
    RecommendationCategory string
    The recommendation category of the event. Possible values are Cost, Reliability, OperationalExcellence, HighAvailability and Performance. It is only allowed when category is Recommendation.
    RecommendationImpact string
    The recommendation impact of the event. Possible values are High, Medium and Low. It is only allowed when category is Recommendation.
    RecommendationType string
    The recommendation type of the event. It is only allowed when category is Recommendation.
    ResourceGroup string
    The name of resource group monitored by the activity log alert.
    ResourceGroups List<string>

    A list of names of resource groups monitored by the activity log alert.

    NOTE: resource_group and resource_groups are mutually exclusive.

    ResourceHealth ActivityLogAlertCriteriaResourceHealth
    A block to define fine grain resource health settings.
    ResourceId string
    The specific resource monitored by the activity log alert. It should be within one of the scopes.
    ResourceIds List<string>

    A list of specific resources monitored by the activity log alert. It should be within one of the scopes.

    NOTE: resource_id and resource_ids are mutually exclusive.

    ResourceProvider string
    The name of the resource provider monitored by the activity log alert.
    ResourceProviders List<string>

    A list of names of resource providers monitored by the activity log alert.

    NOTE: resource_provider and resource_providers are mutually exclusive.

    ResourceType string
    The resource type monitored by the activity log alert.
    ResourceTypes List<string>

    A list of resource types monitored by the activity log alert.

    NOTE: resource_type and resource_types are mutually exclusive.

    ServiceHealth ActivityLogAlertCriteriaServiceHealth
    A block to define fine grain service health settings.
    Status string
    The status of the event. For example, Started, Failed, or Succeeded.
    Statuses List<string>

    A list of status of the event. For example, Started, Failed, or Succeeded.

    NOTE: status and statuses are mutually exclusive.

    SubStatus string
    The sub status of the event.
    SubStatuses List<string>

    A list of sub status of the event.

    NOTE: sub_status and sub_statuses are mutually exclusive.

    Category string
    The category of the operation. Possible values are Administrative, Autoscale, Policy, Recommendation, ResourceHealth, Security and ServiceHealth.
    Caller string
    The email address or Azure Active Directory identifier of the user who performed the operation.
    Level string
    The severity level of the event. Possible values are Verbose, Informational, Warning, Error, and Critical.
    Levels []string

    A list of severity level of the event. Possible values are Verbose, Informational, Warning, Error, and Critical.

    NOTE: level and levels are mutually exclusive.

    OperationName string
    The Resource Manager Role-Based Access Control operation name. Supported operation should be of the form: <resourceProvider>/<resourceType>/<operation>.
    RecommendationCategory string
    The recommendation category of the event. Possible values are Cost, Reliability, OperationalExcellence, HighAvailability and Performance. It is only allowed when category is Recommendation.
    RecommendationImpact string
    The recommendation impact of the event. Possible values are High, Medium and Low. It is only allowed when category is Recommendation.
    RecommendationType string
    The recommendation type of the event. It is only allowed when category is Recommendation.
    ResourceGroup string
    The name of resource group monitored by the activity log alert.
    ResourceGroups []string

    A list of names of resource groups monitored by the activity log alert.

    NOTE: resource_group and resource_groups are mutually exclusive.

    ResourceHealth ActivityLogAlertCriteriaResourceHealth
    A block to define fine grain resource health settings.
    ResourceId string
    The specific resource monitored by the activity log alert. It should be within one of the scopes.
    ResourceIds []string

    A list of specific resources monitored by the activity log alert. It should be within one of the scopes.

    NOTE: resource_id and resource_ids are mutually exclusive.

    ResourceProvider string
    The name of the resource provider monitored by the activity log alert.
    ResourceProviders []string

    A list of names of resource providers monitored by the activity log alert.

    NOTE: resource_provider and resource_providers are mutually exclusive.

    ResourceType string
    The resource type monitored by the activity log alert.
    ResourceTypes []string

    A list of resource types monitored by the activity log alert.

    NOTE: resource_type and resource_types are mutually exclusive.

    ServiceHealth ActivityLogAlertCriteriaServiceHealth
    A block to define fine grain service health settings.
    Status string
    The status of the event. For example, Started, Failed, or Succeeded.
    Statuses []string

    A list of status of the event. For example, Started, Failed, or Succeeded.

    NOTE: status and statuses are mutually exclusive.

    SubStatus string
    The sub status of the event.
    SubStatuses []string

    A list of sub status of the event.

    NOTE: sub_status and sub_statuses are mutually exclusive.

    category String
    The category of the operation. Possible values are Administrative, Autoscale, Policy, Recommendation, ResourceHealth, Security and ServiceHealth.
    caller String
    The email address or Azure Active Directory identifier of the user who performed the operation.
    level String
    The severity level of the event. Possible values are Verbose, Informational, Warning, Error, and Critical.
    levels List<String>

    A list of severity level of the event. Possible values are Verbose, Informational, Warning, Error, and Critical.

    NOTE: level and levels are mutually exclusive.

    operationName String
    The Resource Manager Role-Based Access Control operation name. Supported operation should be of the form: <resourceProvider>/<resourceType>/<operation>.
    recommendationCategory String
    The recommendation category of the event. Possible values are Cost, Reliability, OperationalExcellence, HighAvailability and Performance. It is only allowed when category is Recommendation.
    recommendationImpact String
    The recommendation impact of the event. Possible values are High, Medium and Low. It is only allowed when category is Recommendation.
    recommendationType String
    The recommendation type of the event. It is only allowed when category is Recommendation.
    resourceGroup String
    The name of resource group monitored by the activity log alert.
    resourceGroups List<String>

    A list of names of resource groups monitored by the activity log alert.

    NOTE: resource_group and resource_groups are mutually exclusive.

    resourceHealth ActivityLogAlertCriteriaResourceHealth
    A block to define fine grain resource health settings.
    resourceId String
    The specific resource monitored by the activity log alert. It should be within one of the scopes.
    resourceIds List<String>

    A list of specific resources monitored by the activity log alert. It should be within one of the scopes.

    NOTE: resource_id and resource_ids are mutually exclusive.

    resourceProvider String
    The name of the resource provider monitored by the activity log alert.
    resourceProviders List<String>

    A list of names of resource providers monitored by the activity log alert.

    NOTE: resource_provider and resource_providers are mutually exclusive.

    resourceType String
    The resource type monitored by the activity log alert.
    resourceTypes List<String>

    A list of resource types monitored by the activity log alert.

    NOTE: resource_type and resource_types are mutually exclusive.

    serviceHealth ActivityLogAlertCriteriaServiceHealth
    A block to define fine grain service health settings.
    status String
    The status of the event. For example, Started, Failed, or Succeeded.
    statuses List<String>

    A list of status of the event. For example, Started, Failed, or Succeeded.

    NOTE: status and statuses are mutually exclusive.

    subStatus String
    The sub status of the event.
    subStatuses List<String>

    A list of sub status of the event.

    NOTE: sub_status and sub_statuses are mutually exclusive.

    category string
    The category of the operation. Possible values are Administrative, Autoscale, Policy, Recommendation, ResourceHealth, Security and ServiceHealth.
    caller string
    The email address or Azure Active Directory identifier of the user who performed the operation.
    level string
    The severity level of the event. Possible values are Verbose, Informational, Warning, Error, and Critical.
    levels string[]

    A list of severity level of the event. Possible values are Verbose, Informational, Warning, Error, and Critical.

    NOTE: level and levels are mutually exclusive.

    operationName string
    The Resource Manager Role-Based Access Control operation name. Supported operation should be of the form: <resourceProvider>/<resourceType>/<operation>.
    recommendationCategory string
    The recommendation category of the event. Possible values are Cost, Reliability, OperationalExcellence, HighAvailability and Performance. It is only allowed when category is Recommendation.
    recommendationImpact string
    The recommendation impact of the event. Possible values are High, Medium and Low. It is only allowed when category is Recommendation.
    recommendationType string
    The recommendation type of the event. It is only allowed when category is Recommendation.
    resourceGroup string
    The name of resource group monitored by the activity log alert.
    resourceGroups string[]

    A list of names of resource groups monitored by the activity log alert.

    NOTE: resource_group and resource_groups are mutually exclusive.

    resourceHealth ActivityLogAlertCriteriaResourceHealth
    A block to define fine grain resource health settings.
    resourceId string
    The specific resource monitored by the activity log alert. It should be within one of the scopes.
    resourceIds string[]

    A list of specific resources monitored by the activity log alert. It should be within one of the scopes.

    NOTE: resource_id and resource_ids are mutually exclusive.

    resourceProvider string
    The name of the resource provider monitored by the activity log alert.
    resourceProviders string[]

    A list of names of resource providers monitored by the activity log alert.

    NOTE: resource_provider and resource_providers are mutually exclusive.

    resourceType string
    The resource type monitored by the activity log alert.
    resourceTypes string[]

    A list of resource types monitored by the activity log alert.

    NOTE: resource_type and resource_types are mutually exclusive.

    serviceHealth ActivityLogAlertCriteriaServiceHealth
    A block to define fine grain service health settings.
    status string
    The status of the event. For example, Started, Failed, or Succeeded.
    statuses string[]

    A list of status of the event. For example, Started, Failed, or Succeeded.

    NOTE: status and statuses are mutually exclusive.

    subStatus string
    The sub status of the event.
    subStatuses string[]

    A list of sub status of the event.

    NOTE: sub_status and sub_statuses are mutually exclusive.

    category str
    The category of the operation. Possible values are Administrative, Autoscale, Policy, Recommendation, ResourceHealth, Security and ServiceHealth.
    caller str
    The email address or Azure Active Directory identifier of the user who performed the operation.
    level str
    The severity level of the event. Possible values are Verbose, Informational, Warning, Error, and Critical.
    levels Sequence[str]

    A list of severity level of the event. Possible values are Verbose, Informational, Warning, Error, and Critical.

    NOTE: level and levels are mutually exclusive.

    operation_name str
    The Resource Manager Role-Based Access Control operation name. Supported operation should be of the form: <resourceProvider>/<resourceType>/<operation>.
    recommendation_category str
    The recommendation category of the event. Possible values are Cost, Reliability, OperationalExcellence, HighAvailability and Performance. It is only allowed when category is Recommendation.
    recommendation_impact str
    The recommendation impact of the event. Possible values are High, Medium and Low. It is only allowed when category is Recommendation.
    recommendation_type str
    The recommendation type of the event. It is only allowed when category is Recommendation.
    resource_group str
    The name of resource group monitored by the activity log alert.
    resource_groups Sequence[str]

    A list of names of resource groups monitored by the activity log alert.

    NOTE: resource_group and resource_groups are mutually exclusive.

    resource_health ActivityLogAlertCriteriaResourceHealth
    A block to define fine grain resource health settings.
    resource_id str
    The specific resource monitored by the activity log alert. It should be within one of the scopes.
    resource_ids Sequence[str]

    A list of specific resources monitored by the activity log alert. It should be within one of the scopes.

    NOTE: resource_id and resource_ids are mutually exclusive.

    resource_provider str
    The name of the resource provider monitored by the activity log alert.
    resource_providers Sequence[str]

    A list of names of resource providers monitored by the activity log alert.

    NOTE: resource_provider and resource_providers are mutually exclusive.

    resource_type str
    The resource type monitored by the activity log alert.
    resource_types Sequence[str]

    A list of resource types monitored by the activity log alert.

    NOTE: resource_type and resource_types are mutually exclusive.

    service_health ActivityLogAlertCriteriaServiceHealth
    A block to define fine grain service health settings.
    status str
    The status of the event. For example, Started, Failed, or Succeeded.
    statuses Sequence[str]

    A list of status of the event. For example, Started, Failed, or Succeeded.

    NOTE: status and statuses are mutually exclusive.

    sub_status str
    The sub status of the event.
    sub_statuses Sequence[str]

    A list of sub status of the event.

    NOTE: sub_status and sub_statuses are mutually exclusive.

    category String
    The category of the operation. Possible values are Administrative, Autoscale, Policy, Recommendation, ResourceHealth, Security and ServiceHealth.
    caller String
    The email address or Azure Active Directory identifier of the user who performed the operation.
    level String
    The severity level of the event. Possible values are Verbose, Informational, Warning, Error, and Critical.
    levels List<String>

    A list of severity level of the event. Possible values are Verbose, Informational, Warning, Error, and Critical.

    NOTE: level and levels are mutually exclusive.

    operationName String
    The Resource Manager Role-Based Access Control operation name. Supported operation should be of the form: <resourceProvider>/<resourceType>/<operation>.
    recommendationCategory String
    The recommendation category of the event. Possible values are Cost, Reliability, OperationalExcellence, HighAvailability and Performance. It is only allowed when category is Recommendation.
    recommendationImpact String
    The recommendation impact of the event. Possible values are High, Medium and Low. It is only allowed when category is Recommendation.
    recommendationType String
    The recommendation type of the event. It is only allowed when category is Recommendation.
    resourceGroup String
    The name of resource group monitored by the activity log alert.
    resourceGroups List<String>

    A list of names of resource groups monitored by the activity log alert.

    NOTE: resource_group and resource_groups are mutually exclusive.

    resourceHealth Property Map
    A block to define fine grain resource health settings.
    resourceId String
    The specific resource monitored by the activity log alert. It should be within one of the scopes.
    resourceIds List<String>

    A list of specific resources monitored by the activity log alert. It should be within one of the scopes.

    NOTE: resource_id and resource_ids are mutually exclusive.

    resourceProvider String
    The name of the resource provider monitored by the activity log alert.
    resourceProviders List<String>

    A list of names of resource providers monitored by the activity log alert.

    NOTE: resource_provider and resource_providers are mutually exclusive.

    resourceType String
    The resource type monitored by the activity log alert.
    resourceTypes List<String>

    A list of resource types monitored by the activity log alert.

    NOTE: resource_type and resource_types are mutually exclusive.

    serviceHealth Property Map
    A block to define fine grain service health settings.
    status String
    The status of the event. For example, Started, Failed, or Succeeded.
    statuses List<String>

    A list of status of the event. For example, Started, Failed, or Succeeded.

    NOTE: status and statuses are mutually exclusive.

    subStatus String
    The sub status of the event.
    subStatuses List<String>

    A list of sub status of the event.

    NOTE: sub_status and sub_statuses are mutually exclusive.

    ActivityLogAlertCriteriaResourceHealth, ActivityLogAlertCriteriaResourceHealthArgs

    Currents List<string>
    The current resource health statuses that will log an alert. Possible values are Available, Degraded, Unavailable and Unknown.
    Previouses List<string>
    The previous resource health statuses that will log an alert. Possible values are Available, Degraded, Unavailable and Unknown.
    Reasons List<string>
    The reason that will log an alert. Possible values are PlatformInitiated (such as a problem with the resource in an affected region of an Azure incident), UserInitiated (such as a shutdown request of a VM) and Unknown.
    Currents []string
    The current resource health statuses that will log an alert. Possible values are Available, Degraded, Unavailable and Unknown.
    Previouses []string
    The previous resource health statuses that will log an alert. Possible values are Available, Degraded, Unavailable and Unknown.
    Reasons []string
    The reason that will log an alert. Possible values are PlatformInitiated (such as a problem with the resource in an affected region of an Azure incident), UserInitiated (such as a shutdown request of a VM) and Unknown.
    currents List<String>
    The current resource health statuses that will log an alert. Possible values are Available, Degraded, Unavailable and Unknown.
    previouses List<String>
    The previous resource health statuses that will log an alert. Possible values are Available, Degraded, Unavailable and Unknown.
    reasons List<String>
    The reason that will log an alert. Possible values are PlatformInitiated (such as a problem with the resource in an affected region of an Azure incident), UserInitiated (such as a shutdown request of a VM) and Unknown.
    currents string[]
    The current resource health statuses that will log an alert. Possible values are Available, Degraded, Unavailable and Unknown.
    previouses string[]
    The previous resource health statuses that will log an alert. Possible values are Available, Degraded, Unavailable and Unknown.
    reasons string[]
    The reason that will log an alert. Possible values are PlatformInitiated (such as a problem with the resource in an affected region of an Azure incident), UserInitiated (such as a shutdown request of a VM) and Unknown.
    currents Sequence[str]
    The current resource health statuses that will log an alert. Possible values are Available, Degraded, Unavailable and Unknown.
    previouses Sequence[str]
    The previous resource health statuses that will log an alert. Possible values are Available, Degraded, Unavailable and Unknown.
    reasons Sequence[str]
    The reason that will log an alert. Possible values are PlatformInitiated (such as a problem with the resource in an affected region of an Azure incident), UserInitiated (such as a shutdown request of a VM) and Unknown.
    currents List<String>
    The current resource health statuses that will log an alert. Possible values are Available, Degraded, Unavailable and Unknown.
    previouses List<String>
    The previous resource health statuses that will log an alert. Possible values are Available, Degraded, Unavailable and Unknown.
    reasons List<String>
    The reason that will log an alert. Possible values are PlatformInitiated (such as a problem with the resource in an affected region of an Azure incident), UserInitiated (such as a shutdown request of a VM) and Unknown.

    ActivityLogAlertCriteriaServiceHealth, ActivityLogAlertCriteriaServiceHealthArgs

    Events List<string>
    Events this alert will monitor Possible values are Incident, Maintenance, Informational, ActionRequired and Security.
    Locations List<string>
    Locations this alert will monitor. For example, West Europe.
    Services List<string>
    Services this alert will monitor. For example, Activity Logs & Alerts, Action Groups. Defaults to all Services.
    Events []string
    Events this alert will monitor Possible values are Incident, Maintenance, Informational, ActionRequired and Security.
    Locations []string
    Locations this alert will monitor. For example, West Europe.
    Services []string
    Services this alert will monitor. For example, Activity Logs & Alerts, Action Groups. Defaults to all Services.
    events List<String>
    Events this alert will monitor Possible values are Incident, Maintenance, Informational, ActionRequired and Security.
    locations List<String>
    Locations this alert will monitor. For example, West Europe.
    services List<String>
    Services this alert will monitor. For example, Activity Logs & Alerts, Action Groups. Defaults to all Services.
    events string[]
    Events this alert will monitor Possible values are Incident, Maintenance, Informational, ActionRequired and Security.
    locations string[]
    Locations this alert will monitor. For example, West Europe.
    services string[]
    Services this alert will monitor. For example, Activity Logs & Alerts, Action Groups. Defaults to all Services.
    events Sequence[str]
    Events this alert will monitor Possible values are Incident, Maintenance, Informational, ActionRequired and Security.
    locations Sequence[str]
    Locations this alert will monitor. For example, West Europe.
    services Sequence[str]
    Services this alert will monitor. For example, Activity Logs & Alerts, Action Groups. Defaults to all Services.
    events List<String>
    Events this alert will monitor Possible values are Incident, Maintenance, Informational, ActionRequired and Security.
    locations List<String>
    Locations this alert will monitor. For example, West Europe.
    services List<String>
    Services this alert will monitor. For example, Activity Logs & Alerts, Action Groups. Defaults to all Services.

    Import

    Activity log alerts can be imported using the resource id, e.g.

    $ pulumi import azure:monitoring/activityLogAlert:ActivityLogAlert example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Insights/activityLogAlerts/myalertname
    

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

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi