1. Registry
  2. Packages
  3. Azure Native
  4. API Docs
  5. alertsmanagement
  6. AlertProcessingRuleByName
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.32.0
published on Wednesday, Nov 18, 2026 by Pulumi
azure-native logo Azure Native
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.32.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Alert processing rule object containing target scopes, conditions and scheduling logic.

    Uses Azure REST API version 2021-08-08. In version 2.x of the Azure Native provider, it used API version 2021-08-08.

    Other available API versions: 2021-08-08-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native alertsmanagement [ApiVersion]. See the version guide for details.

    Example Usage

    Create or update a rule that adds an action group to all alerts in a subscription

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var alertProcessingRuleByName = new AzureNative.AlertsManagement.AlertProcessingRuleByName("alertProcessingRuleByName", new()
        {
            AlertProcessingRuleName = "AddActionGroupToSubscription",
            Location = "Global",
            Properties = new AzureNative.AlertsManagement.Inputs.AlertProcessingRulePropertiesArgs
            {
                Actions = new[]
                {
                    new AzureNative.AlertsManagement.Inputs.AddActionGroupsArgs
                    {
                        ActionGroupIds = new[]
                        {
                            "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/ActionGroup1",
                        },
                        ActionType = "AddActionGroups",
                    },
                },
                Description = "Add ActionGroup1 to all alerts in the subscription",
                Enabled = true,
                Scopes = new[]
                {
                    "/subscriptions/subId1",
                },
            },
            ResourceGroupName = "alertscorrelationrg",
            Tags = new() { },
        });
    
    });
    
    package main
    
    import (
    	alertsmanagement "github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByName", &alertsmanagement.AlertProcessingRuleByNameArgs{
    			AlertProcessingRuleName: pulumi.String("AddActionGroupToSubscription"),
    			Location:                pulumi.String("Global"),
    			Properties: &alertsmanagement.AlertProcessingRulePropertiesArgs{
    				Actions: pulumi.Array{
    					&alertsmanagement.AddActionGroupsArgs{
    						ActionGroupIds: pulumi.StringArray{
    							pulumi.String("/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/ActionGroup1"),
    						},
    						ActionType: pulumi.String("AddActionGroups"),
    					},
    				},
    				Description: pulumi.String("Add ActionGroup1 to all alerts in the subscription"),
    				Enabled:     pulumi.Bool(true),
    				Scopes: pulumi.StringArray{
    					pulumi.String("/subscriptions/subId1"),
    				},
    			},
    			ResourceGroupName: pulumi.String("alertscorrelationrg"),
    			Tags:              pulumi.StringMap{},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    terraform {
      required_providers {
        azure-native = {
          source = "pulumi/azure-native"
        }
      }
    }
    
    resource "azure-native_alertsmanagement_alert_processing_rule_by_name" "alertProcessingRuleByName" {
      lifecycle {
        create_before_destroy = true
      }
      alert_processing_rule_name = "AddActionGroupToSubscription"
      location                   = "Global"
      properties = {
        actions = [{
          action_group_ids = ["/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/ActionGroup1"]
          action_type      = "AddActionGroups"
        }]
        description = "Add ActionGroup1 to all alerts in the subscription"
        enabled     = true
        scopes      = ["/subscriptions/subId1"]
      }
      resource_group_name = "alertscorrelationrg"
      tags                = {}
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByName;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByNameArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.AlertProcessingRulePropertiesArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.AddActionGroupsArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.RemoveAllActionGroupsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 alertProcessingRuleByName = new AlertProcessingRuleByName("alertProcessingRuleByName", AlertProcessingRuleByNameArgs.builder()
                .alertProcessingRuleName("AddActionGroupToSubscription")
                .location("Global")
                .properties(AlertProcessingRulePropertiesArgs.builder()
                    .actions(AddActionGroupsArgs.builder()
                        .actionGroupIds("/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/ActionGroup1")
                        .build())
                    .description("Add ActionGroup1 to all alerts in the subscription")
                    .enabled(true)
                    .scopes("/subscriptions/subId1")
                    .build())
                .resourceGroupName("alertscorrelationrg")
                .tags(Map.ofEntries(
                ))
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const alertProcessingRuleByName = new azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByName", {
        alertProcessingRuleName: "AddActionGroupToSubscription",
        location: "Global",
        properties: {
            actions: [{
                actionGroupIds: ["/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/ActionGroup1"],
                actionType: "AddActionGroups",
            }],
            description: "Add ActionGroup1 to all alerts in the subscription",
            enabled: true,
            scopes: ["/subscriptions/subId1"],
        },
        resourceGroupName: "alertscorrelationrg",
        tags: {},
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    alert_processing_rule_by_name = azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByName",
        alert_processing_rule_name="AddActionGroupToSubscription",
        location="Global",
        properties={
            "actions": [{
                "action_group_ids": ["/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/ActionGroup1"],
                "action_type": "AddActionGroups",
            }],
            "description": "Add ActionGroup1 to all alerts in the subscription",
            "enabled": True,
            "scopes": ["/subscriptions/subId1"],
        },
        resource_group_name="alertscorrelationrg",
        tags={})
    
    resources:
      alertProcessingRuleByName:
        type: azure-native:alertsmanagement:AlertProcessingRuleByName
        properties:
          alertProcessingRuleName: AddActionGroupToSubscription
          location: Global
          properties:
            actions:
              - actionGroupIds:
                  - /subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/ActionGroup1
                actionType: AddActionGroups
            description: Add ActionGroup1 to all alerts in the subscription
            enabled: true
            scopes:
              - /subscriptions/subId1
          resourceGroupName: alertscorrelationrg
          tags: {}
    

    Create or update a rule that adds two action groups to all Sev0 and Sev1 alerts in two resource groups

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var alertProcessingRuleByName = new AzureNative.AlertsManagement.AlertProcessingRuleByName("alertProcessingRuleByName", new()
        {
            AlertProcessingRuleName = "AddActionGroupsBySeverity",
            Location = "Global",
            Properties = new AzureNative.AlertsManagement.Inputs.AlertProcessingRulePropertiesArgs
            {
                Actions = new[]
                {
                    new AzureNative.AlertsManagement.Inputs.AddActionGroupsArgs
                    {
                        ActionGroupIds = new[]
                        {
                            "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId1",
                            "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId2",
                        },
                        ActionType = "AddActionGroups",
                    },
                },
                Conditions = new[]
                {
                    new AzureNative.AlertsManagement.Inputs.ConditionArgs
                    {
                        Field = AzureNative.AlertsManagement.Field.Severity,
                        Operator = AzureNative.AlertsManagement.Operator.EqualsValue,
                        Values = new[]
                        {
                            "sev0",
                            "sev1",
                        },
                    },
                },
                Description = "Add AGId1 and AGId2 to all Sev0 and Sev1 alerts in these resourceGroups",
                Enabled = true,
                Scopes = new[]
                {
                    "/subscriptions/subId1/resourceGroups/RGId1",
                    "/subscriptions/subId1/resourceGroups/RGId2",
                },
            },
            ResourceGroupName = "alertscorrelationrg",
            Tags = new() { },
        });
    
    });
    
    package main
    
    import (
    	alertsmanagement "github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByName", &alertsmanagement.AlertProcessingRuleByNameArgs{
    			AlertProcessingRuleName: pulumi.String("AddActionGroupsBySeverity"),
    			Location:                pulumi.String("Global"),
    			Properties: &alertsmanagement.AlertProcessingRulePropertiesArgs{
    				Actions: pulumi.Array{
    					&alertsmanagement.AddActionGroupsArgs{
    						ActionGroupIds: pulumi.StringArray{
    							pulumi.String("/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId1"),
    							pulumi.String("/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId2"),
    						},
    						ActionType: pulumi.String("AddActionGroups"),
    					},
    				},
    				Conditions: alertsmanagement.ConditionArray{
    					&alertsmanagement.ConditionArgs{
    						Field:    pulumi.String(alertsmanagement.FieldSeverity),
    						Operator: pulumi.String(alertsmanagement.OperatorEquals),
    						Values: pulumi.StringArray{
    							pulumi.String("sev0"),
    							pulumi.String("sev1"),
    						},
    					},
    				},
    				Description: pulumi.String("Add AGId1 and AGId2 to all Sev0 and Sev1 alerts in these resourceGroups"),
    				Enabled:     pulumi.Bool(true),
    				Scopes: pulumi.StringArray{
    					pulumi.String("/subscriptions/subId1/resourceGroups/RGId1"),
    					pulumi.String("/subscriptions/subId1/resourceGroups/RGId2"),
    				},
    			},
    			ResourceGroupName: pulumi.String("alertscorrelationrg"),
    			Tags:              pulumi.StringMap{},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    terraform {
      required_providers {
        azure-native = {
          source = "pulumi/azure-native"
        }
      }
    }
    
    resource "azure-native_alertsmanagement_alert_processing_rule_by_name" "alertProcessingRuleByName" {
      lifecycle {
        create_before_destroy = true
      }
      alert_processing_rule_name = "AddActionGroupsBySeverity"
      location                   = "Global"
      properties = {
        actions = [{
          action_group_ids = ["/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId1", "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId2"]
          action_type      = "AddActionGroups"
        }]
        conditions = [{
          field    = "Severity"
          operator = "Equals"
          values   = ["sev0", "sev1"]
        }]
        description = "Add AGId1 and AGId2 to all Sev0 and Sev1 alerts in these resourceGroups"
        enabled     = true
        scopes      = ["/subscriptions/subId1/resourceGroups/RGId1", "/subscriptions/subId1/resourceGroups/RGId2"]
      }
      resource_group_name = "alertscorrelationrg"
      tags                = {}
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByName;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByNameArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.AlertProcessingRulePropertiesArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.AddActionGroupsArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.RemoveAllActionGroupsArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.ConditionArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 alertProcessingRuleByName = new AlertProcessingRuleByName("alertProcessingRuleByName", AlertProcessingRuleByNameArgs.builder()
                .alertProcessingRuleName("AddActionGroupsBySeverity")
                .location("Global")
                .properties(AlertProcessingRulePropertiesArgs.builder()
                    .actions(AddActionGroupsArgs.builder()
                        .actionGroupIds(                    
                            "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId1",
                            "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId2")
                        .build())
                    .conditions(ConditionArgs.builder()
                        .field("Severity")
                        .operator("Equals")
                        .values(                    
                            "sev0",
                            "sev1")
                        .build())
                    .description("Add AGId1 and AGId2 to all Sev0 and Sev1 alerts in these resourceGroups")
                    .enabled(true)
                    .scopes(                
                        "/subscriptions/subId1/resourceGroups/RGId1",
                        "/subscriptions/subId1/resourceGroups/RGId2")
                    .build())
                .resourceGroupName("alertscorrelationrg")
                .tags(Map.ofEntries(
                ))
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const alertProcessingRuleByName = new azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByName", {
        alertProcessingRuleName: "AddActionGroupsBySeverity",
        location: "Global",
        properties: {
            actions: [{
                actionGroupIds: [
                    "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId1",
                    "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId2",
                ],
                actionType: "AddActionGroups",
            }],
            conditions: [{
                field: azure_native.alertsmanagement.Field.Severity,
                operator: azure_native.alertsmanagement.Operator.Equals,
                values: [
                    "sev0",
                    "sev1",
                ],
            }],
            description: "Add AGId1 and AGId2 to all Sev0 and Sev1 alerts in these resourceGroups",
            enabled: true,
            scopes: [
                "/subscriptions/subId1/resourceGroups/RGId1",
                "/subscriptions/subId1/resourceGroups/RGId2",
            ],
        },
        resourceGroupName: "alertscorrelationrg",
        tags: {},
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    alert_processing_rule_by_name = azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByName",
        alert_processing_rule_name="AddActionGroupsBySeverity",
        location="Global",
        properties={
            "actions": [{
                "action_group_ids": [
                    "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId1",
                    "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId2",
                ],
                "action_type": "AddActionGroups",
            }],
            "conditions": [{
                "field": azure_native.alertsmanagement.Field.SEVERITY,
                "operator": azure_native.alertsmanagement.Operator.EQUALS,
                "values": [
                    "sev0",
                    "sev1",
                ],
            }],
            "description": "Add AGId1 and AGId2 to all Sev0 and Sev1 alerts in these resourceGroups",
            "enabled": True,
            "scopes": [
                "/subscriptions/subId1/resourceGroups/RGId1",
                "/subscriptions/subId1/resourceGroups/RGId2",
            ],
        },
        resource_group_name="alertscorrelationrg",
        tags={})
    
    resources:
      alertProcessingRuleByName:
        type: azure-native:alertsmanagement:AlertProcessingRuleByName
        properties:
          alertProcessingRuleName: AddActionGroupsBySeverity
          location: Global
          properties:
            actions:
              - actionGroupIds:
                  - /subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId1
                  - /subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId2
                actionType: AddActionGroups
            conditions:
              - field: Severity
                operator: Equals
                values:
                  - sev0
                  - sev1
            description: Add AGId1 and AGId2 to all Sev0 and Sev1 alerts in these resourceGroups
            enabled: true
            scopes:
              - /subscriptions/subId1/resourceGroups/RGId1
              - /subscriptions/subId1/resourceGroups/RGId2
          resourceGroupName: alertscorrelationrg
          tags: {}
    

    Create or update a rule that removes all action groups from alerts on a specific VM during a one-off maintenance window (1800-2000 at a specific date, Pacific Standard Time)

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var alertProcessingRuleByName = new AzureNative.AlertsManagement.AlertProcessingRuleByName("alertProcessingRuleByName", new()
        {
            AlertProcessingRuleName = "RemoveActionGroupsMaintenanceWindow",
            Location = "Global",
            Properties = new AzureNative.AlertsManagement.Inputs.AlertProcessingRulePropertiesArgs
            {
                Actions = new[]
                {
                    new AzureNative.AlertsManagement.Inputs.RemoveAllActionGroupsArgs
                    {
                        ActionType = "RemoveAllActionGroups",
                    },
                },
                Description = "Removes all ActionGroups from all Alerts on VMName during the maintenance window",
                Enabled = true,
                Schedule = new AzureNative.AlertsManagement.Inputs.ScheduleArgs
                {
                    EffectiveFrom = "2021-04-15T18:00:00",
                    EffectiveUntil = "2021-04-15T20:00:00",
                    TimeZone = "Pacific Standard Time",
                },
                Scopes = new[]
                {
                    "/subscriptions/subId1/resourceGroups/RGId1/providers/Microsoft.Compute/virtualMachines/VMName",
                },
            },
            ResourceGroupName = "alertscorrelationrg",
            Tags = new() { },
        });
    
    });
    
    package main
    
    import (
    	alertsmanagement "github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByName", &alertsmanagement.AlertProcessingRuleByNameArgs{
    			AlertProcessingRuleName: pulumi.String("RemoveActionGroupsMaintenanceWindow"),
    			Location:                pulumi.String("Global"),
    			Properties: &alertsmanagement.AlertProcessingRulePropertiesArgs{
    				Actions: pulumi.Array{
    					&alertsmanagement.RemoveAllActionGroupsArgs{
    						ActionType: pulumi.String("RemoveAllActionGroups"),
    					},
    				},
    				Description: pulumi.String("Removes all ActionGroups from all Alerts on VMName during the maintenance window"),
    				Enabled:     pulumi.Bool(true),
    				Schedule: &alertsmanagement.ScheduleArgs{
    					EffectiveFrom:  pulumi.String("2021-04-15T18:00:00"),
    					EffectiveUntil: pulumi.String("2021-04-15T20:00:00"),
    					TimeZone:       pulumi.String("Pacific Standard Time"),
    				},
    				Scopes: pulumi.StringArray{
    					pulumi.String("/subscriptions/subId1/resourceGroups/RGId1/providers/Microsoft.Compute/virtualMachines/VMName"),
    				},
    			},
    			ResourceGroupName: pulumi.String("alertscorrelationrg"),
    			Tags:              pulumi.StringMap{},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    terraform {
      required_providers {
        azure-native = {
          source = "pulumi/azure-native"
        }
      }
    }
    
    resource "azure-native_alertsmanagement_alert_processing_rule_by_name" "alertProcessingRuleByName" {
      lifecycle {
        create_before_destroy = true
      }
      alert_processing_rule_name = "RemoveActionGroupsMaintenanceWindow"
      location                   = "Global"
      properties = {
        actions = [{
          action_type = "RemoveAllActionGroups"
        }]
        description = "Removes all ActionGroups from all Alerts on VMName during the maintenance window"
        enabled     = true
        schedule = {
          effective_from  = "2021-04-15T18:00:00"
          effective_until = "2021-04-15T20:00:00"
          time_zone       = "Pacific Standard Time"
        }
        scopes = ["/subscriptions/subId1/resourceGroups/RGId1/providers/Microsoft.Compute/virtualMachines/VMName"]
      }
      resource_group_name = "alertscorrelationrg"
      tags                = {}
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByName;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByNameArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.AlertProcessingRulePropertiesArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.AddActionGroupsArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.RemoveAllActionGroupsArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.ScheduleArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 alertProcessingRuleByName = new AlertProcessingRuleByName("alertProcessingRuleByName", AlertProcessingRuleByNameArgs.builder()
                .alertProcessingRuleName("RemoveActionGroupsMaintenanceWindow")
                .location("Global")
                .properties(AlertProcessingRulePropertiesArgs.builder()
                    .actions(RemoveAllActionGroupsArgs.builder()
                        .build())
                    .description("Removes all ActionGroups from all Alerts on VMName during the maintenance window")
                    .enabled(true)
                    .schedule(ScheduleArgs.builder()
                        .effectiveFrom("2021-04-15T18:00:00")
                        .effectiveUntil("2021-04-15T20:00:00")
                        .timeZone("Pacific Standard Time")
                        .build())
                    .scopes("/subscriptions/subId1/resourceGroups/RGId1/providers/Microsoft.Compute/virtualMachines/VMName")
                    .build())
                .resourceGroupName("alertscorrelationrg")
                .tags(Map.ofEntries(
                ))
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const alertProcessingRuleByName = new azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByName", {
        alertProcessingRuleName: "RemoveActionGroupsMaintenanceWindow",
        location: "Global",
        properties: {
            actions: [{
                actionType: "RemoveAllActionGroups",
            }],
            description: "Removes all ActionGroups from all Alerts on VMName during the maintenance window",
            enabled: true,
            schedule: {
                effectiveFrom: "2021-04-15T18:00:00",
                effectiveUntil: "2021-04-15T20:00:00",
                timeZone: "Pacific Standard Time",
            },
            scopes: ["/subscriptions/subId1/resourceGroups/RGId1/providers/Microsoft.Compute/virtualMachines/VMName"],
        },
        resourceGroupName: "alertscorrelationrg",
        tags: {},
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    alert_processing_rule_by_name = azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByName",
        alert_processing_rule_name="RemoveActionGroupsMaintenanceWindow",
        location="Global",
        properties={
            "actions": [{
                "action_type": "RemoveAllActionGroups",
            }],
            "description": "Removes all ActionGroups from all Alerts on VMName during the maintenance window",
            "enabled": True,
            "schedule": {
                "effective_from": "2021-04-15T18:00:00",
                "effective_until": "2021-04-15T20:00:00",
                "time_zone": "Pacific Standard Time",
            },
            "scopes": ["/subscriptions/subId1/resourceGroups/RGId1/providers/Microsoft.Compute/virtualMachines/VMName"],
        },
        resource_group_name="alertscorrelationrg",
        tags={})
    
    resources:
      alertProcessingRuleByName:
        type: azure-native:alertsmanagement:AlertProcessingRuleByName
        properties:
          alertProcessingRuleName: RemoveActionGroupsMaintenanceWindow
          location: Global
          properties:
            actions:
              - actionType: RemoveAllActionGroups
            description: Removes all ActionGroups from all Alerts on VMName during the maintenance window
            enabled: true
            schedule:
              effectiveFrom: 2021-04-15T18:00:00
              effectiveUntil: 2021-04-15T20:00:00
              timeZone: Pacific Standard Time
            scopes:
              - /subscriptions/subId1/resourceGroups/RGId1/providers/Microsoft.Compute/virtualMachines/VMName
          resourceGroupName: alertscorrelationrg
          tags: {}
    

    Create or update a rule that removes all action groups from all alerts in a subscription coming from a specific alert rule

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var alertProcessingRuleByName = new AzureNative.AlertsManagement.AlertProcessingRuleByName("alertProcessingRuleByName", new()
        {
            AlertProcessingRuleName = "RemoveActionGroupsSpecificAlertRule",
            Location = "Global",
            Properties = new AzureNative.AlertsManagement.Inputs.AlertProcessingRulePropertiesArgs
            {
                Actions = new[]
                {
                    new AzureNative.AlertsManagement.Inputs.RemoveAllActionGroupsArgs
                    {
                        ActionType = "RemoveAllActionGroups",
                    },
                },
                Conditions = new[]
                {
                    new AzureNative.AlertsManagement.Inputs.ConditionArgs
                    {
                        Field = AzureNative.AlertsManagement.Field.AlertRuleId,
                        Operator = AzureNative.AlertsManagement.Operator.EqualsValue,
                        Values = new[]
                        {
                            "/subscriptions/suubId1/resourceGroups/Rgid2/providers/microsoft.insights/activityLogAlerts/RuleName",
                        },
                    },
                },
                Description = "Removes all ActionGroups from all Alerts that fire on above AlertRule",
                Enabled = true,
                Scopes = new[]
                {
                    "/subscriptions/subId1",
                },
            },
            ResourceGroupName = "alertscorrelationrg",
            Tags = new() { },
        });
    
    });
    
    package main
    
    import (
    	alertsmanagement "github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByName", &alertsmanagement.AlertProcessingRuleByNameArgs{
    			AlertProcessingRuleName: pulumi.String("RemoveActionGroupsSpecificAlertRule"),
    			Location:                pulumi.String("Global"),
    			Properties: &alertsmanagement.AlertProcessingRulePropertiesArgs{
    				Actions: pulumi.Array{
    					&alertsmanagement.RemoveAllActionGroupsArgs{
    						ActionType: pulumi.String("RemoveAllActionGroups"),
    					},
    				},
    				Conditions: alertsmanagement.ConditionArray{
    					&alertsmanagement.ConditionArgs{
    						Field:    pulumi.String(alertsmanagement.FieldAlertRuleId),
    						Operator: pulumi.String(alertsmanagement.OperatorEquals),
    						Values: pulumi.StringArray{
    							pulumi.String("/subscriptions/suubId1/resourceGroups/Rgid2/providers/microsoft.insights/activityLogAlerts/RuleName"),
    						},
    					},
    				},
    				Description: pulumi.String("Removes all ActionGroups from all Alerts that fire on above AlertRule"),
    				Enabled:     pulumi.Bool(true),
    				Scopes: pulumi.StringArray{
    					pulumi.String("/subscriptions/subId1"),
    				},
    			},
    			ResourceGroupName: pulumi.String("alertscorrelationrg"),
    			Tags:              pulumi.StringMap{},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    terraform {
      required_providers {
        azure-native = {
          source = "pulumi/azure-native"
        }
      }
    }
    
    resource "azure-native_alertsmanagement_alert_processing_rule_by_name" "alertProcessingRuleByName" {
      lifecycle {
        create_before_destroy = true
      }
      alert_processing_rule_name = "RemoveActionGroupsSpecificAlertRule"
      location                   = "Global"
      properties = {
        actions = [{
          action_type = "RemoveAllActionGroups"
        }]
        conditions = [{
          field    = "AlertRuleId"
          operator = "Equals"
          values   = ["/subscriptions/suubId1/resourceGroups/Rgid2/providers/microsoft.insights/activityLogAlerts/RuleName"]
        }]
        description = "Removes all ActionGroups from all Alerts that fire on above AlertRule"
        enabled     = true
        scopes      = ["/subscriptions/subId1"]
      }
      resource_group_name = "alertscorrelationrg"
      tags                = {}
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByName;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByNameArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.AlertProcessingRulePropertiesArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.AddActionGroupsArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.RemoveAllActionGroupsArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.ConditionArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 alertProcessingRuleByName = new AlertProcessingRuleByName("alertProcessingRuleByName", AlertProcessingRuleByNameArgs.builder()
                .alertProcessingRuleName("RemoveActionGroupsSpecificAlertRule")
                .location("Global")
                .properties(AlertProcessingRulePropertiesArgs.builder()
                    .actions(RemoveAllActionGroupsArgs.builder()
                        .build())
                    .conditions(ConditionArgs.builder()
                        .field("AlertRuleId")
                        .operator("Equals")
                        .values("/subscriptions/suubId1/resourceGroups/Rgid2/providers/microsoft.insights/activityLogAlerts/RuleName")
                        .build())
                    .description("Removes all ActionGroups from all Alerts that fire on above AlertRule")
                    .enabled(true)
                    .scopes("/subscriptions/subId1")
                    .build())
                .resourceGroupName("alertscorrelationrg")
                .tags(Map.ofEntries(
                ))
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const alertProcessingRuleByName = new azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByName", {
        alertProcessingRuleName: "RemoveActionGroupsSpecificAlertRule",
        location: "Global",
        properties: {
            actions: [{
                actionType: "RemoveAllActionGroups",
            }],
            conditions: [{
                field: azure_native.alertsmanagement.Field.AlertRuleId,
                operator: azure_native.alertsmanagement.Operator.Equals,
                values: ["/subscriptions/suubId1/resourceGroups/Rgid2/providers/microsoft.insights/activityLogAlerts/RuleName"],
            }],
            description: "Removes all ActionGroups from all Alerts that fire on above AlertRule",
            enabled: true,
            scopes: ["/subscriptions/subId1"],
        },
        resourceGroupName: "alertscorrelationrg",
        tags: {},
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    alert_processing_rule_by_name = azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByName",
        alert_processing_rule_name="RemoveActionGroupsSpecificAlertRule",
        location="Global",
        properties={
            "actions": [{
                "action_type": "RemoveAllActionGroups",
            }],
            "conditions": [{
                "field": azure_native.alertsmanagement.Field.ALERT_RULE_ID,
                "operator": azure_native.alertsmanagement.Operator.EQUALS,
                "values": ["/subscriptions/suubId1/resourceGroups/Rgid2/providers/microsoft.insights/activityLogAlerts/RuleName"],
            }],
            "description": "Removes all ActionGroups from all Alerts that fire on above AlertRule",
            "enabled": True,
            "scopes": ["/subscriptions/subId1"],
        },
        resource_group_name="alertscorrelationrg",
        tags={})
    
    resources:
      alertProcessingRuleByName:
        type: azure-native:alertsmanagement:AlertProcessingRuleByName
        properties:
          alertProcessingRuleName: RemoveActionGroupsSpecificAlertRule
          location: Global
          properties:
            actions:
              - actionType: RemoveAllActionGroups
            conditions:
              - field: AlertRuleId
                operator: Equals
                values:
                  - /subscriptions/suubId1/resourceGroups/Rgid2/providers/microsoft.insights/activityLogAlerts/RuleName
            description: Removes all ActionGroups from all Alerts that fire on above AlertRule
            enabled: true
            scopes:
              - /subscriptions/subId1
          resourceGroupName: alertscorrelationrg
          tags: {}
    

    Create or update a rule that removes all action groups from all alerts on any VM in two resource groups during a recurring maintenance window (2200-0400 every Sat and Sun, India Standard Time)

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var alertProcessingRuleByName = new AzureNative.AlertsManagement.AlertProcessingRuleByName("alertProcessingRuleByName", new()
        {
            AlertProcessingRuleName = "RemoveActionGroupsRecurringMaintenance",
            Location = "Global",
            Properties = new AzureNative.AlertsManagement.Inputs.AlertProcessingRulePropertiesArgs
            {
                Actions = new[]
                {
                    new AzureNative.AlertsManagement.Inputs.RemoveAllActionGroupsArgs
                    {
                        ActionType = "RemoveAllActionGroups",
                    },
                },
                Conditions = new[]
                {
                    new AzureNative.AlertsManagement.Inputs.ConditionArgs
                    {
                        Field = AzureNative.AlertsManagement.Field.TargetResourceType,
                        Operator = AzureNative.AlertsManagement.Operator.EqualsValue,
                        Values = new[]
                        {
                            "microsoft.compute/virtualmachines",
                        },
                    },
                },
                Description = "Remove all ActionGroups from all Vitual machine Alerts during the recurring maintenance",
                Enabled = true,
                Schedule = new AzureNative.AlertsManagement.Inputs.ScheduleArgs
                {
                    Recurrences = new[]
                    {
                        new AzureNative.AlertsManagement.Inputs.WeeklyRecurrenceArgs
                        {
                            DaysOfWeek = 
                            {
                                AzureNative.AlertsManagement.DaysOfWeek.Saturday,
                                AzureNative.AlertsManagement.DaysOfWeek.Sunday,
                            },
                            EndTime = "04:00:00",
                            RecurrenceType = "Weekly",
                            StartTime = "22:00:00",
                        },
                    },
                    TimeZone = "India Standard Time",
                },
                Scopes = new[]
                {
                    "/subscriptions/subId1/resourceGroups/RGId1",
                    "/subscriptions/subId1/resourceGroups/RGId2",
                },
            },
            ResourceGroupName = "alertscorrelationrg",
            Tags = new() { },
        });
    
    });
    
    package main
    
    import (
    	alertsmanagement "github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByName", &alertsmanagement.AlertProcessingRuleByNameArgs{
    			AlertProcessingRuleName: pulumi.String("RemoveActionGroupsRecurringMaintenance"),
    			Location:                pulumi.String("Global"),
    			Properties: &alertsmanagement.AlertProcessingRulePropertiesArgs{
    				Actions: pulumi.Array{
    					&alertsmanagement.RemoveAllActionGroupsArgs{
    						ActionType: pulumi.String("RemoveAllActionGroups"),
    					},
    				},
    				Conditions: alertsmanagement.ConditionArray{
    					&alertsmanagement.ConditionArgs{
    						Field:    pulumi.String(alertsmanagement.FieldTargetResourceType),
    						Operator: pulumi.String(alertsmanagement.OperatorEquals),
    						Values: pulumi.StringArray{
    							pulumi.String("microsoft.compute/virtualmachines"),
    						},
    					},
    				},
    				Description: pulumi.String("Remove all ActionGroups from all Vitual machine Alerts during the recurring maintenance"),
    				Enabled:     pulumi.Bool(true),
    				Schedule: &alertsmanagement.ScheduleArgs{
    					Recurrences: pulumi.Array{
    						&alertsmanagement.WeeklyRecurrenceArgs{
    							DaysOfWeek: pulumi.StringArray{
    								pulumi.String(alertsmanagement.DaysOfWeekSaturday),
    								pulumi.String(alertsmanagement.DaysOfWeekSunday),
    							},
    							EndTime:        pulumi.String("04:00:00"),
    							RecurrenceType: pulumi.String("Weekly"),
    							StartTime:      pulumi.String("22:00:00"),
    						},
    					},
    					TimeZone: pulumi.String("India Standard Time"),
    				},
    				Scopes: pulumi.StringArray{
    					pulumi.String("/subscriptions/subId1/resourceGroups/RGId1"),
    					pulumi.String("/subscriptions/subId1/resourceGroups/RGId2"),
    				},
    			},
    			ResourceGroupName: pulumi.String("alertscorrelationrg"),
    			Tags:              pulumi.StringMap{},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    terraform {
      required_providers {
        azure-native = {
          source = "pulumi/azure-native"
        }
      }
    }
    
    resource "azure-native_alertsmanagement_alert_processing_rule_by_name" "alertProcessingRuleByName" {
      lifecycle {
        create_before_destroy = true
      }
      alert_processing_rule_name = "RemoveActionGroupsRecurringMaintenance"
      location                   = "Global"
      properties = {
        actions = [{
          action_type = "RemoveAllActionGroups"
        }]
        conditions = [{
          field    = "TargetResourceType"
          operator = "Equals"
          values   = ["microsoft.compute/virtualmachines"]
        }]
        description = "Remove all ActionGroups from all Vitual machine Alerts during the recurring maintenance"
        enabled     = true
        schedule = {
          recurrences = [{
            days_of_week    = ["Saturday", "Sunday"]
            end_time        = "04:00:00"
            recurrence_type = "Weekly"
            start_time      = "22:00:00"
          }]
          time_zone = "India Standard Time"
        }
        scopes = ["/subscriptions/subId1/resourceGroups/RGId1", "/subscriptions/subId1/resourceGroups/RGId2"]
      }
      resource_group_name = "alertscorrelationrg"
      tags                = {}
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByName;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByNameArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.AlertProcessingRulePropertiesArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.AddActionGroupsArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.RemoveAllActionGroupsArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.ConditionArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.ScheduleArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.DailyRecurrenceArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.MonthlyRecurrenceArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.WeeklyRecurrenceArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 alertProcessingRuleByName = new AlertProcessingRuleByName("alertProcessingRuleByName", AlertProcessingRuleByNameArgs.builder()
                .alertProcessingRuleName("RemoveActionGroupsRecurringMaintenance")
                .location("Global")
                .properties(AlertProcessingRulePropertiesArgs.builder()
                    .actions(RemoveAllActionGroupsArgs.builder()
                        .build())
                    .conditions(ConditionArgs.builder()
                        .field("TargetResourceType")
                        .operator("Equals")
                        .values("microsoft.compute/virtualmachines")
                        .build())
                    .description("Remove all ActionGroups from all Vitual machine Alerts during the recurring maintenance")
                    .enabled(true)
                    .schedule(ScheduleArgs.builder()
                        .recurrences(WeeklyRecurrenceArgs.builder()
                            .daysOfWeek(                        
                                "Saturday",
                                "Sunday")
                            .endTime("04:00:00")
                            .startTime("22:00:00")
                            .build())
                        .timeZone("India Standard Time")
                        .build())
                    .scopes(                
                        "/subscriptions/subId1/resourceGroups/RGId1",
                        "/subscriptions/subId1/resourceGroups/RGId2")
                    .build())
                .resourceGroupName("alertscorrelationrg")
                .tags(Map.ofEntries(
                ))
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const alertProcessingRuleByName = new azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByName", {
        alertProcessingRuleName: "RemoveActionGroupsRecurringMaintenance",
        location: "Global",
        properties: {
            actions: [{
                actionType: "RemoveAllActionGroups",
            }],
            conditions: [{
                field: azure_native.alertsmanagement.Field.TargetResourceType,
                operator: azure_native.alertsmanagement.Operator.Equals,
                values: ["microsoft.compute/virtualmachines"],
            }],
            description: "Remove all ActionGroups from all Vitual machine Alerts during the recurring maintenance",
            enabled: true,
            schedule: {
                recurrences: [{
                    daysOfWeek: [
                        azure_native.alertsmanagement.DaysOfWeek.Saturday,
                        azure_native.alertsmanagement.DaysOfWeek.Sunday,
                    ],
                    endTime: "04:00:00",
                    recurrenceType: "Weekly",
                    startTime: "22:00:00",
                }],
                timeZone: "India Standard Time",
            },
            scopes: [
                "/subscriptions/subId1/resourceGroups/RGId1",
                "/subscriptions/subId1/resourceGroups/RGId2",
            ],
        },
        resourceGroupName: "alertscorrelationrg",
        tags: {},
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    alert_processing_rule_by_name = azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByName",
        alert_processing_rule_name="RemoveActionGroupsRecurringMaintenance",
        location="Global",
        properties={
            "actions": [{
                "action_type": "RemoveAllActionGroups",
            }],
            "conditions": [{
                "field": azure_native.alertsmanagement.Field.TARGET_RESOURCE_TYPE,
                "operator": azure_native.alertsmanagement.Operator.EQUALS,
                "values": ["microsoft.compute/virtualmachines"],
            }],
            "description": "Remove all ActionGroups from all Vitual machine Alerts during the recurring maintenance",
            "enabled": True,
            "schedule": {
                "recurrences": [{
                    "days_of_week": [
                        azure_native.alertsmanagement.DaysOfWeek.SATURDAY,
                        azure_native.alertsmanagement.DaysOfWeek.SUNDAY,
                    ],
                    "end_time": "04:00:00",
                    "recurrence_type": "Weekly",
                    "start_time": "22:00:00",
                }],
                "time_zone": "India Standard Time",
            },
            "scopes": [
                "/subscriptions/subId1/resourceGroups/RGId1",
                "/subscriptions/subId1/resourceGroups/RGId2",
            ],
        },
        resource_group_name="alertscorrelationrg",
        tags={})
    
    resources:
      alertProcessingRuleByName:
        type: azure-native:alertsmanagement:AlertProcessingRuleByName
        properties:
          alertProcessingRuleName: RemoveActionGroupsRecurringMaintenance
          location: Global
          properties:
            actions:
              - actionType: RemoveAllActionGroups
            conditions:
              - field: TargetResourceType
                operator: Equals
                values:
                  - microsoft.compute/virtualmachines
            description: Remove all ActionGroups from all Vitual machine Alerts during the recurring maintenance
            enabled: true
            schedule:
              recurrences:
                - daysOfWeek:
                    - Saturday
                    - Sunday
                  endTime: 04:00:00
                  recurrenceType: Weekly
                  startTime: 22:00:00
              timeZone: India Standard Time
            scopes:
              - /subscriptions/subId1/resourceGroups/RGId1
              - /subscriptions/subId1/resourceGroups/RGId2
          resourceGroupName: alertscorrelationrg
          tags: {}
    

    Create or update a rule that removes all action groups outside business hours (Mon-Fri 09:00-17:00, Eastern Standard Time)

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var alertProcessingRuleByName = new AzureNative.AlertsManagement.AlertProcessingRuleByName("alertProcessingRuleByName", new()
        {
            AlertProcessingRuleName = "RemoveActionGroupsOutsideBusinessHours",
            Location = "Global",
            Properties = new AzureNative.AlertsManagement.Inputs.AlertProcessingRulePropertiesArgs
            {
                Actions = new[]
                {
                    new AzureNative.AlertsManagement.Inputs.RemoveAllActionGroupsArgs
                    {
                        ActionType = "RemoveAllActionGroups",
                    },
                },
                Description = "Remove all ActionGroups outside business hours",
                Enabled = true,
                Schedule = new AzureNative.AlertsManagement.Inputs.ScheduleArgs
                {
                    Recurrences = 
                    {
                        new AzureNative.AlertsManagement.Inputs.DailyRecurrenceArgs
                        {
                            EndTime = "09:00:00",
                            RecurrenceType = "Daily",
                            StartTime = "17:00:00",
                        },
                        new AzureNative.AlertsManagement.Inputs.WeeklyRecurrenceArgs
                        {
                            DaysOfWeek = 
                            {
                                AzureNative.AlertsManagement.DaysOfWeek.Saturday,
                                AzureNative.AlertsManagement.DaysOfWeek.Sunday,
                            },
                            RecurrenceType = "Weekly",
                        },
                    },
                    TimeZone = "Eastern Standard Time",
                },
                Scopes = new[]
                {
                    "/subscriptions/subId1",
                },
            },
            ResourceGroupName = "alertscorrelationrg",
            Tags = new() { },
        });
    
    });
    
    package main
    
    import (
    	alertsmanagement "github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByName", &alertsmanagement.AlertProcessingRuleByNameArgs{
    			AlertProcessingRuleName: pulumi.String("RemoveActionGroupsOutsideBusinessHours"),
    			Location:                pulumi.String("Global"),
    			Properties: &alertsmanagement.AlertProcessingRulePropertiesArgs{
    				Actions: pulumi.Array{
    					&alertsmanagement.RemoveAllActionGroupsArgs{
    						ActionType: pulumi.String("RemoveAllActionGroups"),
    					},
    				},
    				Description: pulumi.String("Remove all ActionGroups outside business hours"),
    				Enabled:     pulumi.Bool(true),
    				Schedule: &alertsmanagement.ScheduleArgs{
    					Recurrences: pulumi.Array{
    						&alertsmanagement.DailyRecurrenceArgs{
    							EndTime:        pulumi.String("09:00:00"),
    							RecurrenceType: pulumi.String("Daily"),
    							StartTime:      pulumi.String("17:00:00"),
    						},
    						&alertsmanagement.WeeklyRecurrenceArgs{
    							DaysOfWeek: pulumi.StringArray{
    								pulumi.String(alertsmanagement.DaysOfWeekSaturday),
    								pulumi.String(alertsmanagement.DaysOfWeekSunday),
    							},
    							RecurrenceType: pulumi.String("Weekly"),
    						},
    					},
    					TimeZone: pulumi.String("Eastern Standard Time"),
    				},
    				Scopes: pulumi.StringArray{
    					pulumi.String("/subscriptions/subId1"),
    				},
    			},
    			ResourceGroupName: pulumi.String("alertscorrelationrg"),
    			Tags:              pulumi.StringMap{},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    terraform {
      required_providers {
        azure-native = {
          source = "pulumi/azure-native"
        }
      }
    }
    
    resource "azure-native_alertsmanagement_alert_processing_rule_by_name" "alertProcessingRuleByName" {
      lifecycle {
        create_before_destroy = true
      }
      alert_processing_rule_name = "RemoveActionGroupsOutsideBusinessHours"
      location                   = "Global"
      properties = {
        actions = [{
          action_type = "RemoveAllActionGroups"
        }]
        description = "Remove all ActionGroups outside business hours"
        enabled     = true
        schedule = {
          recurrences = [{
            end_time        = "09:00:00"
            recurrence_type = "Daily"
            start_time      = "17:00:00"
            }, {
            days_of_week    = ["Saturday", "Sunday"]
            recurrence_type = "Weekly"
          }]
          time_zone = "Eastern Standard Time"
        }
        scopes = ["/subscriptions/subId1"]
      }
      resource_group_name = "alertscorrelationrg"
      tags                = {}
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByName;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByNameArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.AlertProcessingRulePropertiesArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.AddActionGroupsArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.RemoveAllActionGroupsArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.ScheduleArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.DailyRecurrenceArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.MonthlyRecurrenceArgs;
    import com.pulumi.azurenative.alertsmanagement.inputs.WeeklyRecurrenceArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 alertProcessingRuleByName = new AlertProcessingRuleByName("alertProcessingRuleByName", AlertProcessingRuleByNameArgs.builder()
                .alertProcessingRuleName("RemoveActionGroupsOutsideBusinessHours")
                .location("Global")
                .properties(AlertProcessingRulePropertiesArgs.builder()
                    .actions(RemoveAllActionGroupsArgs.builder()
                        .build())
                    .description("Remove all ActionGroups outside business hours")
                    .enabled(true)
                    .schedule(ScheduleArgs.builder()
                        .recurrences(                    
                            DailyRecurrenceArgs.builder()
                                .endTime("09:00:00")
                                .startTime("17:00:00")
                                .build(),
                            WeeklyRecurrenceArgs.builder()
                                .daysOfWeek(                            
                                    "Saturday",
                                    "Sunday")
                                .build())
                        .timeZone("Eastern Standard Time")
                        .build())
                    .scopes("/subscriptions/subId1")
                    .build())
                .resourceGroupName("alertscorrelationrg")
                .tags(Map.ofEntries(
                ))
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const alertProcessingRuleByName = new azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByName", {
        alertProcessingRuleName: "RemoveActionGroupsOutsideBusinessHours",
        location: "Global",
        properties: {
            actions: [{
                actionType: "RemoveAllActionGroups",
            }],
            description: "Remove all ActionGroups outside business hours",
            enabled: true,
            schedule: {
                recurrences: [
                    {
                        endTime: "09:00:00",
                        recurrenceType: "Daily",
                        startTime: "17:00:00",
                    },
                    {
                        daysOfWeek: [
                            azure_native.alertsmanagement.DaysOfWeek.Saturday,
                            azure_native.alertsmanagement.DaysOfWeek.Sunday,
                        ],
                        recurrenceType: "Weekly",
                    },
                ],
                timeZone: "Eastern Standard Time",
            },
            scopes: ["/subscriptions/subId1"],
        },
        resourceGroupName: "alertscorrelationrg",
        tags: {},
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    alert_processing_rule_by_name = azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByName",
        alert_processing_rule_name="RemoveActionGroupsOutsideBusinessHours",
        location="Global",
        properties={
            "actions": [{
                "action_type": "RemoveAllActionGroups",
            }],
            "description": "Remove all ActionGroups outside business hours",
            "enabled": True,
            "schedule": {
                "recurrences": [
                    {
                        "end_time": "09:00:00",
                        "recurrence_type": "Daily",
                        "start_time": "17:00:00",
                    },
                    {
                        "days_of_week": [
                            azure_native.alertsmanagement.DaysOfWeek.SATURDAY,
                            azure_native.alertsmanagement.DaysOfWeek.SUNDAY,
                        ],
                        "recurrence_type": "Weekly",
                    },
                ],
                "time_zone": "Eastern Standard Time",
            },
            "scopes": ["/subscriptions/subId1"],
        },
        resource_group_name="alertscorrelationrg",
        tags={})
    
    resources:
      alertProcessingRuleByName:
        type: azure-native:alertsmanagement:AlertProcessingRuleByName
        properties:
          alertProcessingRuleName: RemoveActionGroupsOutsideBusinessHours
          location: Global
          properties:
            actions:
              - actionType: RemoveAllActionGroups
            description: Remove all ActionGroups outside business hours
            enabled: true
            schedule:
              recurrences:
                - endTime: 09:00:00
                  recurrenceType: Daily
                  startTime: 17:00:00
                - daysOfWeek:
                    - Saturday
                    - Sunday
                  recurrenceType: Weekly
              timeZone: Eastern Standard Time
            scopes:
              - /subscriptions/subId1
          resourceGroupName: alertscorrelationrg
          tags: {}
    

    Create AlertProcessingRuleByName Resource

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

    Constructor syntax

    new AlertProcessingRuleByName(name: string, args: AlertProcessingRuleByNameArgs, opts?: CustomResourceOptions);
    @overload
    def AlertProcessingRuleByName(resource_name: str,
                                  args: AlertProcessingRuleByNameArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def AlertProcessingRuleByName(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  resource_group_name: Optional[str] = None,
                                  alert_processing_rule_name: Optional[str] = None,
                                  location: Optional[str] = None,
                                  properties: Optional[AlertProcessingRulePropertiesArgs] = None,
                                  tags: Optional[Mapping[str, str]] = None)
    func NewAlertProcessingRuleByName(ctx *Context, name string, args AlertProcessingRuleByNameArgs, opts ...ResourceOption) (*AlertProcessingRuleByName, error)
    public AlertProcessingRuleByName(string name, AlertProcessingRuleByNameArgs args, CustomResourceOptions? opts = null)
    public AlertProcessingRuleByName(String name, AlertProcessingRuleByNameArgs args)
    public AlertProcessingRuleByName(String name, AlertProcessingRuleByNameArgs args, CustomResourceOptions options)
    
    type: azure-native:alertsmanagement:AlertProcessingRuleByName
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "azure-native_alertsmanagement_alert_processing_rule_by_name" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AlertProcessingRuleByNameArgs
    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 AlertProcessingRuleByNameArgs
    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 AlertProcessingRuleByNameArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AlertProcessingRuleByNameArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AlertProcessingRuleByNameArgs
    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 alertProcessingRuleByNameResource = new AzureNative.AlertsManagement.AlertProcessingRuleByName("alertProcessingRuleByNameResource", new()
    {
        ResourceGroupName = "string",
        AlertProcessingRuleName = "string",
        Location = "string",
        Properties = new AzureNative.AlertsManagement.Inputs.AlertProcessingRulePropertiesArgs
        {
            Actions = new[]
            {
                new AzureNative.AlertsManagement.Inputs.AddActionGroupsArgs
                {
                    ActionGroupIds = new[]
                    {
                        "string",
                    },
                    ActionType = "AddActionGroups",
                },
            },
            Scopes = new[]
            {
                "string",
            },
            Conditions = new[]
            {
                new AzureNative.AlertsManagement.Inputs.ConditionArgs
                {
                    Field = "string",
                    Operator = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
            },
            Description = "string",
            Enabled = false,
            Schedule = new AzureNative.AlertsManagement.Inputs.ScheduleArgs
            {
                EffectiveFrom = "string",
                EffectiveUntil = "string",
                Recurrences = new[]
                {
                    new AzureNative.AlertsManagement.Inputs.DailyRecurrenceArgs
                    {
                        RecurrenceType = "Daily",
                        EndTime = "string",
                        StartTime = "string",
                    },
                },
                TimeZone = "string",
            },
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByNameResource", &alertsmanagement.AlertProcessingRuleByNameArgs{
    	ResourceGroupName:       pulumi.String("string"),
    	AlertProcessingRuleName: pulumi.String("string"),
    	Location:                pulumi.String("string"),
    	Properties: &alertsmanagement.AlertProcessingRulePropertiesArgs{
    		Actions: pulumi.Array{
    			&alertsmanagement.AddActionGroupsArgs{
    				ActionGroupIds: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				ActionType: pulumi.String("AddActionGroups"),
    			},
    		},
    		Scopes: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Conditions: alertsmanagement.ConditionArray{
    			&alertsmanagement.ConditionArgs{
    				Field:    pulumi.String("string"),
    				Operator: pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    		Description: pulumi.String("string"),
    		Enabled:     pulumi.Bool(false),
    		Schedule: &alertsmanagement.ScheduleArgs{
    			EffectiveFrom:  pulumi.String("string"),
    			EffectiveUntil: pulumi.String("string"),
    			Recurrences: pulumi.Array{
    				&alertsmanagement.DailyRecurrenceArgs{
    					RecurrenceType: pulumi.String("Daily"),
    					EndTime:        pulumi.String("string"),
    					StartTime:      pulumi.String("string"),
    				},
    			},
    			TimeZone: pulumi.String("string"),
    		},
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    resource "azure-native_alertsmanagement_alert_processing_rule_by_name" "alertProcessingRuleByNameResource" {
      lifecycle {
        create_before_destroy = true
      }
      resource_group_name        = "string"
      alert_processing_rule_name = "string"
      location                   = "string"
      properties = {
        actions = [{
          action_group_ids = ["string"]
          action_type      = "AddActionGroups"
        }]
        scopes = ["string"]
        conditions = [{
          field    = "string"
          operator = "string"
          values   = ["string"]
        }]
        description = "string"
        enabled     = false
        schedule = {
          effective_from  = "string"
          effective_until = "string"
          recurrences = [{
            recurrence_type = "Daily"
            end_time        = "string"
            start_time      = "string"
          }]
          time_zone = "string"
        }
      }
      tags = {
        "string" = "string"
      }
    }
    
    var alertProcessingRuleByNameResource = new AlertProcessingRuleByName("alertProcessingRuleByNameResource", AlertProcessingRuleByNameArgs.builder()
        .resourceGroupName("string")
        .alertProcessingRuleName("string")
        .location("string")
        .properties(AlertProcessingRulePropertiesArgs.builder()
            .actions(AddActionGroupsArgs.builder()
                .actionGroupIds("string")
                .build())
            .scopes("string")
            .conditions(com.pulumi.azurenative.alertsmanagement.inputs.ConditionArgs.builder()
                .field("string")
                .operator("string")
                .values("string")
                .build())
            .description("string")
            .enabled(false)
            .schedule(com.pulumi.azurenative.alertsmanagement.inputs.ScheduleArgs.builder()
                .effectiveFrom("string")
                .effectiveUntil("string")
                .recurrences(DailyRecurrenceArgs.builder()
                    .endTime("string")
                    .startTime("string")
                    .build())
                .timeZone("string")
                .build())
            .build())
        .tags(Map.of("string", "string"))
        .build());
    
    alert_processing_rule_by_name_resource = azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByNameResource",
        resource_group_name="string",
        alert_processing_rule_name="string",
        location="string",
        properties={
            "actions": [{
                "action_group_ids": ["string"],
                "action_type": "AddActionGroups",
            }],
            "scopes": ["string"],
            "conditions": [{
                "field": "string",
                "operator": "string",
                "values": ["string"],
            }],
            "description": "string",
            "enabled": False,
            "schedule": {
                "effective_from": "string",
                "effective_until": "string",
                "recurrences": [{
                    "recurrence_type": "Daily",
                    "end_time": "string",
                    "start_time": "string",
                }],
                "time_zone": "string",
            },
        },
        tags={
            "string": "string",
        })
    
    const alertProcessingRuleByNameResource = new azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByNameResource", {
        resourceGroupName: "string",
        alertProcessingRuleName: "string",
        location: "string",
        properties: {
            actions: [{
                actionGroupIds: ["string"],
                actionType: "AddActionGroups",
            }],
            scopes: ["string"],
            conditions: [{
                field: "string",
                operator: "string",
                values: ["string"],
            }],
            description: "string",
            enabled: false,
            schedule: {
                effectiveFrom: "string",
                effectiveUntil: "string",
                recurrences: [{
                    recurrenceType: "Daily",
                    endTime: "string",
                    startTime: "string",
                }],
                timeZone: "string",
            },
        },
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:alertsmanagement:AlertProcessingRuleByName
    properties:
        alertProcessingRuleName: string
        location: string
        properties:
            actions:
                - actionGroupIds:
                    - string
                  actionType: AddActionGroups
            conditions:
                - field: string
                  operator: string
                  values:
                    - string
            description: string
            enabled: false
            schedule:
                effectiveFrom: string
                effectiveUntil: string
                recurrences:
                    - endTime: string
                      recurrenceType: Daily
                      startTime: string
                timeZone: string
            scopes:
                - string
        resourceGroupName: string
        tags:
            string: string
    

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

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    AlertProcessingRuleName string
    The name of the alert processing rule that needs to be fetched.
    Location string
    The geo-location where the resource lives
    Properties Pulumi.AzureNative.AlertsManagement.Inputs.AlertProcessingRuleProperties
    Alert processing rule properties.
    Tags Dictionary<string, string>
    Resource tags.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    AlertProcessingRuleName string
    The name of the alert processing rule that needs to be fetched.
    Location string
    The geo-location where the resource lives
    Properties AlertProcessingRulePropertiesArgs
    Alert processing rule properties.
    Tags map[string]string
    Resource tags.
    resource_group_name string
    The name of the resource group. The name is case insensitive.
    alert_processing_rule_name string
    The name of the alert processing rule that needs to be fetched.
    location string
    The geo-location where the resource lives
    properties object
    Alert processing rule properties.
    tags map(string)
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    alertProcessingRuleName String
    The name of the alert processing rule that needs to be fetched.
    location String
    The geo-location where the resource lives
    properties AlertProcessingRuleProperties
    Alert processing rule properties.
    tags Map<String,String>
    Resource tags.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    alertProcessingRuleName string
    The name of the alert processing rule that needs to be fetched.
    location string
    The geo-location where the resource lives
    properties AlertProcessingRuleProperties
    Alert processing rule properties.
    tags {[key: string]: string}
    Resource tags.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    alert_processing_rule_name str
    The name of the alert processing rule that needs to be fetched.
    location str
    The geo-location where the resource lives
    properties AlertProcessingRulePropertiesArgs
    Alert processing rule properties.
    tags Mapping[str, str]
    Resource tags.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    alertProcessingRuleName String
    The name of the alert processing rule that needs to be fetched.
    location String
    The geo-location where the resource lives
    properties Property Map
    Alert processing rule properties.
    tags Map<String>
    Resource tags.

    Outputs

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

    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData Pulumi.AzureNative.AlertsManagement.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azure_api_version string
    The Azure API version of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    system_data object
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion string
    The Azure API version of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azure_api_version str
    The Azure API version of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Look up Existing AlertProcessingRuleByName Resource

    Get an existing AlertProcessingRuleByName 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>, opts?: CustomResourceOptions): AlertProcessingRuleByName
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> AlertProcessingRuleByName
    func GetAlertProcessingRuleByName(ctx *Context, name string, id IDInput, state *AlertProcessingRuleByNameState, opts ...ResourceOption) (*AlertProcessingRuleByName, error)
    public static AlertProcessingRuleByName Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static AlertProcessingRuleByName get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingAlertProcessingRuleByName:    type: azure-native:alertsmanagement:AlertProcessingRuleByName    get:      id: ${id}
    import {
      to = azure-native_alertsmanagement_alert_processing_rule_by_name.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state AlertProcessingRuleByNameState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    AddActionGroups, AddActionGroupsArgs

    Add action groups to alert processing rule.

    ActionGroupIds List<string>
    List of action group Ids to add to alert processing rule.
    ActionGroupIds []string
    List of action group Ids to add to alert processing rule.
    action_group_ids list(string)
    List of action group Ids to add to alert processing rule.
    actionGroupIds List<String>
    List of action group Ids to add to alert processing rule.
    actionGroupIds string[]
    List of action group Ids to add to alert processing rule.
    action_group_ids Sequence[str]
    List of action group Ids to add to alert processing rule.
    actionGroupIds List<String>
    List of action group Ids to add to alert processing rule.

    AddActionGroupsResponse

    Add action groups to alert processing rule.

    ActionGroupIds List<string>
    List of action group Ids to add to alert processing rule.
    ActionGroupIds []string
    List of action group Ids to add to alert processing rule.
    action_group_ids list(string)
    List of action group Ids to add to alert processing rule.
    actionGroupIds List<String>
    List of action group Ids to add to alert processing rule.
    actionGroupIds string[]
    List of action group Ids to add to alert processing rule.
    action_group_ids Sequence[str]
    List of action group Ids to add to alert processing rule.
    actionGroupIds List<String>
    List of action group Ids to add to alert processing rule.

    AlertProcessingRuleProperties, AlertProcessingRulePropertiesArgs

    Alert processing rule properties defining scopes, conditions and scheduling logic for alert processing rule.

    Actions List<Union<Pulumi.AzureNative.AlertsManagement.Inputs.AddActionGroups, Pulumi.AzureNative.AlertsManagement.Inputs.RemoveAllActionGroups>>
    Actions to be applied.
    Scopes List<string>
    Scopes on which alert processing rule will apply.
    Conditions List<Pulumi.AzureNative.AlertsManagement.Inputs.Condition>
    Conditions on which alerts will be filtered.
    Description string
    Actions to be applied.Description of alert processing rule.
    Enabled bool
    Indicates if the given alert processing rule is enabled or disabled.
    Schedule Pulumi.AzureNative.AlertsManagement.Inputs.Schedule
    Scheduling for alert processing rule.
    Actions []interface{}
    Actions to be applied.
    Scopes []string
    Scopes on which alert processing rule will apply.
    Conditions []Condition
    Conditions on which alerts will be filtered.
    Description string
    Actions to be applied.Description of alert processing rule.
    Enabled bool
    Indicates if the given alert processing rule is enabled or disabled.
    Schedule Schedule
    Scheduling for alert processing rule.
    actions list(object | object)
    Actions to be applied.
    scopes list(string)
    Scopes on which alert processing rule will apply.
    conditions list(object)
    Conditions on which alerts will be filtered.
    description string
    Actions to be applied.Description of alert processing rule.
    enabled bool
    Indicates if the given alert processing rule is enabled or disabled.
    schedule object
    Scheduling for alert processing rule.
    actions List<Either<AddActionGroups,RemoveAllActionGroups>>
    Actions to be applied.
    scopes List<String>
    Scopes on which alert processing rule will apply.
    conditions List<Condition>
    Conditions on which alerts will be filtered.
    description String
    Actions to be applied.Description of alert processing rule.
    enabled Boolean
    Indicates if the given alert processing rule is enabled or disabled.
    schedule Schedule
    Scheduling for alert processing rule.
    actions (AddActionGroups | RemoveAllActionGroups)[]
    Actions to be applied.
    scopes string[]
    Scopes on which alert processing rule will apply.
    conditions Condition[]
    Conditions on which alerts will be filtered.
    description string
    Actions to be applied.Description of alert processing rule.
    enabled boolean
    Indicates if the given alert processing rule is enabled or disabled.
    schedule Schedule
    Scheduling for alert processing rule.
    actions Sequence[Union[AddActionGroups, RemoveAllActionGroups]]
    Actions to be applied.
    scopes Sequence[str]
    Scopes on which alert processing rule will apply.
    conditions Sequence[Condition]
    Conditions on which alerts will be filtered.
    description str
    Actions to be applied.Description of alert processing rule.
    enabled bool
    Indicates if the given alert processing rule is enabled or disabled.
    schedule Schedule
    Scheduling for alert processing rule.
    actions List<Property Map | Property Map>
    Actions to be applied.
    scopes List<String>
    Scopes on which alert processing rule will apply.
    conditions List<Property Map>
    Conditions on which alerts will be filtered.
    description String
    Actions to be applied.Description of alert processing rule.
    enabled Boolean
    Indicates if the given alert processing rule is enabled or disabled.
    schedule Property Map
    Scheduling for alert processing rule.

    AlertProcessingRulePropertiesResponse

    Alert processing rule properties defining scopes, conditions and scheduling logic for alert processing rule.

    Actions List<Union<Pulumi.AzureNative.AlertsManagement.Inputs.AddActionGroupsResponse, Pulumi.AzureNative.AlertsManagement.Inputs.RemoveAllActionGroupsResponse>>
    Actions to be applied.
    Scopes List<string>
    Scopes on which alert processing rule will apply.
    Conditions List<Pulumi.AzureNative.AlertsManagement.Inputs.ConditionAlertProcessingRuleByNameResponse>
    Conditions on which alerts will be filtered.
    Description string
    Actions to be applied.Description of alert processing rule.
    Enabled bool
    Indicates if the given alert processing rule is enabled or disabled.
    Schedule Pulumi.AzureNative.AlertsManagement.Inputs.ScheduleResponse
    Scheduling for alert processing rule.
    Actions []interface{}
    Actions to be applied.
    Scopes []string
    Scopes on which alert processing rule will apply.
    Conditions []ConditionAlertProcessingRuleByNameResponse
    Conditions on which alerts will be filtered.
    Description string
    Actions to be applied.Description of alert processing rule.
    Enabled bool
    Indicates if the given alert processing rule is enabled or disabled.
    Schedule ScheduleResponse
    Scheduling for alert processing rule.
    actions list(object | object)
    Actions to be applied.
    scopes list(string)
    Scopes on which alert processing rule will apply.
    conditions list(object)
    Conditions on which alerts will be filtered.
    description string
    Actions to be applied.Description of alert processing rule.
    enabled bool
    Indicates if the given alert processing rule is enabled or disabled.
    schedule object
    Scheduling for alert processing rule.
    actions List<Either<AddActionGroupsResponse,RemoveAllActionGroupsResponse>>
    Actions to be applied.
    scopes List<String>
    Scopes on which alert processing rule will apply.
    conditions List<ConditionAlertProcessingRuleByNameResponse>
    Conditions on which alerts will be filtered.
    description String
    Actions to be applied.Description of alert processing rule.
    enabled Boolean
    Indicates if the given alert processing rule is enabled or disabled.
    schedule ScheduleResponse
    Scheduling for alert processing rule.
    actions (AddActionGroupsResponse | RemoveAllActionGroupsResponse)[]
    Actions to be applied.
    scopes string[]
    Scopes on which alert processing rule will apply.
    conditions ConditionAlertProcessingRuleByNameResponse[]
    Conditions on which alerts will be filtered.
    description string
    Actions to be applied.Description of alert processing rule.
    enabled boolean
    Indicates if the given alert processing rule is enabled or disabled.
    schedule ScheduleResponse
    Scheduling for alert processing rule.
    actions Sequence[Union[AddActionGroupsResponse, RemoveAllActionGroupsResponse]]
    Actions to be applied.
    scopes Sequence[str]
    Scopes on which alert processing rule will apply.
    conditions Sequence[ConditionAlertProcessingRuleByNameResponse]
    Conditions on which alerts will be filtered.
    description str
    Actions to be applied.Description of alert processing rule.
    enabled bool
    Indicates if the given alert processing rule is enabled or disabled.
    schedule ScheduleResponse
    Scheduling for alert processing rule.
    actions List<Property Map | Property Map>
    Actions to be applied.
    scopes List<String>
    Scopes on which alert processing rule will apply.
    conditions List<Property Map>
    Conditions on which alerts will be filtered.
    description String
    Actions to be applied.Description of alert processing rule.
    enabled Boolean
    Indicates if the given alert processing rule is enabled or disabled.
    schedule Property Map
    Scheduling for alert processing rule.

    Condition, ConditionArgs

    Condition to trigger an alert processing rule.

    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.

    ConditionAlertProcessingRuleByNameResponse

    Condition to trigger an alert processing rule.

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

    DailyRecurrence, DailyRecurrenceArgs

    Daily recurrence object.

    EndTime string
    End time for recurrence.
    StartTime string
    Start time for recurrence.
    EndTime string
    End time for recurrence.
    StartTime string
    Start time for recurrence.
    end_time string
    End time for recurrence.
    start_time string
    Start time for recurrence.
    endTime String
    End time for recurrence.
    startTime String
    Start time for recurrence.
    endTime string
    End time for recurrence.
    startTime string
    Start time for recurrence.
    end_time str
    End time for recurrence.
    start_time str
    Start time for recurrence.
    endTime String
    End time for recurrence.
    startTime String
    Start time for recurrence.

    DailyRecurrenceResponse

    Daily recurrence object.

    EndTime string
    End time for recurrence.
    StartTime string
    Start time for recurrence.
    EndTime string
    End time for recurrence.
    StartTime string
    Start time for recurrence.
    end_time string
    End time for recurrence.
    start_time string
    Start time for recurrence.
    endTime String
    End time for recurrence.
    startTime String
    Start time for recurrence.
    endTime string
    End time for recurrence.
    startTime string
    Start time for recurrence.
    end_time str
    End time for recurrence.
    start_time str
    Start time for recurrence.
    endTime String
    End time for recurrence.
    startTime String
    Start time for recurrence.

    DaysOfWeek

    Days of week.

    NameValueDescription
    SundaySundaySunday
    MondayMondayMonday
    TuesdayTuesdayTuesday
    WednesdayWednesdayWednesday
    ThursdayThursdayThursday
    FridayFridayFriday
    SaturdaySaturdaySaturday
    NameValueDescription
    DaysOfWeekSundaySundaySunday
    DaysOfWeekMondayMondayMonday
    DaysOfWeekTuesdayTuesdayTuesday
    DaysOfWeekWednesdayWednesdayWednesday
    DaysOfWeekThursdayThursdayThursday
    DaysOfWeekFridayFridayFriday
    DaysOfWeekSaturdaySaturdaySaturday
    ValueDescription
    SundaySunday
    MondayMonday
    TuesdayTuesday
    WednesdayWednesday
    ThursdayThursday
    FridayFriday
    SaturdaySaturday
    NameValueDescription
    SundaySundaySunday
    MondayMondayMonday
    TuesdayTuesdayTuesday
    WednesdayWednesdayWednesday
    ThursdayThursdayThursday
    FridayFridayFriday
    SaturdaySaturdaySaturday
    NameValueDescription
    SundaySundaySunday
    MondayMondayMonday
    TuesdayTuesdayTuesday
    WednesdayWednesdayWednesday
    ThursdayThursdayThursday
    FridayFridayFriday
    SaturdaySaturdaySaturday
    NameValueDescription
    SUNDAYSundaySunday
    MONDAYMondayMonday
    TUESDAYTuesdayTuesday
    WEDNESDAYWednesdayWednesday
    THURSDAYThursdayThursday
    FRIDAYFridayFriday
    SATURDAYSaturdaySaturday
    ValueDescription
    SundaySunday
    MondayMonday
    TuesdayTuesday
    WednesdayWednesday
    ThursdayThursday
    FridayFriday
    SaturdaySaturday

    Field

    Field for a given condition.

    NameValueDescription
    SeveritySeveritySeverity
    MonitorServiceMonitorServiceMonitorService
    MonitorConditionMonitorConditionMonitorCondition
    SignalTypeSignalTypeSignalType
    TargetResourceTypeTargetResourceTypeTargetResourceType
    TargetResourceTargetResourceTargetResource
    TargetResourceGroupTargetResourceGroupTargetResourceGroup
    AlertRuleIdAlertRuleIdAlertRuleId
    AlertRuleNameAlertRuleNameAlertRuleName
    DescriptionDescriptionDescription
    AlertContextAlertContextAlertContext
    NameValueDescription
    FieldSeveritySeveritySeverity
    FieldMonitorServiceMonitorServiceMonitorService
    FieldMonitorConditionMonitorConditionMonitorCondition
    FieldSignalTypeSignalTypeSignalType
    FieldTargetResourceTypeTargetResourceTypeTargetResourceType
    FieldTargetResourceTargetResourceTargetResource
    FieldTargetResourceGroupTargetResourceGroupTargetResourceGroup
    FieldAlertRuleIdAlertRuleIdAlertRuleId
    FieldAlertRuleNameAlertRuleNameAlertRuleName
    FieldDescriptionDescriptionDescription
    FieldAlertContextAlertContextAlertContext
    ValueDescription
    SeveritySeverity
    MonitorServiceMonitorService
    MonitorConditionMonitorCondition
    SignalTypeSignalType
    TargetResourceTypeTargetResourceType
    TargetResourceTargetResource
    TargetResourceGroupTargetResourceGroup
    AlertRuleIdAlertRuleId
    AlertRuleNameAlertRuleName
    DescriptionDescription
    AlertContextAlertContext
    NameValueDescription
    SeveritySeveritySeverity
    MonitorServiceMonitorServiceMonitorService
    MonitorConditionMonitorConditionMonitorCondition
    SignalTypeSignalTypeSignalType
    TargetResourceTypeTargetResourceTypeTargetResourceType
    TargetResourceTargetResourceTargetResource
    TargetResourceGroupTargetResourceGroupTargetResourceGroup
    AlertRuleIdAlertRuleIdAlertRuleId
    AlertRuleNameAlertRuleNameAlertRuleName
    DescriptionDescriptionDescription
    AlertContextAlertContextAlertContext
    NameValueDescription
    SeveritySeveritySeverity
    MonitorServiceMonitorServiceMonitorService
    MonitorConditionMonitorConditionMonitorCondition
    SignalTypeSignalTypeSignalType
    TargetResourceTypeTargetResourceTypeTargetResourceType
    TargetResourceTargetResourceTargetResource
    TargetResourceGroupTargetResourceGroupTargetResourceGroup
    AlertRuleIdAlertRuleIdAlertRuleId
    AlertRuleNameAlertRuleNameAlertRuleName
    DescriptionDescriptionDescription
    AlertContextAlertContextAlertContext
    NameValueDescription
    SEVERITYSeveritySeverity
    MONITOR_SERVICEMonitorServiceMonitorService
    MONITOR_CONDITIONMonitorConditionMonitorCondition
    SIGNAL_TYPESignalTypeSignalType
    TARGET_RESOURCE_TYPETargetResourceTypeTargetResourceType
    TARGET_RESOURCETargetResourceTargetResource
    TARGET_RESOURCE_GROUPTargetResourceGroupTargetResourceGroup
    ALERT_RULE_IDAlertRuleIdAlertRuleId
    ALERT_RULE_NAMEAlertRuleNameAlertRuleName
    DESCRIPTIONDescriptionDescription
    ALERT_CONTEXTAlertContextAlertContext
    ValueDescription
    SeveritySeverity
    MonitorServiceMonitorService
    MonitorConditionMonitorCondition
    SignalTypeSignalType
    TargetResourceTypeTargetResourceType
    TargetResourceTargetResource
    TargetResourceGroupTargetResourceGroup
    AlertRuleIdAlertRuleId
    AlertRuleNameAlertRuleName
    DescriptionDescription
    AlertContextAlertContext

    MonthlyRecurrence, MonthlyRecurrenceArgs

    Monthly recurrence object.

    DaysOfMonth List<int>
    Specifies the values for monthly recurrence pattern.
    EndTime string
    End time for recurrence.
    StartTime string
    Start time for recurrence.
    DaysOfMonth []int
    Specifies the values for monthly recurrence pattern.
    EndTime string
    End time for recurrence.
    StartTime string
    Start time for recurrence.
    days_of_month list(number)
    Specifies the values for monthly recurrence pattern.
    end_time string
    End time for recurrence.
    start_time string
    Start time for recurrence.
    daysOfMonth List<Integer>
    Specifies the values for monthly recurrence pattern.
    endTime String
    End time for recurrence.
    startTime String
    Start time for recurrence.
    daysOfMonth number[]
    Specifies the values for monthly recurrence pattern.
    endTime string
    End time for recurrence.
    startTime string
    Start time for recurrence.
    days_of_month Sequence[int]
    Specifies the values for monthly recurrence pattern.
    end_time str
    End time for recurrence.
    start_time str
    Start time for recurrence.
    daysOfMonth List<Number>
    Specifies the values for monthly recurrence pattern.
    endTime String
    End time for recurrence.
    startTime String
    Start time for recurrence.

    MonthlyRecurrenceResponse

    Monthly recurrence object.

    DaysOfMonth List<int>
    Specifies the values for monthly recurrence pattern.
    EndTime string
    End time for recurrence.
    StartTime string
    Start time for recurrence.
    DaysOfMonth []int
    Specifies the values for monthly recurrence pattern.
    EndTime string
    End time for recurrence.
    StartTime string
    Start time for recurrence.
    days_of_month list(number)
    Specifies the values for monthly recurrence pattern.
    end_time string
    End time for recurrence.
    start_time string
    Start time for recurrence.
    daysOfMonth List<Integer>
    Specifies the values for monthly recurrence pattern.
    endTime String
    End time for recurrence.
    startTime String
    Start time for recurrence.
    daysOfMonth number[]
    Specifies the values for monthly recurrence pattern.
    endTime string
    End time for recurrence.
    startTime string
    Start time for recurrence.
    days_of_month Sequence[int]
    Specifies the values for monthly recurrence pattern.
    end_time str
    End time for recurrence.
    start_time str
    Start time for recurrence.
    daysOfMonth List<Number>
    Specifies the values for monthly recurrence pattern.
    endTime String
    End time for recurrence.
    startTime String
    Start time for recurrence.

    Operator

    Operator for a given condition.

    NameValueDescription
    EqualsValueEqualsEquals
    NotEqualsNotEqualsNotEquals
    ContainsContainsContains
    DoesNotContainDoesNotContainDoesNotContain
    NameValueDescription
    OperatorEqualsEqualsEquals
    OperatorNotEqualsNotEqualsNotEquals
    OperatorContainsContainsContains
    OperatorDoesNotContainDoesNotContainDoesNotContain
    ValueDescription
    EqualsEquals
    NotEqualsNotEquals
    ContainsContains
    DoesNotContainDoesNotContain
    NameValueDescription
    EqualsEqualsEquals
    NotEqualsNotEqualsNotEquals
    ContainsContainsContains
    DoesNotContainDoesNotContainDoesNotContain
    NameValueDescription
    EqualsEqualsEquals
    NotEqualsNotEqualsNotEquals
    ContainsContainsContains
    DoesNotContainDoesNotContainDoesNotContain
    NameValueDescription
    EQUALSEqualsEquals
    NOT_EQUALSNotEqualsNotEquals
    CONTAINSContainsContains
    DOES_NOT_CONTAINDoesNotContainDoesNotContain
    ValueDescription
    EqualsEquals
    NotEqualsNotEquals
    ContainsContains
    DoesNotContainDoesNotContain

    RemoveAllActionGroups, RemoveAllActionGroupsArgs

    Indicates if all action groups should be removed.

    RemoveAllActionGroupsResponse

    Indicates if all action groups should be removed.

    Schedule, ScheduleArgs

    Scheduling configuration for a given alert processing rule.

    EffectiveFrom string
    Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
    EffectiveUntil string
    Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
    Recurrences List<object>
    List of recurrences.
    TimeZone string
    Scheduling time zone.
    EffectiveFrom string
    Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
    EffectiveUntil string
    Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
    Recurrences []interface{}
    List of recurrences.
    TimeZone string
    Scheduling time zone.
    effective_from string
    Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
    effective_until string
    Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
    recurrences list(object | object | object)
    List of recurrences.
    time_zone string
    Scheduling time zone.
    effectiveFrom String
    Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
    effectiveUntil String
    Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
    recurrences List<Object>
    List of recurrences.
    timeZone String
    Scheduling time zone.
    effectiveFrom string
    Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
    effectiveUntil string
    Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
    recurrences (DailyRecurrence | MonthlyRecurrence | WeeklyRecurrence)[]
    List of recurrences.
    timeZone string
    Scheduling time zone.
    effective_from str
    Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
    effective_until str
    Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
    recurrences Sequence[Union[DailyRecurrence, MonthlyRecurrence, WeeklyRecurrence]]
    List of recurrences.
    time_zone str
    Scheduling time zone.
    effectiveFrom String
    Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
    effectiveUntil String
    Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
    recurrences List<Property Map | Property Map | Property Map>
    List of recurrences.
    timeZone String
    Scheduling time zone.

    ScheduleResponse

    Scheduling configuration for a given alert processing rule.

    EffectiveFrom string
    Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
    EffectiveUntil string
    Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
    Recurrences List<object>
    List of recurrences.
    TimeZone string
    Scheduling time zone.
    EffectiveFrom string
    Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
    EffectiveUntil string
    Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
    Recurrences []interface{}
    List of recurrences.
    TimeZone string
    Scheduling time zone.
    effective_from string
    Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
    effective_until string
    Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
    recurrences list(object | object | object)
    List of recurrences.
    time_zone string
    Scheduling time zone.
    effectiveFrom String
    Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
    effectiveUntil String
    Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
    recurrences List<Object>
    List of recurrences.
    timeZone String
    Scheduling time zone.
    effectiveFrom string
    Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
    effectiveUntil string
    Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
    recurrences (DailyRecurrenceResponse | MonthlyRecurrenceResponse | WeeklyRecurrenceResponse)[]
    List of recurrences.
    timeZone string
    Scheduling time zone.
    effective_from str
    Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
    effective_until str
    Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
    recurrences Sequence[Union[DailyRecurrenceResponse, MonthlyRecurrenceResponse, WeeklyRecurrenceResponse]]
    List of recurrences.
    time_zone str
    Scheduling time zone.
    effectiveFrom String
    Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
    effectiveUntil String
    Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
    recurrences List<Property Map | Property Map | Property Map>
    List of recurrences.
    timeZone String
    Scheduling time zone.

    SystemDataResponse

    Metadata pertaining to creation and last modification of the resource.

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    created_at string
    The timestamp of resource creation (UTC).
    created_by string
    The identity that created the resource.
    created_by_type string
    The type of identity that created the resource.
    last_modified_at string
    The timestamp of resource last modification (UTC)
    last_modified_by string
    The identity that last modified the resource.
    last_modified_by_type string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    WeeklyRecurrence, WeeklyRecurrenceArgs

    Weekly recurrence object.

    DaysOfWeek List<Union<string, Pulumi.AzureNative.AlertsManagement.DaysOfWeek>>
    Specifies the values for weekly recurrence pattern.
    EndTime string
    End time for recurrence.
    StartTime string
    Start time for recurrence.
    DaysOfWeek []string
    Specifies the values for weekly recurrence pattern.
    EndTime string
    End time for recurrence.
    StartTime string
    Start time for recurrence.
    days_of_week list(string | "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday")
    Specifies the values for weekly recurrence pattern.
    end_time string
    End time for recurrence.
    start_time string
    Start time for recurrence.
    daysOfWeek List<Either<String,DaysOfWeek>>
    Specifies the values for weekly recurrence pattern.
    endTime String
    End time for recurrence.
    startTime String
    Start time for recurrence.
    daysOfWeek (string | DaysOfWeek)[]
    Specifies the values for weekly recurrence pattern.
    endTime string
    End time for recurrence.
    startTime string
    Start time for recurrence.
    days_of_week Sequence[Union[str, DaysOfWeek]]
    Specifies the values for weekly recurrence pattern.
    end_time str
    End time for recurrence.
    start_time str
    Start time for recurrence.
    daysOfWeek List<String | "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday">
    Specifies the values for weekly recurrence pattern.
    endTime String
    End time for recurrence.
    startTime String
    Start time for recurrence.

    WeeklyRecurrenceResponse

    Weekly recurrence object.

    DaysOfWeek List<string>
    Specifies the values for weekly recurrence pattern.
    EndTime string
    End time for recurrence.
    StartTime string
    Start time for recurrence.
    DaysOfWeek []string
    Specifies the values for weekly recurrence pattern.
    EndTime string
    End time for recurrence.
    StartTime string
    Start time for recurrence.
    days_of_week list(string)
    Specifies the values for weekly recurrence pattern.
    end_time string
    End time for recurrence.
    start_time string
    Start time for recurrence.
    daysOfWeek List<String>
    Specifies the values for weekly recurrence pattern.
    endTime String
    End time for recurrence.
    startTime String
    Start time for recurrence.
    daysOfWeek string[]
    Specifies the values for weekly recurrence pattern.
    endTime string
    End time for recurrence.
    startTime string
    Start time for recurrence.
    days_of_week Sequence[str]
    Specifies the values for weekly recurrence pattern.
    end_time str
    End time for recurrence.
    start_time str
    Start time for recurrence.
    daysOfWeek List<String>
    Specifies the values for weekly recurrence pattern.
    endTime String
    End time for recurrence.
    startTime String
    Start time for recurrence.

    Import

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

    $ pulumi import azure-native:alertsmanagement:AlertProcessingRuleByName RemoveActionGroupsOutsideBusinessHours /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{alertProcessingRuleName} 
    

    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 Azure Native
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Viewing docs for Azure Native v3.32.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial