1. Packages
  2. Azure Native
  3. API Docs
  4. alertsmanagement
  5. ActionRuleByName
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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.alertsmanagement.ActionRuleByName

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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    Action rule object containing target scope, conditions and suppression logic Azure REST API version: 2019-05-05-preview. Prior API version in Azure Native 1.x: 2019-05-05-preview.

    Other available API versions: 2018-11-02-privatepreview.

    Example Usage

    PutActionRule

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var actionRuleByName = new AzureNative.AlertsManagement.ActionRuleByName("actionRuleByName", new()
        {
            ActionRuleName = "DailySuppression",
            Location = "Global",
            Properties = new AzureNative.AlertsManagement.Inputs.SuppressionArgs
            {
                Conditions = new AzureNative.AlertsManagement.Inputs.ConditionsArgs
                {
                    MonitorCondition = new AzureNative.AlertsManagement.Inputs.ConditionArgs
                    {
                        Operator = AzureNative.AlertsManagement.Operator.EqualsValue,
                        Values = new[]
                        {
                            "Fired",
                        },
                    },
                    MonitorService = new AzureNative.AlertsManagement.Inputs.ConditionArgs
                    {
                        Operator = AzureNative.AlertsManagement.Operator.EqualsValue,
                        Values = new[]
                        {
                            "Platform",
                            "Application Insights",
                        },
                    },
                    Severity = new AzureNative.AlertsManagement.Inputs.ConditionArgs
                    {
                        Operator = AzureNative.AlertsManagement.Operator.EqualsValue,
                        Values = new[]
                        {
                            "Sev0",
                            "Sev2",
                        },
                    },
                    TargetResourceType = new AzureNative.AlertsManagement.Inputs.ConditionArgs
                    {
                        Operator = AzureNative.AlertsManagement.Operator.NotEquals,
                        Values = new[]
                        {
                            "Microsoft.Compute/VirtualMachines",
                        },
                    },
                },
                Description = "Action rule on resource group for daily suppression",
                Scope = new AzureNative.AlertsManagement.Inputs.ScopeArgs
                {
                    ScopeType = AzureNative.AlertsManagement.ScopeType.ResourceGroup,
                    Values = new[]
                    {
                        "/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg",
                    },
                },
                Status = AzureNative.AlertsManagement.ActionRuleStatus.Enabled,
                SuppressionConfig = new AzureNative.AlertsManagement.Inputs.SuppressionConfigArgs
                {
                    RecurrenceType = AzureNative.AlertsManagement.SuppressionType.Daily,
                    Schedule = new AzureNative.AlertsManagement.Inputs.SuppressionScheduleArgs
                    {
                        EndDate = "12/18/2018",
                        EndTime = "14:00:00",
                        StartDate = "12/09/2018",
                        StartTime = "06:00:00",
                    },
                },
                Type = "Suppression",
            },
            ResourceGroupName = "alertscorrelationrg",
            Tags = null,
        });
    
    });
    
    package main
    
    import (
    	alertsmanagement "github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := alertsmanagement.NewActionRuleByName(ctx, "actionRuleByName", &alertsmanagement.ActionRuleByNameArgs{
    			ActionRuleName: pulumi.String("DailySuppression"),
    			Location:       pulumi.String("Global"),
    			Properties: &alertsmanagement.SuppressionArgs{
    				Conditions: &alertsmanagement.ConditionsArgs{
    					MonitorCondition: &alertsmanagement.ConditionArgs{
    						Operator: pulumi.String(alertsmanagement.OperatorEquals),
    						Values: pulumi.StringArray{
    							pulumi.String("Fired"),
    						},
    					},
    					MonitorService: &alertsmanagement.ConditionArgs{
    						Operator: pulumi.String(alertsmanagement.OperatorEquals),
    						Values: pulumi.StringArray{
    							pulumi.String("Platform"),
    							pulumi.String("Application Insights"),
    						},
    					},
    					Severity: &alertsmanagement.ConditionArgs{
    						Operator: pulumi.String(alertsmanagement.OperatorEquals),
    						Values: pulumi.StringArray{
    							pulumi.String("Sev0"),
    							pulumi.String("Sev2"),
    						},
    					},
    					TargetResourceType: &alertsmanagement.ConditionArgs{
    						Operator: pulumi.String(alertsmanagement.OperatorNotEquals),
    						Values: pulumi.StringArray{
    							pulumi.String("Microsoft.Compute/VirtualMachines"),
    						},
    					},
    				},
    				Description: pulumi.String("Action rule on resource group for daily suppression"),
    				Scope: &alertsmanagement.ScopeArgs{
    					ScopeType: pulumi.String(alertsmanagement.ScopeTypeResourceGroup),
    					Values: pulumi.StringArray{
    						pulumi.String("/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg"),
    					},
    				},
    				Status: pulumi.String(alertsmanagement.ActionRuleStatusEnabled),
    				SuppressionConfig: &alertsmanagement.SuppressionConfigArgs{
    					RecurrenceType: pulumi.String(alertsmanagement.SuppressionTypeDaily),
    					Schedule: &alertsmanagement.SuppressionScheduleArgs{
    						EndDate:   pulumi.String("12/18/2018"),
    						EndTime:   pulumi.String("14:00:00"),
    						StartDate: pulumi.String("12/09/2018"),
    						StartTime: pulumi.String("06:00:00"),
    					},
    				},
    				Type: pulumi.String("Suppression"),
    			},
    			ResourceGroupName: pulumi.String("alertscorrelationrg"),
    			Tags:              pulumi.StringMap{},
    		})
    		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.alertsmanagement.ActionRuleByName;
    import com.pulumi.azurenative.alertsmanagement.ActionRuleByNameArgs;
    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 actionRuleByName = new ActionRuleByName("actionRuleByName", ActionRuleByNameArgs.builder()
                .actionRuleName("DailySuppression")
                .location("Global")
                .properties(SuppressionArgs.builder()
                    .conditions(ConditionsArgs.builder()
                        .monitorCondition(ConditionArgs.builder()
                            .operator("Equals")
                            .values("Fired")
                            .build())
                        .monitorService(ConditionArgs.builder()
                            .operator("Equals")
                            .values(                        
                                "Platform",
                                "Application Insights")
                            .build())
                        .severity(ConditionArgs.builder()
                            .operator("Equals")
                            .values(                        
                                "Sev0",
                                "Sev2")
                            .build())
                        .targetResourceType(ConditionArgs.builder()
                            .operator("NotEquals")
                            .values("Microsoft.Compute/VirtualMachines")
                            .build())
                        .build())
                    .description("Action rule on resource group for daily suppression")
                    .scope(ScopeArgs.builder()
                        .scopeType("ResourceGroup")
                        .values("/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg")
                        .build())
                    .status("Enabled")
                    .suppressionConfig(SuppressionConfigArgs.builder()
                        .recurrenceType("Daily")
                        .schedule(SuppressionScheduleArgs.builder()
                            .endDate("12/18/2018")
                            .endTime("14:00:00")
                            .startDate("12/09/2018")
                            .startTime("06:00:00")
                            .build())
                        .build())
                    .type("Suppression")
                    .build())
                .resourceGroupName("alertscorrelationrg")
                .tags()
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    action_rule_by_name = azure_native.alertsmanagement.ActionRuleByName("actionRuleByName",
        action_rule_name="DailySuppression",
        location="Global",
        properties={
            "conditions": {
                "monitor_condition": {
                    "operator": azure_native.alertsmanagement.Operator.EQUALS,
                    "values": ["Fired"],
                },
                "monitor_service": {
                    "operator": azure_native.alertsmanagement.Operator.EQUALS,
                    "values": [
                        "Platform",
                        "Application Insights",
                    ],
                },
                "severity": {
                    "operator": azure_native.alertsmanagement.Operator.EQUALS,
                    "values": [
                        "Sev0",
                        "Sev2",
                    ],
                },
                "target_resource_type": {
                    "operator": azure_native.alertsmanagement.Operator.NOT_EQUALS,
                    "values": ["Microsoft.Compute/VirtualMachines"],
                },
            },
            "description": "Action rule on resource group for daily suppression",
            "scope": {
                "scope_type": azure_native.alertsmanagement.ScopeType.RESOURCE_GROUP,
                "values": ["/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg"],
            },
            "status": azure_native.alertsmanagement.ActionRuleStatus.ENABLED,
            "suppression_config": {
                "recurrence_type": azure_native.alertsmanagement.SuppressionType.DAILY,
                "schedule": {
                    "end_date": "12/18/2018",
                    "end_time": "14:00:00",
                    "start_date": "12/09/2018",
                    "start_time": "06:00:00",
                },
            },
            "type": "Suppression",
        },
        resource_group_name="alertscorrelationrg",
        tags={})
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const actionRuleByName = new azure_native.alertsmanagement.ActionRuleByName("actionRuleByName", {
        actionRuleName: "DailySuppression",
        location: "Global",
        properties: {
            conditions: {
                monitorCondition: {
                    operator: azure_native.alertsmanagement.Operator.Equals,
                    values: ["Fired"],
                },
                monitorService: {
                    operator: azure_native.alertsmanagement.Operator.Equals,
                    values: [
                        "Platform",
                        "Application Insights",
                    ],
                },
                severity: {
                    operator: azure_native.alertsmanagement.Operator.Equals,
                    values: [
                        "Sev0",
                        "Sev2",
                    ],
                },
                targetResourceType: {
                    operator: azure_native.alertsmanagement.Operator.NotEquals,
                    values: ["Microsoft.Compute/VirtualMachines"],
                },
            },
            description: "Action rule on resource group for daily suppression",
            scope: {
                scopeType: azure_native.alertsmanagement.ScopeType.ResourceGroup,
                values: ["/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg"],
            },
            status: azure_native.alertsmanagement.ActionRuleStatus.Enabled,
            suppressionConfig: {
                recurrenceType: azure_native.alertsmanagement.SuppressionType.Daily,
                schedule: {
                    endDate: "12/18/2018",
                    endTime: "14:00:00",
                    startDate: "12/09/2018",
                    startTime: "06:00:00",
                },
            },
            type: "Suppression",
        },
        resourceGroupName: "alertscorrelationrg",
        tags: {},
    });
    
    resources:
      actionRuleByName:
        type: azure-native:alertsmanagement:ActionRuleByName
        properties:
          actionRuleName: DailySuppression
          location: Global
          properties:
            conditions:
              monitorCondition:
                operator: Equals
                values:
                  - Fired
              monitorService:
                operator: Equals
                values:
                  - Platform
                  - Application Insights
              severity:
                operator: Equals
                values:
                  - Sev0
                  - Sev2
              targetResourceType:
                operator: NotEquals
                values:
                  - Microsoft.Compute/VirtualMachines
            description: Action rule on resource group for daily suppression
            scope:
              scopeType: ResourceGroup
              values:
                - /subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg
            status: Enabled
            suppressionConfig:
              recurrenceType: Daily
              schedule:
                endDate: 12/18/2018
                endTime: 14:00:00
                startDate: 12/09/2018
                startTime: 06:00:00
            type: Suppression
          resourceGroupName: alertscorrelationrg
          tags: {}
    

    Create ActionRuleByName Resource

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

    Constructor syntax

    new ActionRuleByName(name: string, args: ActionRuleByNameArgs, opts?: CustomResourceOptions);
    @overload
    def ActionRuleByName(resource_name: str,
                         args: ActionRuleByNameArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def ActionRuleByName(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         resource_group_name: Optional[str] = None,
                         action_rule_name: Optional[str] = None,
                         location: Optional[str] = None,
                         properties: Optional[Union[ActionGroupArgs, DiagnosticsArgs, SuppressionArgs]] = None,
                         tags: Optional[Mapping[str, str]] = None)
    func NewActionRuleByName(ctx *Context, name string, args ActionRuleByNameArgs, opts ...ResourceOption) (*ActionRuleByName, error)
    public ActionRuleByName(string name, ActionRuleByNameArgs args, CustomResourceOptions? opts = null)
    public ActionRuleByName(String name, ActionRuleByNameArgs args)
    public ActionRuleByName(String name, ActionRuleByNameArgs args, CustomResourceOptions options)
    
    type: azure-native:alertsmanagement:ActionRuleByName
    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 ActionRuleByNameArgs
    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 ActionRuleByNameArgs
    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 ActionRuleByNameArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ActionRuleByNameArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ActionRuleByNameArgs
    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 actionRuleByNameResource = new AzureNative.AlertsManagement.ActionRuleByName("actionRuleByNameResource", new()
    {
        ResourceGroupName = "string",
        ActionRuleName = "string",
        Location = "string",
        Properties = new AzureNative.AlertsManagement.Inputs.ActionGroupArgs
        {
            ActionGroupId = "string",
            Type = "ActionGroup",
            Conditions = new AzureNative.AlertsManagement.Inputs.ConditionsArgs
            {
                AlertContext = new AzureNative.AlertsManagement.Inputs.ConditionArgs
                {
                    Field = "string",
                    Operator = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
                AlertRuleId = new AzureNative.AlertsManagement.Inputs.ConditionArgs
                {
                    Field = "string",
                    Operator = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
                AlertRuleName = new AzureNative.AlertsManagement.Inputs.ConditionArgs
                {
                    Field = "string",
                    Operator = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
                Description = new AzureNative.AlertsManagement.Inputs.ConditionArgs
                {
                    Field = "string",
                    Operator = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
                MonitorCondition = new AzureNative.AlertsManagement.Inputs.ConditionArgs
                {
                    Field = "string",
                    Operator = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
                MonitorService = new AzureNative.AlertsManagement.Inputs.ConditionArgs
                {
                    Field = "string",
                    Operator = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
                Severity = new AzureNative.AlertsManagement.Inputs.ConditionArgs
                {
                    Field = "string",
                    Operator = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
                TargetResourceType = new AzureNative.AlertsManagement.Inputs.ConditionArgs
                {
                    Field = "string",
                    Operator = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
            },
            Description = "string",
            Scope = new AzureNative.AlertsManagement.Inputs.ScopeArgs
            {
                ScopeType = "string",
                Values = new[]
                {
                    "string",
                },
            },
            Status = "string",
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := alertsmanagement.NewActionRuleByName(ctx, "actionRuleByNameResource", &alertsmanagement.ActionRuleByNameArgs{
    	ResourceGroupName: pulumi.String("string"),
    	ActionRuleName:    pulumi.String("string"),
    	Location:          pulumi.String("string"),
    	Properties: &alertsmanagement.ActionGroupArgs{
    		ActionGroupId: pulumi.String("string"),
    		Type:          pulumi.String("ActionGroup"),
    		Conditions: &alertsmanagement.ConditionsArgs{
    			AlertContext: &alertsmanagement.ConditionArgs{
    				Field:    pulumi.String("string"),
    				Operator: pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    			AlertRuleId: &alertsmanagement.ConditionArgs{
    				Field:    pulumi.String("string"),
    				Operator: pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    			AlertRuleName: &alertsmanagement.ConditionArgs{
    				Field:    pulumi.String("string"),
    				Operator: pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    			Description: &alertsmanagement.ConditionArgs{
    				Field:    pulumi.String("string"),
    				Operator: pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    			MonitorCondition: &alertsmanagement.ConditionArgs{
    				Field:    pulumi.String("string"),
    				Operator: pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    			MonitorService: &alertsmanagement.ConditionArgs{
    				Field:    pulumi.String("string"),
    				Operator: pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    			Severity: &alertsmanagement.ConditionArgs{
    				Field:    pulumi.String("string"),
    				Operator: pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    			TargetResourceType: &alertsmanagement.ConditionArgs{
    				Field:    pulumi.String("string"),
    				Operator: pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    		Description: pulumi.String("string"),
    		Scope: &alertsmanagement.ScopeArgs{
    			ScopeType: pulumi.String("string"),
    			Values: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		Status: pulumi.String("string"),
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var actionRuleByNameResource = new ActionRuleByName("actionRuleByNameResource", ActionRuleByNameArgs.builder()
        .resourceGroupName("string")
        .actionRuleName("string")
        .location("string")
        .properties(ActionGroupArgs.builder()
            .actionGroupId("string")
            .type("ActionGroup")
            .conditions(ConditionsArgs.builder()
                .alertContext(ConditionArgs.builder()
                    .field("string")
                    .operator("string")
                    .values("string")
                    .build())
                .alertRuleId(ConditionArgs.builder()
                    .field("string")
                    .operator("string")
                    .values("string")
                    .build())
                .alertRuleName(ConditionArgs.builder()
                    .field("string")
                    .operator("string")
                    .values("string")
                    .build())
                .description(ConditionArgs.builder()
                    .field("string")
                    .operator("string")
                    .values("string")
                    .build())
                .monitorCondition(ConditionArgs.builder()
                    .field("string")
                    .operator("string")
                    .values("string")
                    .build())
                .monitorService(ConditionArgs.builder()
                    .field("string")
                    .operator("string")
                    .values("string")
                    .build())
                .severity(ConditionArgs.builder()
                    .field("string")
                    .operator("string")
                    .values("string")
                    .build())
                .targetResourceType(ConditionArgs.builder()
                    .field("string")
                    .operator("string")
                    .values("string")
                    .build())
                .build())
            .description("string")
            .scope(ScopeArgs.builder()
                .scopeType("string")
                .values("string")
                .build())
            .status("string")
            .build())
        .tags(Map.of("string", "string"))
        .build());
    
    action_rule_by_name_resource = azure_native.alertsmanagement.ActionRuleByName("actionRuleByNameResource",
        resource_group_name="string",
        action_rule_name="string",
        location="string",
        properties={
            "action_group_id": "string",
            "type": "ActionGroup",
            "conditions": {
                "alert_context": {
                    "field": "string",
                    "operator": "string",
                    "values": ["string"],
                },
                "alert_rule_id": {
                    "field": "string",
                    "operator": "string",
                    "values": ["string"],
                },
                "alert_rule_name": {
                    "field": "string",
                    "operator": "string",
                    "values": ["string"],
                },
                "description": {
                    "field": "string",
                    "operator": "string",
                    "values": ["string"],
                },
                "monitor_condition": {
                    "field": "string",
                    "operator": "string",
                    "values": ["string"],
                },
                "monitor_service": {
                    "field": "string",
                    "operator": "string",
                    "values": ["string"],
                },
                "severity": {
                    "field": "string",
                    "operator": "string",
                    "values": ["string"],
                },
                "target_resource_type": {
                    "field": "string",
                    "operator": "string",
                    "values": ["string"],
                },
            },
            "description": "string",
            "scope": {
                "scope_type": "string",
                "values": ["string"],
            },
            "status": "string",
        },
        tags={
            "string": "string",
        })
    
    const actionRuleByNameResource = new azure_native.alertsmanagement.ActionRuleByName("actionRuleByNameResource", {
        resourceGroupName: "string",
        actionRuleName: "string",
        location: "string",
        properties: {
            actionGroupId: "string",
            type: "ActionGroup",
            conditions: {
                alertContext: {
                    field: "string",
                    operator: "string",
                    values: ["string"],
                },
                alertRuleId: {
                    field: "string",
                    operator: "string",
                    values: ["string"],
                },
                alertRuleName: {
                    field: "string",
                    operator: "string",
                    values: ["string"],
                },
                description: {
                    field: "string",
                    operator: "string",
                    values: ["string"],
                },
                monitorCondition: {
                    field: "string",
                    operator: "string",
                    values: ["string"],
                },
                monitorService: {
                    field: "string",
                    operator: "string",
                    values: ["string"],
                },
                severity: {
                    field: "string",
                    operator: "string",
                    values: ["string"],
                },
                targetResourceType: {
                    field: "string",
                    operator: "string",
                    values: ["string"],
                },
            },
            description: "string",
            scope: {
                scopeType: "string",
                values: ["string"],
            },
            status: "string",
        },
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:alertsmanagement:ActionRuleByName
    properties:
        actionRuleName: string
        location: string
        properties:
            actionGroupId: string
            conditions:
                alertContext:
                    field: string
                    operator: string
                    values:
                        - string
                alertRuleId:
                    field: string
                    operator: string
                    values:
                        - string
                alertRuleName:
                    field: string
                    operator: string
                    values:
                        - string
                description:
                    field: string
                    operator: string
                    values:
                        - string
                monitorCondition:
                    field: string
                    operator: string
                    values:
                        - string
                monitorService:
                    field: string
                    operator: string
                    values:
                        - string
                severity:
                    field: string
                    operator: string
                    values:
                        - string
                targetResourceType:
                    field: string
                    operator: string
                    values:
                        - string
            description: string
            scope:
                scopeType: string
                values:
                    - string
            status: string
            type: ActionGroup
        resourceGroupName: string
        tags:
            string: string
    

    ActionRuleByName Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ActionRuleByName resource accepts the following input properties:

    ResourceGroupName string
    Resource group name where the resource is created.
    ActionRuleName string
    The name of action rule that needs to be created/updated
    Location string
    Resource location
    Properties Pulumi.AzureNative.AlertsManagement.Inputs.ActionGroup | Pulumi.AzureNative.AlertsManagement.Inputs.Diagnostics | Pulumi.AzureNative.AlertsManagement.Inputs.Suppression
    action rule properties
    Tags Dictionary<string, string>
    Resource tags
    ResourceGroupName string
    Resource group name where the resource is created.
    ActionRuleName string
    The name of action rule that needs to be created/updated
    Location string
    Resource location
    Properties ActionGroupArgs | DiagnosticsArgs | SuppressionArgs
    action rule properties
    Tags map[string]string
    Resource tags
    resourceGroupName String
    Resource group name where the resource is created.
    actionRuleName String
    The name of action rule that needs to be created/updated
    location String
    Resource location
    properties ActionGroup | Diagnostics | Suppression
    action rule properties
    tags Map<String,String>
    Resource tags
    resourceGroupName string
    Resource group name where the resource is created.
    actionRuleName string
    The name of action rule that needs to be created/updated
    location string
    Resource location
    properties ActionGroup | Diagnostics | Suppression
    action rule properties
    tags {[key: string]: string}
    Resource tags
    resource_group_name str
    Resource group name where the resource is created.
    action_rule_name str
    The name of action rule that needs to be created/updated
    location str
    Resource location
    properties ActionGroupArgs | DiagnosticsArgs | SuppressionArgs
    action rule properties
    tags Mapping[str, str]
    Resource tags
    resourceGroupName String
    Resource group name where the resource is created.
    actionRuleName String
    The name of action rule that needs to be created/updated
    location String
    Resource location
    properties Property Map | Property Map | Property Map
    action rule properties
    tags Map<String>
    Resource tags

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Azure resource name
    Type string
    Azure resource type
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Azure resource name
    Type string
    Azure resource type
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Azure resource name
    type String
    Azure resource type
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Azure resource name
    type string
    Azure resource type
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Azure resource name
    type str
    Azure resource type
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Azure resource name
    type String
    Azure resource type

    Supporting Types

    ActionGroup, ActionGroupArgs

    ActionGroupId string
    Action group to trigger if action rule matches
    Conditions Pulumi.AzureNative.AlertsManagement.Inputs.Conditions
    conditions on which alerts will be filtered
    Description string
    Description of action rule
    Scope Pulumi.AzureNative.AlertsManagement.Inputs.Scope
    scope on which action rule will apply
    Status string | Pulumi.AzureNative.AlertsManagement.ActionRuleStatus
    Indicates if the given action rule is enabled or disabled
    ActionGroupId string
    Action group to trigger if action rule matches
    Conditions Conditions
    conditions on which alerts will be filtered
    Description string
    Description of action rule
    Scope Scope
    scope on which action rule will apply
    Status string | ActionRuleStatus
    Indicates if the given action rule is enabled or disabled
    actionGroupId String
    Action group to trigger if action rule matches
    conditions Conditions
    conditions on which alerts will be filtered
    description String
    Description of action rule
    scope Scope
    scope on which action rule will apply
    status String | ActionRuleStatus
    Indicates if the given action rule is enabled or disabled
    actionGroupId string
    Action group to trigger if action rule matches
    conditions Conditions
    conditions on which alerts will be filtered
    description string
    Description of action rule
    scope Scope
    scope on which action rule will apply
    status string | ActionRuleStatus
    Indicates if the given action rule is enabled or disabled
    action_group_id str
    Action group to trigger if action rule matches
    conditions Conditions
    conditions on which alerts will be filtered
    description str
    Description of action rule
    scope Scope
    scope on which action rule will apply
    status str | ActionRuleStatus
    Indicates if the given action rule is enabled or disabled
    actionGroupId String
    Action group to trigger if action rule matches
    conditions Property Map
    conditions on which alerts will be filtered
    description String
    Description of action rule
    scope Property Map
    scope on which action rule will apply
    status String | "Enabled" | "Disabled"
    Indicates if the given action rule is enabled or disabled

    ActionGroupResponse, ActionGroupResponseArgs

    ActionGroupId string
    Action group to trigger if action rule matches
    CreatedAt string
    Creation time of action rule. Date-Time in ISO-8601 format.
    CreatedBy string
    Created by user name.
    LastModifiedAt string
    Last updated time of action rule. Date-Time in ISO-8601 format.
    LastModifiedBy string
    Last modified by user name.
    Conditions Pulumi.AzureNative.AlertsManagement.Inputs.ConditionsResponse
    conditions on which alerts will be filtered
    Description string
    Description of action rule
    Scope Pulumi.AzureNative.AlertsManagement.Inputs.ScopeResponse
    scope on which action rule will apply
    Status string
    Indicates if the given action rule is enabled or disabled
    ActionGroupId string
    Action group to trigger if action rule matches
    CreatedAt string
    Creation time of action rule. Date-Time in ISO-8601 format.
    CreatedBy string
    Created by user name.
    LastModifiedAt string
    Last updated time of action rule. Date-Time in ISO-8601 format.
    LastModifiedBy string
    Last modified by user name.
    Conditions ConditionsResponse
    conditions on which alerts will be filtered
    Description string
    Description of action rule
    Scope ScopeResponse
    scope on which action rule will apply
    Status string
    Indicates if the given action rule is enabled or disabled
    actionGroupId String
    Action group to trigger if action rule matches
    createdAt String
    Creation time of action rule. Date-Time in ISO-8601 format.
    createdBy String
    Created by user name.
    lastModifiedAt String
    Last updated time of action rule. Date-Time in ISO-8601 format.
    lastModifiedBy String
    Last modified by user name.
    conditions ConditionsResponse
    conditions on which alerts will be filtered
    description String
    Description of action rule
    scope ScopeResponse
    scope on which action rule will apply
    status String
    Indicates if the given action rule is enabled or disabled
    actionGroupId string
    Action group to trigger if action rule matches
    createdAt string
    Creation time of action rule. Date-Time in ISO-8601 format.
    createdBy string
    Created by user name.
    lastModifiedAt string
    Last updated time of action rule. Date-Time in ISO-8601 format.
    lastModifiedBy string
    Last modified by user name.
    conditions ConditionsResponse
    conditions on which alerts will be filtered
    description string
    Description of action rule
    scope ScopeResponse
    scope on which action rule will apply
    status string
    Indicates if the given action rule is enabled or disabled
    action_group_id str
    Action group to trigger if action rule matches
    created_at str
    Creation time of action rule. Date-Time in ISO-8601 format.
    created_by str
    Created by user name.
    last_modified_at str
    Last updated time of action rule. Date-Time in ISO-8601 format.
    last_modified_by str
    Last modified by user name.
    conditions ConditionsResponse
    conditions on which alerts will be filtered
    description str
    Description of action rule
    scope ScopeResponse
    scope on which action rule will apply
    status str
    Indicates if the given action rule is enabled or disabled
    actionGroupId String
    Action group to trigger if action rule matches
    createdAt String
    Creation time of action rule. Date-Time in ISO-8601 format.
    createdBy String
    Created by user name.
    lastModifiedAt String
    Last updated time of action rule. Date-Time in ISO-8601 format.
    lastModifiedBy String
    Last modified by user name.
    conditions Property Map
    conditions on which alerts will be filtered
    description String
    Description of action rule
    scope Property Map
    scope on which action rule will apply
    status String
    Indicates if the given action rule is enabled or disabled

    ActionRuleStatus, ActionRuleStatusArgs

    Enabled
    Enabled
    Disabled
    Disabled
    ActionRuleStatusEnabled
    Enabled
    ActionRuleStatusDisabled
    Disabled
    Enabled
    Enabled
    Disabled
    Disabled
    Enabled
    Enabled
    Disabled
    Disabled
    ENABLED
    Enabled
    DISABLED
    Disabled
    "Enabled"
    Enabled
    "Disabled"
    Disabled

    Condition, ConditionArgs

    Field string | Pulumi.AzureNative.AlertsManagement.Field
    Field for a given condition.
    Operator string | Pulumi.AzureNative.AlertsManagement.Operator
    Operator for a given condition.
    Values List<string>
    List of values to match for a given condition.
    Field string | Field
    Field for a given condition.
    Operator string | Operator
    Operator for a given condition.
    Values []string
    List of values to match for a given condition.
    field String | Field
    Field for a given condition.
    operator String | Operator
    Operator for a given condition.
    values List<String>
    List of values to match for a given condition.
    field string | Field
    Field for a given condition.
    operator string | Operator
    Operator for a given condition.
    values string[]
    List of values to match for a given condition.
    field str | Field
    Field for a given condition.
    operator str | Operator
    Operator for a given condition.
    values Sequence[str]
    List of values to match for a given condition.

    ConditionResponse, ConditionResponseArgs

    Field string
    Field for a given condition.
    Operator string
    Operator for a given condition.
    Values List<string>
    List of values to match for a given condition.
    Field string
    Field for a given condition.
    Operator string
    Operator for a given condition.
    Values []string
    List of values to match for a given condition.
    field String
    Field for a given condition.
    operator String
    Operator for a given condition.
    values List<String>
    List of values to match for a given condition.
    field string
    Field for a given condition.
    operator string
    Operator for a given condition.
    values string[]
    List of values to match for a given condition.
    field str
    Field for a given condition.
    operator str
    Operator for a given condition.
    values Sequence[str]
    List of values to match for a given condition.
    field String
    Field for a given condition.
    operator String
    Operator for a given condition.
    values List<String>
    List of values to match for a given condition.

    Conditions, ConditionsArgs

    AlertContext Condition
    filter alerts by alert context (payload)
    AlertRuleId Condition
    filter alerts by alert rule id
    AlertRuleName Condition
    filter alerts by alert rule name
    Description Condition
    filter alerts by alert rule description
    MonitorCondition Condition
    filter alerts by monitor condition
    MonitorService Condition
    filter alerts by monitor service
    Severity Condition
    filter alerts by severity
    TargetResourceType Condition
    filter alerts by target resource type
    alertContext Condition
    filter alerts by alert context (payload)
    alertRuleId Condition
    filter alerts by alert rule id
    alertRuleName Condition
    filter alerts by alert rule name
    description Condition
    filter alerts by alert rule description
    monitorCondition Condition
    filter alerts by monitor condition
    monitorService Condition
    filter alerts by monitor service
    severity Condition
    filter alerts by severity
    targetResourceType Condition
    filter alerts by target resource type
    alertContext Condition
    filter alerts by alert context (payload)
    alertRuleId Condition
    filter alerts by alert rule id
    alertRuleName Condition
    filter alerts by alert rule name
    description Condition
    filter alerts by alert rule description
    monitorCondition Condition
    filter alerts by monitor condition
    monitorService Condition
    filter alerts by monitor service
    severity Condition
    filter alerts by severity
    targetResourceType Condition
    filter alerts by target resource type
    alert_context Condition
    filter alerts by alert context (payload)
    alert_rule_id Condition
    filter alerts by alert rule id
    alert_rule_name Condition
    filter alerts by alert rule name
    description Condition
    filter alerts by alert rule description
    monitor_condition Condition
    filter alerts by monitor condition
    monitor_service Condition
    filter alerts by monitor service
    severity Condition
    filter alerts by severity
    target_resource_type Condition
    filter alerts by target resource type
    alertContext Property Map
    filter alerts by alert context (payload)
    alertRuleId Property Map
    filter alerts by alert rule id
    alertRuleName Property Map
    filter alerts by alert rule name
    description Property Map
    filter alerts by alert rule description
    monitorCondition Property Map
    filter alerts by monitor condition
    monitorService Property Map
    filter alerts by monitor service
    severity Property Map
    filter alerts by severity
    targetResourceType Property Map
    filter alerts by target resource type

    ConditionsResponse, ConditionsResponseArgs

    AlertContext Pulumi.AzureNative.AlertsManagement.Inputs.ConditionResponse
    filter alerts by alert context (payload)
    AlertRuleId Pulumi.AzureNative.AlertsManagement.Inputs.ConditionResponse
    filter alerts by alert rule id
    AlertRuleName Pulumi.AzureNative.AlertsManagement.Inputs.ConditionResponse
    filter alerts by alert rule name
    Description Pulumi.AzureNative.AlertsManagement.Inputs.ConditionResponse
    filter alerts by alert rule description
    MonitorCondition Pulumi.AzureNative.AlertsManagement.Inputs.ConditionResponse
    filter alerts by monitor condition
    MonitorService Pulumi.AzureNative.AlertsManagement.Inputs.ConditionResponse
    filter alerts by monitor service
    Severity Pulumi.AzureNative.AlertsManagement.Inputs.ConditionResponse
    filter alerts by severity
    TargetResourceType Pulumi.AzureNative.AlertsManagement.Inputs.ConditionResponse
    filter alerts by target resource type
    AlertContext ConditionResponse
    filter alerts by alert context (payload)
    AlertRuleId ConditionResponse
    filter alerts by alert rule id
    AlertRuleName ConditionResponse
    filter alerts by alert rule name
    Description ConditionResponse
    filter alerts by alert rule description
    MonitorCondition ConditionResponse
    filter alerts by monitor condition
    MonitorService ConditionResponse
    filter alerts by monitor service
    Severity ConditionResponse
    filter alerts by severity
    TargetResourceType ConditionResponse
    filter alerts by target resource type
    alertContext ConditionResponse
    filter alerts by alert context (payload)
    alertRuleId ConditionResponse
    filter alerts by alert rule id
    alertRuleName ConditionResponse
    filter alerts by alert rule name
    description ConditionResponse
    filter alerts by alert rule description
    monitorCondition ConditionResponse
    filter alerts by monitor condition
    monitorService ConditionResponse
    filter alerts by monitor service
    severity ConditionResponse
    filter alerts by severity
    targetResourceType ConditionResponse
    filter alerts by target resource type
    alertContext ConditionResponse
    filter alerts by alert context (payload)
    alertRuleId ConditionResponse
    filter alerts by alert rule id
    alertRuleName ConditionResponse
    filter alerts by alert rule name
    description ConditionResponse
    filter alerts by alert rule description
    monitorCondition ConditionResponse
    filter alerts by monitor condition
    monitorService ConditionResponse
    filter alerts by monitor service
    severity ConditionResponse
    filter alerts by severity
    targetResourceType ConditionResponse
    filter alerts by target resource type
    alert_context ConditionResponse
    filter alerts by alert context (payload)
    alert_rule_id ConditionResponse
    filter alerts by alert rule id
    alert_rule_name ConditionResponse
    filter alerts by alert rule name
    description ConditionResponse
    filter alerts by alert rule description
    monitor_condition ConditionResponse
    filter alerts by monitor condition
    monitor_service ConditionResponse
    filter alerts by monitor service
    severity ConditionResponse
    filter alerts by severity
    target_resource_type ConditionResponse
    filter alerts by target resource type
    alertContext Property Map
    filter alerts by alert context (payload)
    alertRuleId Property Map
    filter alerts by alert rule id
    alertRuleName Property Map
    filter alerts by alert rule name
    description Property Map
    filter alerts by alert rule description
    monitorCondition Property Map
    filter alerts by monitor condition
    monitorService Property Map
    filter alerts by monitor service
    severity Property Map
    filter alerts by severity
    targetResourceType Property Map
    filter alerts by target resource type

    Diagnostics, DiagnosticsArgs

    Conditions Pulumi.AzureNative.AlertsManagement.Inputs.Conditions
    conditions on which alerts will be filtered
    Description string
    Description of action rule
    Scope Pulumi.AzureNative.AlertsManagement.Inputs.Scope
    scope on which action rule will apply
    Status string | Pulumi.AzureNative.AlertsManagement.ActionRuleStatus
    Indicates if the given action rule is enabled or disabled
    Conditions Conditions
    conditions on which alerts will be filtered
    Description string
    Description of action rule
    Scope Scope
    scope on which action rule will apply
    Status string | ActionRuleStatus
    Indicates if the given action rule is enabled or disabled
    conditions Conditions
    conditions on which alerts will be filtered
    description String
    Description of action rule
    scope Scope
    scope on which action rule will apply
    status String | ActionRuleStatus
    Indicates if the given action rule is enabled or disabled
    conditions Conditions
    conditions on which alerts will be filtered
    description string
    Description of action rule
    scope Scope
    scope on which action rule will apply
    status string | ActionRuleStatus
    Indicates if the given action rule is enabled or disabled
    conditions Conditions
    conditions on which alerts will be filtered
    description str
    Description of action rule
    scope Scope
    scope on which action rule will apply
    status str | ActionRuleStatus
    Indicates if the given action rule is enabled or disabled
    conditions Property Map
    conditions on which alerts will be filtered
    description String
    Description of action rule
    scope Property Map
    scope on which action rule will apply
    status String | "Enabled" | "Disabled"
    Indicates if the given action rule is enabled or disabled

    DiagnosticsResponse, DiagnosticsResponseArgs

    CreatedAt string
    Creation time of action rule. Date-Time in ISO-8601 format.
    CreatedBy string
    Created by user name.
    LastModifiedAt string
    Last updated time of action rule. Date-Time in ISO-8601 format.
    LastModifiedBy string
    Last modified by user name.
    Conditions Pulumi.AzureNative.AlertsManagement.Inputs.ConditionsResponse
    conditions on which alerts will be filtered
    Description string
    Description of action rule
    Scope Pulumi.AzureNative.AlertsManagement.Inputs.ScopeResponse
    scope on which action rule will apply
    Status string
    Indicates if the given action rule is enabled or disabled
    CreatedAt string
    Creation time of action rule. Date-Time in ISO-8601 format.
    CreatedBy string
    Created by user name.
    LastModifiedAt string
    Last updated time of action rule. Date-Time in ISO-8601 format.
    LastModifiedBy string
    Last modified by user name.
    Conditions ConditionsResponse
    conditions on which alerts will be filtered
    Description string
    Description of action rule
    Scope ScopeResponse
    scope on which action rule will apply
    Status string
    Indicates if the given action rule is enabled or disabled
    createdAt String
    Creation time of action rule. Date-Time in ISO-8601 format.
    createdBy String
    Created by user name.
    lastModifiedAt String
    Last updated time of action rule. Date-Time in ISO-8601 format.
    lastModifiedBy String
    Last modified by user name.
    conditions ConditionsResponse
    conditions on which alerts will be filtered
    description String
    Description of action rule
    scope ScopeResponse
    scope on which action rule will apply
    status String
    Indicates if the given action rule is enabled or disabled
    createdAt string
    Creation time of action rule. Date-Time in ISO-8601 format.
    createdBy string
    Created by user name.
    lastModifiedAt string
    Last updated time of action rule. Date-Time in ISO-8601 format.
    lastModifiedBy string
    Last modified by user name.
    conditions ConditionsResponse
    conditions on which alerts will be filtered
    description string
    Description of action rule
    scope ScopeResponse
    scope on which action rule will apply
    status string
    Indicates if the given action rule is enabled or disabled
    created_at str
    Creation time of action rule. Date-Time in ISO-8601 format.
    created_by str
    Created by user name.
    last_modified_at str
    Last updated time of action rule. Date-Time in ISO-8601 format.
    last_modified_by str
    Last modified by user name.
    conditions ConditionsResponse
    conditions on which alerts will be filtered
    description str
    Description of action rule
    scope ScopeResponse
    scope on which action rule will apply
    status str
    Indicates if the given action rule is enabled or disabled
    createdAt String
    Creation time of action rule. Date-Time in ISO-8601 format.
    createdBy String
    Created by user name.
    lastModifiedAt String
    Last updated time of action rule. Date-Time in ISO-8601 format.
    lastModifiedBy String
    Last modified by user name.
    conditions Property Map
    conditions on which alerts will be filtered
    description String
    Description of action rule
    scope Property Map
    scope on which action rule will apply
    status String
    Indicates if the given action rule is enabled or disabled

    Field, FieldArgs

    Severity
    Severity
    MonitorService
    MonitorService
    MonitorCondition
    MonitorCondition
    SignalType
    SignalType
    TargetResourceType
    TargetResourceType
    TargetResource
    TargetResource
    TargetResourceGroup
    TargetResourceGroup
    AlertRuleId
    AlertRuleId
    AlertRuleName
    AlertRuleName
    Description
    Description
    AlertContext
    AlertContext
    FieldSeverity
    Severity
    FieldMonitorService
    MonitorService
    FieldMonitorCondition
    MonitorCondition
    FieldSignalType
    SignalType
    FieldTargetResourceType
    TargetResourceType
    FieldTargetResource
    TargetResource
    FieldTargetResourceGroup
    TargetResourceGroup
    FieldAlertRuleId
    AlertRuleId
    FieldAlertRuleName
    AlertRuleName
    FieldDescription
    Description
    FieldAlertContext
    AlertContext
    Severity
    Severity
    MonitorService
    MonitorService
    MonitorCondition
    MonitorCondition
    SignalType
    SignalType
    TargetResourceType
    TargetResourceType
    TargetResource
    TargetResource
    TargetResourceGroup
    TargetResourceGroup
    AlertRuleId
    AlertRuleId
    AlertRuleName
    AlertRuleName
    Description
    Description
    AlertContext
    AlertContext
    Severity
    Severity
    MonitorService
    MonitorService
    MonitorCondition
    MonitorCondition
    SignalType
    SignalType
    TargetResourceType
    TargetResourceType
    TargetResource
    TargetResource
    TargetResourceGroup
    TargetResourceGroup
    AlertRuleId
    AlertRuleId
    AlertRuleName
    AlertRuleName
    Description
    Description
    AlertContext
    AlertContext
    SEVERITY
    Severity
    MONITOR_SERVICE
    MonitorService
    MONITOR_CONDITION
    MonitorCondition
    SIGNAL_TYPE
    SignalType
    TARGET_RESOURCE_TYPE
    TargetResourceType
    TARGET_RESOURCE
    TargetResource
    TARGET_RESOURCE_GROUP
    TargetResourceGroup
    ALERT_RULE_ID
    AlertRuleId
    ALERT_RULE_NAME
    AlertRuleName
    DESCRIPTION
    Description
    ALERT_CONTEXT
    AlertContext
    "Severity"
    Severity
    "MonitorService"
    MonitorService
    "MonitorCondition"
    MonitorCondition
    "SignalType"
    SignalType
    "TargetResourceType"
    TargetResourceType
    "TargetResource"
    TargetResource
    "TargetResourceGroup"
    TargetResourceGroup
    "AlertRuleId"
    AlertRuleId
    "AlertRuleName"
    AlertRuleName
    "Description"
    Description
    "AlertContext"
    AlertContext

    Operator, OperatorArgs

    EqualsValue
    Equals
    NotEquals
    NotEquals
    Contains
    Contains
    DoesNotContain
    DoesNotContain
    OperatorEquals
    Equals
    OperatorNotEquals
    NotEquals
    OperatorContains
    Contains
    OperatorDoesNotContain
    DoesNotContain
    Equals
    Equals
    NotEquals
    NotEquals
    Contains
    Contains
    DoesNotContain
    DoesNotContain
    Equals
    Equals
    NotEquals
    NotEquals
    Contains
    Contains
    DoesNotContain
    DoesNotContain
    EQUALS
    Equals
    NOT_EQUALS
    NotEquals
    CONTAINS
    Contains
    DOES_NOT_CONTAIN
    DoesNotContain
    "Equals"
    Equals
    "NotEquals"
    NotEquals
    "Contains"
    Contains
    "DoesNotContain"
    DoesNotContain

    Scope, ScopeArgs

    ScopeType string | Pulumi.AzureNative.AlertsManagement.ScopeType
    type of target scope
    Values List<string>
    list of ARM IDs of the given scope type which will be the target of the given action rule.
    ScopeType string | ScopeType
    type of target scope
    Values []string
    list of ARM IDs of the given scope type which will be the target of the given action rule.
    scopeType String | ScopeType
    type of target scope
    values List<String>
    list of ARM IDs of the given scope type which will be the target of the given action rule.
    scopeType string | ScopeType
    type of target scope
    values string[]
    list of ARM IDs of the given scope type which will be the target of the given action rule.
    scope_type str | ScopeType
    type of target scope
    values Sequence[str]
    list of ARM IDs of the given scope type which will be the target of the given action rule.
    scopeType String | "ResourceGroup" | "Resource" | "Subscription"
    type of target scope
    values List<String>
    list of ARM IDs of the given scope type which will be the target of the given action rule.

    ScopeResponse, ScopeResponseArgs

    ScopeType string
    type of target scope
    Values List<string>
    list of ARM IDs of the given scope type which will be the target of the given action rule.
    ScopeType string
    type of target scope
    Values []string
    list of ARM IDs of the given scope type which will be the target of the given action rule.
    scopeType String
    type of target scope
    values List<String>
    list of ARM IDs of the given scope type which will be the target of the given action rule.
    scopeType string
    type of target scope
    values string[]
    list of ARM IDs of the given scope type which will be the target of the given action rule.
    scope_type str
    type of target scope
    values Sequence[str]
    list of ARM IDs of the given scope type which will be the target of the given action rule.
    scopeType String
    type of target scope
    values List<String>
    list of ARM IDs of the given scope type which will be the target of the given action rule.

    ScopeType, ScopeTypeArgs

    ResourceGroup
    ResourceGroup
    Resource
    Resource
    Subscription
    Subscription
    ScopeTypeResourceGroup
    ResourceGroup
    ScopeTypeResource
    Resource
    ScopeTypeSubscription
    Subscription
    ResourceGroup
    ResourceGroup
    Resource
    Resource
    Subscription
    Subscription
    ResourceGroup
    ResourceGroup
    Resource
    Resource
    Subscription
    Subscription
    RESOURCE_GROUP
    ResourceGroup
    RESOURCE
    Resource
    SUBSCRIPTION
    Subscription
    "ResourceGroup"
    ResourceGroup
    "Resource"
    Resource
    "Subscription"
    Subscription

    Suppression, SuppressionArgs

    SuppressionConfig Pulumi.AzureNative.AlertsManagement.Inputs.SuppressionConfig
    suppression configuration for the action rule
    Conditions Pulumi.AzureNative.AlertsManagement.Inputs.Conditions
    conditions on which alerts will be filtered
    Description string
    Description of action rule
    Scope Pulumi.AzureNative.AlertsManagement.Inputs.Scope
    scope on which action rule will apply
    Status string | Pulumi.AzureNative.AlertsManagement.ActionRuleStatus
    Indicates if the given action rule is enabled or disabled
    SuppressionConfig SuppressionConfig
    suppression configuration for the action rule
    Conditions Conditions
    conditions on which alerts will be filtered
    Description string
    Description of action rule
    Scope Scope
    scope on which action rule will apply
    Status string | ActionRuleStatus
    Indicates if the given action rule is enabled or disabled
    suppressionConfig SuppressionConfig
    suppression configuration for the action rule
    conditions Conditions
    conditions on which alerts will be filtered
    description String
    Description of action rule
    scope Scope
    scope on which action rule will apply
    status String | ActionRuleStatus
    Indicates if the given action rule is enabled or disabled
    suppressionConfig SuppressionConfig
    suppression configuration for the action rule
    conditions Conditions
    conditions on which alerts will be filtered
    description string
    Description of action rule
    scope Scope
    scope on which action rule will apply
    status string | ActionRuleStatus
    Indicates if the given action rule is enabled or disabled
    suppression_config SuppressionConfig
    suppression configuration for the action rule
    conditions Conditions
    conditions on which alerts will be filtered
    description str
    Description of action rule
    scope Scope
    scope on which action rule will apply
    status str | ActionRuleStatus
    Indicates if the given action rule is enabled or disabled
    suppressionConfig Property Map
    suppression configuration for the action rule
    conditions Property Map
    conditions on which alerts will be filtered
    description String
    Description of action rule
    scope Property Map
    scope on which action rule will apply
    status String | "Enabled" | "Disabled"
    Indicates if the given action rule is enabled or disabled

    SuppressionConfig, SuppressionConfigArgs

    RecurrenceType string | Pulumi.AzureNative.AlertsManagement.SuppressionType
    Specifies when the suppression should be applied
    Schedule Pulumi.AzureNative.AlertsManagement.Inputs.SuppressionSchedule
    suppression schedule configuration
    RecurrenceType string | SuppressionType
    Specifies when the suppression should be applied
    Schedule SuppressionSchedule
    suppression schedule configuration
    recurrenceType String | SuppressionType
    Specifies when the suppression should be applied
    schedule SuppressionSchedule
    suppression schedule configuration
    recurrenceType string | SuppressionType
    Specifies when the suppression should be applied
    schedule SuppressionSchedule
    suppression schedule configuration
    recurrence_type str | SuppressionType
    Specifies when the suppression should be applied
    schedule SuppressionSchedule
    suppression schedule configuration
    recurrenceType String | "Always" | "Once" | "Daily" | "Weekly" | "Monthly"
    Specifies when the suppression should be applied
    schedule Property Map
    suppression schedule configuration

    SuppressionConfigResponse, SuppressionConfigResponseArgs

    RecurrenceType string
    Specifies when the suppression should be applied
    Schedule Pulumi.AzureNative.AlertsManagement.Inputs.SuppressionScheduleResponse
    suppression schedule configuration
    RecurrenceType string
    Specifies when the suppression should be applied
    Schedule SuppressionScheduleResponse
    suppression schedule configuration
    recurrenceType String
    Specifies when the suppression should be applied
    schedule SuppressionScheduleResponse
    suppression schedule configuration
    recurrenceType string
    Specifies when the suppression should be applied
    schedule SuppressionScheduleResponse
    suppression schedule configuration
    recurrence_type str
    Specifies when the suppression should be applied
    schedule SuppressionScheduleResponse
    suppression schedule configuration
    recurrenceType String
    Specifies when the suppression should be applied
    schedule Property Map
    suppression schedule configuration

    SuppressionResponse, SuppressionResponseArgs

    CreatedAt string
    Creation time of action rule. Date-Time in ISO-8601 format.
    CreatedBy string
    Created by user name.
    LastModifiedAt string
    Last updated time of action rule. Date-Time in ISO-8601 format.
    LastModifiedBy string
    Last modified by user name.
    SuppressionConfig Pulumi.AzureNative.AlertsManagement.Inputs.SuppressionConfigResponse
    suppression configuration for the action rule
    Conditions Pulumi.AzureNative.AlertsManagement.Inputs.ConditionsResponse
    conditions on which alerts will be filtered
    Description string
    Description of action rule
    Scope Pulumi.AzureNative.AlertsManagement.Inputs.ScopeResponse
    scope on which action rule will apply
    Status string
    Indicates if the given action rule is enabled or disabled
    CreatedAt string
    Creation time of action rule. Date-Time in ISO-8601 format.
    CreatedBy string
    Created by user name.
    LastModifiedAt string
    Last updated time of action rule. Date-Time in ISO-8601 format.
    LastModifiedBy string
    Last modified by user name.
    SuppressionConfig SuppressionConfigResponse
    suppression configuration for the action rule
    Conditions ConditionsResponse
    conditions on which alerts will be filtered
    Description string
    Description of action rule
    Scope ScopeResponse
    scope on which action rule will apply
    Status string
    Indicates if the given action rule is enabled or disabled
    createdAt String
    Creation time of action rule. Date-Time in ISO-8601 format.
    createdBy String
    Created by user name.
    lastModifiedAt String
    Last updated time of action rule. Date-Time in ISO-8601 format.
    lastModifiedBy String
    Last modified by user name.
    suppressionConfig SuppressionConfigResponse
    suppression configuration for the action rule
    conditions ConditionsResponse
    conditions on which alerts will be filtered
    description String
    Description of action rule
    scope ScopeResponse
    scope on which action rule will apply
    status String
    Indicates if the given action rule is enabled or disabled
    createdAt string
    Creation time of action rule. Date-Time in ISO-8601 format.
    createdBy string
    Created by user name.
    lastModifiedAt string
    Last updated time of action rule. Date-Time in ISO-8601 format.
    lastModifiedBy string
    Last modified by user name.
    suppressionConfig SuppressionConfigResponse
    suppression configuration for the action rule
    conditions ConditionsResponse
    conditions on which alerts will be filtered
    description string
    Description of action rule
    scope ScopeResponse
    scope on which action rule will apply
    status string
    Indicates if the given action rule is enabled or disabled
    created_at str
    Creation time of action rule. Date-Time in ISO-8601 format.
    created_by str
    Created by user name.
    last_modified_at str
    Last updated time of action rule. Date-Time in ISO-8601 format.
    last_modified_by str
    Last modified by user name.
    suppression_config SuppressionConfigResponse
    suppression configuration for the action rule
    conditions ConditionsResponse
    conditions on which alerts will be filtered
    description str
    Description of action rule
    scope ScopeResponse
    scope on which action rule will apply
    status str
    Indicates if the given action rule is enabled or disabled
    createdAt String
    Creation time of action rule. Date-Time in ISO-8601 format.
    createdBy String
    Created by user name.
    lastModifiedAt String
    Last updated time of action rule. Date-Time in ISO-8601 format.
    lastModifiedBy String
    Last modified by user name.
    suppressionConfig Property Map
    suppression configuration for the action rule
    conditions Property Map
    conditions on which alerts will be filtered
    description String
    Description of action rule
    scope Property Map
    scope on which action rule will apply
    status String
    Indicates if the given action rule is enabled or disabled

    SuppressionSchedule, SuppressionScheduleArgs

    EndDate string
    End date for suppression
    EndTime string
    End date for suppression
    RecurrenceValues List<int>
    Specifies the values for recurrence pattern
    StartDate string
    Start date for suppression
    StartTime string
    Start time for suppression
    EndDate string
    End date for suppression
    EndTime string
    End date for suppression
    RecurrenceValues []int
    Specifies the values for recurrence pattern
    StartDate string
    Start date for suppression
    StartTime string
    Start time for suppression
    endDate String
    End date for suppression
    endTime String
    End date for suppression
    recurrenceValues List<Integer>
    Specifies the values for recurrence pattern
    startDate String
    Start date for suppression
    startTime String
    Start time for suppression
    endDate string
    End date for suppression
    endTime string
    End date for suppression
    recurrenceValues number[]
    Specifies the values for recurrence pattern
    startDate string
    Start date for suppression
    startTime string
    Start time for suppression
    end_date str
    End date for suppression
    end_time str
    End date for suppression
    recurrence_values Sequence[int]
    Specifies the values for recurrence pattern
    start_date str
    Start date for suppression
    start_time str
    Start time for suppression
    endDate String
    End date for suppression
    endTime String
    End date for suppression
    recurrenceValues List<Number>
    Specifies the values for recurrence pattern
    startDate String
    Start date for suppression
    startTime String
    Start time for suppression

    SuppressionScheduleResponse, SuppressionScheduleResponseArgs

    EndDate string
    End date for suppression
    EndTime string
    End date for suppression
    RecurrenceValues List<int>
    Specifies the values for recurrence pattern
    StartDate string
    Start date for suppression
    StartTime string
    Start time for suppression
    EndDate string
    End date for suppression
    EndTime string
    End date for suppression
    RecurrenceValues []int
    Specifies the values for recurrence pattern
    StartDate string
    Start date for suppression
    StartTime string
    Start time for suppression
    endDate String
    End date for suppression
    endTime String
    End date for suppression
    recurrenceValues List<Integer>
    Specifies the values for recurrence pattern
    startDate String
    Start date for suppression
    startTime String
    Start time for suppression
    endDate string
    End date for suppression
    endTime string
    End date for suppression
    recurrenceValues number[]
    Specifies the values for recurrence pattern
    startDate string
    Start date for suppression
    startTime string
    Start time for suppression
    end_date str
    End date for suppression
    end_time str
    End date for suppression
    recurrence_values Sequence[int]
    Specifies the values for recurrence pattern
    start_date str
    Start date for suppression
    start_time str
    Start time for suppression
    endDate String
    End date for suppression
    endTime String
    End date for suppression
    recurrenceValues List<Number>
    Specifies the values for recurrence pattern
    startDate String
    Start date for suppression
    startTime String
    Start time for suppression

    SuppressionType, SuppressionTypeArgs

    Always
    Always
    Once
    Once
    Daily
    Daily
    Weekly
    Weekly
    Monthly
    Monthly
    SuppressionTypeAlways
    Always
    SuppressionTypeOnce
    Once
    SuppressionTypeDaily
    Daily
    SuppressionTypeWeekly
    Weekly
    SuppressionTypeMonthly
    Monthly
    Always
    Always
    Once
    Once
    Daily
    Daily
    Weekly
    Weekly
    Monthly
    Monthly
    Always
    Always
    Once
    Once
    Daily
    Daily
    Weekly
    Weekly
    Monthly
    Monthly
    ALWAYS
    Always
    ONCE
    Once
    DAILY
    Daily
    WEEKLY
    Weekly
    MONTHLY
    Monthly
    "Always"
    Always
    "Once"
    Once
    "Daily"
    Daily
    "Weekly"
    Weekly
    "Monthly"
    Monthly

    Import

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

    $ pulumi import azure-native:alertsmanagement:ActionRuleByName DailySuppression /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{actionRuleName} 
    

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

    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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi