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

azure-native.alertsmanagement.AlertProcessingRuleByName

Explore with Pulumi AI

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

    Alert processing rule object containing target scopes, conditions and scheduling logic. Azure REST API version: 2023-05-01-preview.

    Example Usage

    Create or update a rule that adds alerts correlation

    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 = "CorrelateAlerts",
            Location = "Global",
            Properties = new AzureNative.AlertsManagement.Inputs.AlertProcessingRulePropertiesArgs
            {
                Actions = new[]
                {
                    new AzureNative.AlertsManagement.Inputs.CorrelateAlertsArgs
                    {
                        ActionType = "CorrelateAlerts",
                        CorrelateBy = new[]
                        {
                            new AzureNative.AlertsManagement.Inputs.CorrelateByArgs
                            {
                                Field = "essentials.alertRule",
                            },
                        },
                        CorrelationInterval = "PT30M",
                        NotificationsForCorrelatedAlerts = "SuppressAlways",
                        Priority = 50,
                    },
                },
                Description = "Correlate Alerts Example.",
                Enabled = true,
                Scopes = new[]
                {
                    "/subscriptions/subId1",
                },
            },
            ResourceGroupName = "alertscorrelationrg",
            Tags = null,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByName", &alertsmanagement.AlertProcessingRuleByNameArgs{
    			AlertProcessingRuleName: pulumi.String("CorrelateAlerts"),
    			Location:                pulumi.String("Global"),
    			Properties: alertsmanagement.AlertProcessingRulePropertiesResponse{
    				Actions: pulumi.AnyArray{
    					alertsmanagement.CorrelateAlerts{
    						ActionType: "CorrelateAlerts",
    						CorrelateBy: []alertsmanagement.CorrelateBy{
    							{
    								Field: "essentials.alertRule",
    							},
    						},
    						CorrelationInterval:              "PT30M",
    						NotificationsForCorrelatedAlerts: "SuppressAlways",
    						Priority:                         50,
    					},
    				},
    				Description: pulumi.String("Correlate Alerts Example."),
    				Enabled:     pulumi.Bool(true),
    				Scopes: pulumi.StringArray{
    					pulumi.String("/subscriptions/subId1"),
    				},
    			},
    			ResourceGroupName: pulumi.String("alertscorrelationrg"),
    			Tags:              nil,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByName;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByNameArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var alertProcessingRuleByName = new AlertProcessingRuleByName("alertProcessingRuleByName", AlertProcessingRuleByNameArgs.builder()        
                .alertProcessingRuleName("CorrelateAlerts")
                .location("Global")
                .properties(Map.ofEntries(
                    Map.entry("actions", Map.ofEntries(
                        Map.entry("actionType", "CorrelateAlerts"),
                        Map.entry("correlateBy", Map.of("field", "essentials.alertRule")),
                        Map.entry("correlationInterval", "PT30M"),
                        Map.entry("notificationsForCorrelatedAlerts", "SuppressAlways"),
                        Map.entry("priority", 50)
                    )),
                    Map.entry("description", "Correlate Alerts Example."),
                    Map.entry("enabled", true),
                    Map.entry("scopes", "/subscriptions/subId1")
                ))
                .resourceGroupName("alertscorrelationrg")
                .tags()
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    alert_processing_rule_by_name = azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByName",
        alert_processing_rule_name="CorrelateAlerts",
        location="Global",
        properties=azure_native.alertsmanagement.AlertProcessingRulePropertiesResponseArgs(
            actions=[azure_native.alertsmanagement.CorrelateAlertsArgs(
                action_type="CorrelateAlerts",
                correlate_by=[azure_native.alertsmanagement.CorrelateByArgs(
                    field="essentials.alertRule",
                )],
                correlation_interval="PT30M",
                notifications_for_correlated_alerts="SuppressAlways",
                priority=50,
            )],
            description="Correlate Alerts Example.",
            enabled=True,
            scopes=["/subscriptions/subId1"],
        ),
        resource_group_name="alertscorrelationrg",
        tags={})
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const alertProcessingRuleByName = new azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByName", {
        alertProcessingRuleName: "CorrelateAlerts",
        location: "Global",
        properties: {
            actions: [{
                actionType: "CorrelateAlerts",
                correlateBy: [{
                    field: "essentials.alertRule",
                }],
                correlationInterval: "PT30M",
                notificationsForCorrelatedAlerts: "SuppressAlways",
                priority: 50,
            }],
            description: "Correlate Alerts Example.",
            enabled: true,
            scopes: ["/subscriptions/subId1"],
        },
        resourceGroupName: "alertscorrelationrg",
        tags: {},
    });
    
    resources:
      alertProcessingRuleByName:
        type: azure-native:alertsmanagement:AlertProcessingRuleByName
        properties:
          alertProcessingRuleName: CorrelateAlerts
          location: Global
          properties:
            actions:
              - actionType: CorrelateAlerts
                correlateBy:
                  - field: essentials.alertRule
                correlationInterval: PT30M
                notificationsForCorrelatedAlerts: SuppressAlways
                priority: 50
            description: Correlate Alerts Example.
            enabled: true
            scopes:
              - /subscriptions/subId1
          resourceGroupName: alertscorrelationrg
          tags: {}
    

    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 = null,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByName", &alertsmanagement.AlertProcessingRuleByNameArgs{
    			AlertProcessingRuleName: pulumi.String("AddActionGroupToSubscription"),
    			Location:                pulumi.String("Global"),
    			Properties: alertsmanagement.AlertProcessingRulePropertiesResponse{
    				Actions: pulumi.AnyArray{
    					alertsmanagement.AddActionGroups{
    						ActionGroupIds: []string{
    							"/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/ActionGroup1",
    						},
    						ActionType: "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:              nil,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByName;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByNameArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var alertProcessingRuleByName = new AlertProcessingRuleByName("alertProcessingRuleByName", AlertProcessingRuleByNameArgs.builder()        
                .alertProcessingRuleName("AddActionGroupToSubscription")
                .location("Global")
                .properties(Map.ofEntries(
                    Map.entry("actions", Map.ofEntries(
                        Map.entry("actionGroupIds", "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/ActionGroup1"),
                        Map.entry("actionType", "AddActionGroups")
                    )),
                    Map.entry("description", "Add ActionGroup1 to all alerts in the subscription"),
                    Map.entry("enabled", true),
                    Map.entry("scopes", "/subscriptions/subId1")
                ))
                .resourceGroupName("alertscorrelationrg")
                .tags()
                .build());
    
        }
    }
    
    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=azure_native.alertsmanagement.AlertProcessingRulePropertiesResponseArgs(
            actions=[azure_native.alertsmanagement.AddActionGroupsArgs(
                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={})
    
    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: {},
    });
    
    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 = "Severity",
                        Operator = "Equals",
                        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 = null,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByName", &alertsmanagement.AlertProcessingRuleByNameArgs{
    			AlertProcessingRuleName: pulumi.String("AddActionGroupsBySeverity"),
    			Location:                pulumi.String("Global"),
    			Properties: alertsmanagement.AlertProcessingRulePropertiesResponse{
    				Actions: pulumi.AnyArray{
    					alertsmanagement.AddActionGroups{
    						ActionGroupIds: []string{
    							"/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId1",
    							"/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId2",
    						},
    						ActionType: "AddActionGroups",
    					},
    				},
    				Conditions: alertsmanagement.ConditionArray{
    					&alertsmanagement.ConditionArgs{
    						Field:    pulumi.String("Severity"),
    						Operator: pulumi.String("Equals"),
    						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:              nil,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByName;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByNameArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var alertProcessingRuleByName = new AlertProcessingRuleByName("alertProcessingRuleByName", AlertProcessingRuleByNameArgs.builder()        
                .alertProcessingRuleName("AddActionGroupsBySeverity")
                .location("Global")
                .properties(Map.ofEntries(
                    Map.entry("actions", Map.ofEntries(
                        Map.entry("actionGroupIds",                     
                            "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId1",
                            "/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId2"),
                        Map.entry("actionType", "AddActionGroups")
                    )),
                    Map.entry("conditions", Map.ofEntries(
                        Map.entry("field", "Severity"),
                        Map.entry("operator", "Equals"),
                        Map.entry("values",                     
                            "sev0",
                            "sev1")
                    )),
                    Map.entry("description", "Add AGId1 and AGId2 to all Sev0 and Sev1 alerts in these resourceGroups"),
                    Map.entry("enabled", true),
                    Map.entry("scopes",                 
                        "/subscriptions/subId1/resourceGroups/RGId1",
                        "/subscriptions/subId1/resourceGroups/RGId2")
                ))
                .resourceGroupName("alertscorrelationrg")
                .tags()
                .build());
    
        }
    }
    
    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=azure_native.alertsmanagement.AlertProcessingRulePropertiesResponseArgs(
            actions=[azure_native.alertsmanagement.AddActionGroupsArgs(
                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=[azure_native.alertsmanagement.ConditionArgs(
                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={})
    
    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: "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: {},
    });
    
    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 = null,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByName", &alertsmanagement.AlertProcessingRuleByNameArgs{
    			AlertProcessingRuleName: pulumi.String("RemoveActionGroupsMaintenanceWindow"),
    			Location:                pulumi.String("Global"),
    			Properties: alertsmanagement.AlertProcessingRulePropertiesResponse{
    				Actions: pulumi.AnyArray{
    					alertsmanagement.RemoveAllActionGroups{
    						ActionType: "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:              nil,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByName;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByNameArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var alertProcessingRuleByName = new AlertProcessingRuleByName("alertProcessingRuleByName", AlertProcessingRuleByNameArgs.builder()        
                .alertProcessingRuleName("RemoveActionGroupsMaintenanceWindow")
                .location("Global")
                .properties(Map.ofEntries(
                    Map.entry("actions", Map.of("actionType", "RemoveAllActionGroups")),
                    Map.entry("description", "Removes all ActionGroups from all Alerts on VMName during the maintenance window"),
                    Map.entry("enabled", true),
                    Map.entry("schedule", Map.ofEntries(
                        Map.entry("effectiveFrom", "2021-04-15T18:00:00"),
                        Map.entry("effectiveUntil", "2021-04-15T20:00:00"),
                        Map.entry("timeZone", "Pacific Standard Time")
                    )),
                    Map.entry("scopes", "/subscriptions/subId1/resourceGroups/RGId1/providers/Microsoft.Compute/virtualMachines/VMName")
                ))
                .resourceGroupName("alertscorrelationrg")
                .tags()
                .build());
    
        }
    }
    
    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=azure_native.alertsmanagement.AlertProcessingRulePropertiesResponseArgs(
            actions=[azure_native.alertsmanagement.RemoveAllActionGroupsArgs(
                action_type="RemoveAllActionGroups",
            )],
            description="Removes all ActionGroups from all Alerts on VMName during the maintenance window",
            enabled=True,
            schedule=azure_native.alertsmanagement.ScheduleArgs(
                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={})
    
    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: {},
    });
    
    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 = "AlertRuleId",
                        Operator = "Equals",
                        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 = null,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByName", &alertsmanagement.AlertProcessingRuleByNameArgs{
    			AlertProcessingRuleName: pulumi.String("RemoveActionGroupsSpecificAlertRule"),
    			Location:                pulumi.String("Global"),
    			Properties: alertsmanagement.AlertProcessingRulePropertiesResponse{
    				Actions: pulumi.AnyArray{
    					alertsmanagement.RemoveAllActionGroups{
    						ActionType: "RemoveAllActionGroups",
    					},
    				},
    				Conditions: alertsmanagement.ConditionArray{
    					&alertsmanagement.ConditionArgs{
    						Field:    pulumi.String("AlertRuleId"),
    						Operator: pulumi.String("Equals"),
    						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:              nil,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByName;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByNameArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var alertProcessingRuleByName = new AlertProcessingRuleByName("alertProcessingRuleByName", AlertProcessingRuleByNameArgs.builder()        
                .alertProcessingRuleName("RemoveActionGroupsSpecificAlertRule")
                .location("Global")
                .properties(Map.ofEntries(
                    Map.entry("actions", Map.of("actionType", "RemoveAllActionGroups")),
                    Map.entry("conditions", Map.ofEntries(
                        Map.entry("field", "AlertRuleId"),
                        Map.entry("operator", "Equals"),
                        Map.entry("values", "/subscriptions/suubId1/resourceGroups/Rgid2/providers/microsoft.insights/activityLogAlerts/RuleName")
                    )),
                    Map.entry("description", "Removes all ActionGroups from all Alerts that fire on above AlertRule"),
                    Map.entry("enabled", true),
                    Map.entry("scopes", "/subscriptions/subId1")
                ))
                .resourceGroupName("alertscorrelationrg")
                .tags()
                .build());
    
        }
    }
    
    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=azure_native.alertsmanagement.AlertProcessingRulePropertiesResponseArgs(
            actions=[azure_native.alertsmanagement.RemoveAllActionGroupsArgs(
                action_type="RemoveAllActionGroups",
            )],
            conditions=[azure_native.alertsmanagement.ConditionArgs(
                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={})
    
    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: "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: {},
    });
    
    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 = "TargetResourceType",
                        Operator = "Equals",
                        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 = new[]
                            {
                                "Saturday",
                                "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 = null,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
    _, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByName", &alertsmanagement.AlertProcessingRuleByNameArgs{
    AlertProcessingRuleName: pulumi.String("RemoveActionGroupsRecurringMaintenance"),
    Location: pulumi.String("Global"),
    Properties: alertsmanagement.AlertProcessingRulePropertiesResponse{
    Actions: pulumi.AnyArray{
    alertsmanagement.RemoveAllActionGroups{
    ActionType: "RemoveAllActionGroups",
    },
    },
    Conditions: alertsmanagement.ConditionArray{
    &alertsmanagement.ConditionArgs{
    Field: pulumi.String("TargetResourceType"),
    Operator: pulumi.String("Equals"),
    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: interface{}{
    Recurrences: pulumi.AnyArray{
    alertsmanagement.WeeklyRecurrence{
    DaysOfWeek: []alertsmanagement.DaysOfWeek{
    "Saturday",
    "Sunday",
    },
    EndTime: "04:00:00",
    RecurrenceType: "Weekly",
    StartTime: "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: nil,
    })
    if err != nil {
    return err
    }
    return nil
    })
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByName;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByNameArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var alertProcessingRuleByName = new AlertProcessingRuleByName("alertProcessingRuleByName", AlertProcessingRuleByNameArgs.builder()        
                .alertProcessingRuleName("RemoveActionGroupsRecurringMaintenance")
                .location("Global")
                .properties(Map.ofEntries(
                    Map.entry("actions", Map.of("actionType", "RemoveAllActionGroups")),
                    Map.entry("conditions", Map.ofEntries(
                        Map.entry("field", "TargetResourceType"),
                        Map.entry("operator", "Equals"),
                        Map.entry("values", "microsoft.compute/virtualmachines")
                    )),
                    Map.entry("description", "Remove all ActionGroups from all Vitual machine Alerts during the recurring maintenance"),
                    Map.entry("enabled", true),
                    Map.entry("schedule", Map.ofEntries(
                        Map.entry("recurrences", Map.ofEntries(
                            Map.entry("daysOfWeek",                         
                                "Saturday",
                                "Sunday"),
                            Map.entry("endTime", "04:00:00"),
                            Map.entry("recurrenceType", "Weekly"),
                            Map.entry("startTime", "22:00:00")
                        )),
                        Map.entry("timeZone", "India Standard Time")
                    )),
                    Map.entry("scopes",                 
                        "/subscriptions/subId1/resourceGroups/RGId1",
                        "/subscriptions/subId1/resourceGroups/RGId2")
                ))
                .resourceGroupName("alertscorrelationrg")
                .tags()
                .build());
    
        }
    }
    
    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=azure_native.alertsmanagement.AlertProcessingRulePropertiesResponseArgs(
            actions=[azure_native.alertsmanagement.RemoveAllActionGroupsArgs(
                action_type="RemoveAllActionGroups",
            )],
            conditions=[azure_native.alertsmanagement.ConditionArgs(
                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": [azure_native.alertsmanagement.WeeklyRecurrenceArgs(
                    days_of_week=[
                        "Saturday",
                        "Sunday",
                    ],
                    end_time="04:00:00",
                    recurrence_type="Weekly",
                    start_time="22:00:00",
                )],
                "timeZone": "India Standard Time",
            },
            scopes=[
                "/subscriptions/subId1/resourceGroups/RGId1",
                "/subscriptions/subId1/resourceGroups/RGId2",
            ],
        ),
        resource_group_name="alertscorrelationrg",
        tags={})
    
    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: "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: {},
    });
    
    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 = new[]
                            {
                                "Saturday",
                                "Sunday",
                            },
                            RecurrenceType = "Weekly",
                        },
                    },
                    TimeZone = "Eastern Standard Time",
                },
                Scopes = new[]
                {
                    "/subscriptions/subId1",
                },
            },
            ResourceGroupName = "alertscorrelationrg",
            Tags = null,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
    _, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByName", &alertsmanagement.AlertProcessingRuleByNameArgs{
    AlertProcessingRuleName: pulumi.String("RemoveActionGroupsOutsideBusinessHours"),
    Location: pulumi.String("Global"),
    Properties: alertsmanagement.AlertProcessingRulePropertiesResponse{
    Actions: pulumi.AnyArray{
    alertsmanagement.RemoveAllActionGroups{
    ActionType: "RemoveAllActionGroups",
    },
    },
    Description: pulumi.String("Remove all ActionGroups outside business hours"),
    Enabled: pulumi.Bool(true),
    Schedule: interface{}{
    Recurrences: pulumi.AnyArray{
    alertsmanagement.DailyRecurrence{
    EndTime: "09:00:00",
    RecurrenceType: "Daily",
    StartTime: "17:00:00",
    },
    alertsmanagement.WeeklyRecurrence{
    DaysOfWeek: []alertsmanagement.DaysOfWeek{
    "Saturday",
    "Sunday",
    },
    RecurrenceType: "Weekly",
    },
    },
    TimeZone: pulumi.String("Eastern Standard Time"),
    },
    Scopes: pulumi.StringArray{
    pulumi.String("/subscriptions/subId1"),
    },
    },
    ResourceGroupName: pulumi.String("alertscorrelationrg"),
    Tags: nil,
    })
    if err != nil {
    return err
    }
    return nil
    })
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByName;
    import com.pulumi.azurenative.alertsmanagement.AlertProcessingRuleByNameArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var alertProcessingRuleByName = new AlertProcessingRuleByName("alertProcessingRuleByName", AlertProcessingRuleByNameArgs.builder()        
                .alertProcessingRuleName("RemoveActionGroupsOutsideBusinessHours")
                .location("Global")
                .properties(Map.ofEntries(
                    Map.entry("actions", Map.of("actionType", "RemoveAllActionGroups")),
                    Map.entry("description", "Remove all ActionGroups outside business hours"),
                    Map.entry("enabled", true),
                    Map.entry("schedule", Map.ofEntries(
                        Map.entry("recurrences",                     
                            Map.ofEntries(
                                Map.entry("endTime", "09:00:00"),
                                Map.entry("recurrenceType", "Daily"),
                                Map.entry("startTime", "17:00:00")
                            ),
                            Map.ofEntries(
                                Map.entry("daysOfWeek",                             
                                    "Saturday",
                                    "Sunday"),
                                Map.entry("recurrenceType", "Weekly")
                            )),
                        Map.entry("timeZone", "Eastern Standard Time")
                    )),
                    Map.entry("scopes", "/subscriptions/subId1")
                ))
                .resourceGroupName("alertscorrelationrg")
                .tags()
                .build());
    
        }
    }
    
    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=azure_native.alertsmanagement.AlertProcessingRulePropertiesResponseArgs(
            actions=[azure_native.alertsmanagement.RemoveAllActionGroupsArgs(
                action_type="RemoveAllActionGroups",
            )],
            description="Remove all ActionGroups outside business hours",
            enabled=True,
            schedule={
                "recurrences": [
                    azure_native.alertsmanagement.DailyRecurrenceArgs(
                        end_time="09:00:00",
                        recurrence_type="Daily",
                        start_time="17:00:00",
                    ),
                    azure_native.alertsmanagement.WeeklyRecurrenceArgs(
                        days_of_week=[
                            "Saturday",
                            "Sunday",
                        ],
                        recurrence_type="Weekly",
                    ),
                ],
                "timeZone": "Eastern Standard Time",
            },
            scopes=["/subscriptions/subId1"],
        ),
        resource_group_name="alertscorrelationrg",
        tags={})
    
    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: [
                            "Saturday",
                            "Sunday",
                        ],
                        recurrenceType: "Weekly",
                    },
                ],
                timeZone: "Eastern Standard Time",
            },
            scopes: ["/subscriptions/subId1"],
        },
        resourceGroupName: "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

    new AlertProcessingRuleByName(name: string, args: AlertProcessingRuleByNameArgs, opts?: CustomResourceOptions);
    @overload
    def AlertProcessingRuleByName(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  alert_processing_rule_name: Optional[str] = None,
                                  location: Optional[str] = None,
                                  properties: Optional[AlertProcessingRulePropertiesArgs] = None,
                                  resource_group_name: Optional[str] = None,
                                  tags: Optional[Mapping[str, str]] = None)
    @overload
    def AlertProcessingRuleByName(resource_name: str,
                                  args: AlertProcessingRuleByNameArgs,
                                  opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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

    The AlertProcessingRuleByName resource accepts the following input properties:

    ResourceGroupName string

    Resource group name where the resource is created.

    AlertProcessingRuleName string

    The name of the alert processing rule that needs to be created/updated.

    Location string

    Resource location

    Properties Pulumi.AzureNative.AlertsManagement.Inputs.AlertProcessingRuleProperties

    Alert processing rule properties.

    Tags Dictionary<string, string>

    Resource tags

    ResourceGroupName string

    Resource group name where the resource is created.

    AlertProcessingRuleName string

    The name of the alert processing rule that needs to be created/updated.

    Location string

    Resource location

    Properties AlertProcessingRulePropertiesArgs

    Alert processing rule properties.

    Tags map[string]string

    Resource tags

    resourceGroupName String

    Resource group name where the resource is created.

    alertProcessingRuleName String

    The name of the alert processing rule that needs to be created/updated.

    location String

    Resource location

    properties AlertProcessingRuleProperties

    Alert processing rule properties.

    tags Map<String,String>

    Resource tags

    resourceGroupName string

    Resource group name where the resource is created.

    alertProcessingRuleName string

    The name of the alert processing rule that needs to be created/updated.

    location string

    Resource location

    properties AlertProcessingRuleProperties

    Alert processing rule properties.

    tags {[key: string]: string}

    Resource tags

    resource_group_name str

    Resource group name where the resource is created.

    alert_processing_rule_name str

    The name of the alert processing rule that needs to be created/updated.

    location str

    Resource location

    properties AlertProcessingRulePropertiesArgs

    Alert processing rule properties.

    tags Mapping[str, str]

    Resource tags

    resourceGroupName String

    Resource group name where the resource is created.

    alertProcessingRuleName String

    The name of the alert processing rule that needs to be created/updated.

    location String

    Resource location

    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:

    Id string

    The provider-assigned unique ID for this managed resource.

    Name string

    Azure resource name

    SystemData Pulumi.AzureNative.AlertsManagement.Outputs.SystemDataResponse

    Alert processing rule system data.

    Type string

    Azure resource type

    Id string

    The provider-assigned unique ID for this managed resource.

    Name string

    Azure resource name

    SystemData SystemDataResponse

    Alert processing rule system data.

    Type string

    Azure resource type

    id String

    The provider-assigned unique ID for this managed resource.

    name String

    Azure resource name

    systemData SystemDataResponse

    Alert processing rule system data.

    type String

    Azure resource type

    id string

    The provider-assigned unique ID for this managed resource.

    name string

    Azure resource name

    systemData SystemDataResponse

    Alert processing rule system data.

    type string

    Azure resource type

    id str

    The provider-assigned unique ID for this managed resource.

    name str

    Azure resource name

    system_data SystemDataResponse

    Alert processing rule system data.

    type str

    Azure resource type

    id String

    The provider-assigned unique ID for this managed resource.

    name String

    Azure resource name

    systemData Property Map

    Alert processing rule system data.

    type String

    Azure resource type

    Supporting Types

    AddActionGroups, AddActionGroupsArgs

    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.

    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, AddActionGroupsResponseArgs

    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.

    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

    Actions List<object>

    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

    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

    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>

    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

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

    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, CorrelateAlerts, 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

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

    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, AlertProcessingRulePropertiesResponseArgs

    Actions List<object>

    Actions to be applied.

    Scopes List<string>

    Scopes on which alert processing rule will apply.

    Conditions List<Pulumi.AzureNative.AlertsManagement.Inputs.ConditionResponse>

    Conditions on which alerts will be filtered.

    Description string

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

    Conditions on which alerts will be filtered.

    Description string

    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>

    Actions to be applied.

    scopes List<String>

    Scopes on which alert processing rule will apply.

    conditions List<ConditionResponse>

    Conditions on which alerts will be filtered.

    description String

    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 | CorrelateAlertsResponse | RemoveAllActionGroupsResponse)[]

    Actions to be applied.

    scopes string[]

    Scopes on which alert processing rule will apply.

    conditions ConditionResponse[]

    Conditions on which alerts will be filtered.

    description string

    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, CorrelateAlertsResponse, RemoveAllActionGroupsResponse]]

    Actions to be applied.

    scopes Sequence[str]

    Scopes on which alert processing rule will apply.

    conditions Sequence[ConditionResponse]

    Conditions on which alerts will be filtered.

    description str

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

    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

    Field string | Pulumi.AzureNative.AlertsManagement.Field

    Field for a given condition.

    Operator string | Pulumi.AzureNative.AlertsManagement.Operator

    Operator for a given condition.

    Values List<string>

    List of values to match for a given condition.

    Field string | Field

    Field for a given condition.

    Operator string | Operator

    Operator for a given condition.

    Values []string

    List of values to match for a given condition.

    field String | Field

    Field for a given condition.

    operator String | Operator

    Operator for a given condition.

    values List<String>

    List of values to match for a given condition.

    field string | Field

    Field for a given condition.

    operator string | Operator

    Operator for a given condition.

    values string[]

    List of values to match for a given condition.

    field str | Field

    Field for a given condition.

    operator str | Operator

    Operator for a given condition.

    values Sequence[str]

    List of values to match for a given condition.

    ConditionResponse, ConditionResponseArgs

    Field string

    Field for a given condition.

    Operator string

    Operator for a given condition.

    Values List<string>

    List of values to match for a given condition.

    Field string

    Field for a given condition.

    Operator string

    Operator for a given condition.

    Values []string

    List of values to match for a given condition.

    field String

    Field for a given condition.

    operator String

    Operator for a given condition.

    values List<String>

    List of values to match for a given condition.

    field string

    Field for a given condition.

    operator string

    Operator for a given condition.

    values string[]

    List of values to match for a given condition.

    field str

    Field for a given condition.

    operator str

    Operator for a given condition.

    values Sequence[str]

    List of values to match for a given condition.

    field String

    Field for a given condition.

    operator String

    Operator for a given condition.

    values List<String>

    List of values to match for a given condition.

    CorrelateAlerts, CorrelateAlertsArgs

    CorrelateBy List<Pulumi.AzureNative.AlertsManagement.Inputs.CorrelateBy>

    The list of conditions for the alerts correlations.

    CorrelationInterval string

    The required duration (in ISO8601 format) for the alerts correlation.

    Priority int

    The priority of this correlation.

    NotificationsForCorrelatedAlerts string | Pulumi.AzureNative.AlertsManagement.NotificationsForCorrelatedAlerts

    Indicates how to handle child alerts notifications.

    CorrelateBy []CorrelateBy

    The list of conditions for the alerts correlations.

    CorrelationInterval string

    The required duration (in ISO8601 format) for the alerts correlation.

    Priority int

    The priority of this correlation.

    NotificationsForCorrelatedAlerts string | NotificationsForCorrelatedAlerts

    Indicates how to handle child alerts notifications.

    correlateBy List<CorrelateBy>

    The list of conditions for the alerts correlations.

    correlationInterval String

    The required duration (in ISO8601 format) for the alerts correlation.

    priority Integer

    The priority of this correlation.

    notificationsForCorrelatedAlerts String | NotificationsForCorrelatedAlerts

    Indicates how to handle child alerts notifications.

    correlateBy CorrelateBy[]

    The list of conditions for the alerts correlations.

    correlationInterval string

    The required duration (in ISO8601 format) for the alerts correlation.

    priority number

    The priority of this correlation.

    notificationsForCorrelatedAlerts string | NotificationsForCorrelatedAlerts

    Indicates how to handle child alerts notifications.

    correlate_by Sequence[CorrelateBy]

    The list of conditions for the alerts correlations.

    correlation_interval str

    The required duration (in ISO8601 format) for the alerts correlation.

    priority int

    The priority of this correlation.

    notifications_for_correlated_alerts str | NotificationsForCorrelatedAlerts

    Indicates how to handle child alerts notifications.

    correlateBy List<Property Map>

    The list of conditions for the alerts correlations.

    correlationInterval String

    The required duration (in ISO8601 format) for the alerts correlation.

    priority Number

    The priority of this correlation.

    notificationsForCorrelatedAlerts String | "NotifyAlways" | "SuppressAlways"

    Indicates how to handle child alerts notifications.

    CorrelateAlertsResponse, CorrelateAlertsResponseArgs

    CorrelateBy List<Pulumi.AzureNative.AlertsManagement.Inputs.CorrelateByResponse>

    The list of conditions for the alerts correlations.

    CorrelationInterval string

    The required duration (in ISO8601 format) for the alerts correlation.

    Priority int

    The priority of this correlation.

    NotificationsForCorrelatedAlerts string

    Indicates how to handle child alerts notifications.

    CorrelateBy []CorrelateByResponse

    The list of conditions for the alerts correlations.

    CorrelationInterval string

    The required duration (in ISO8601 format) for the alerts correlation.

    Priority int

    The priority of this correlation.

    NotificationsForCorrelatedAlerts string

    Indicates how to handle child alerts notifications.

    correlateBy List<CorrelateByResponse>

    The list of conditions for the alerts correlations.

    correlationInterval String

    The required duration (in ISO8601 format) for the alerts correlation.

    priority Integer

    The priority of this correlation.

    notificationsForCorrelatedAlerts String

    Indicates how to handle child alerts notifications.

    correlateBy CorrelateByResponse[]

    The list of conditions for the alerts correlations.

    correlationInterval string

    The required duration (in ISO8601 format) for the alerts correlation.

    priority number

    The priority of this correlation.

    notificationsForCorrelatedAlerts string

    Indicates how to handle child alerts notifications.

    correlate_by Sequence[CorrelateByResponse]

    The list of conditions for the alerts correlations.

    correlation_interval str

    The required duration (in ISO8601 format) for the alerts correlation.

    priority int

    The priority of this correlation.

    notifications_for_correlated_alerts str

    Indicates how to handle child alerts notifications.

    correlateBy List<Property Map>

    The list of conditions for the alerts correlations.

    correlationInterval String

    The required duration (in ISO8601 format) for the alerts correlation.

    priority Number

    The priority of this correlation.

    notificationsForCorrelatedAlerts String

    Indicates how to handle child alerts notifications.

    CorrelateBy, CorrelateByArgs

    Field string

    The JPath of the property that the alerts should be correlated by.

    Field string

    The JPath of the property that the alerts should be correlated by.

    field String

    The JPath of the property that the alerts should be correlated by.

    field string

    The JPath of the property that the alerts should be correlated by.

    field str

    The JPath of the property that the alerts should be correlated by.

    field String

    The JPath of the property that the alerts should be correlated by.

    CorrelateByResponse, CorrelateByResponseArgs

    Field string

    The JPath of the property that the alerts should be correlated by.

    Field string

    The JPath of the property that the alerts should be correlated by.

    field String

    The JPath of the property that the alerts should be correlated by.

    field string

    The JPath of the property that the alerts should be correlated by.

    field str

    The JPath of the property that the alerts should be correlated by.

    field String

    The JPath of the property that the alerts should be correlated by.

    DailyRecurrence, DailyRecurrenceArgs

    EndTime string

    End time for recurrence.

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

    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, DailyRecurrenceResponseArgs

    EndTime string

    End time for recurrence.

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

    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, DaysOfWeekArgs

    Sunday
    Sunday
    Monday
    Monday
    Tuesday
    Tuesday
    Wednesday
    Wednesday
    Thursday
    Thursday
    Friday
    Friday
    Saturday
    Saturday
    DaysOfWeekSunday
    Sunday
    DaysOfWeekMonday
    Monday
    DaysOfWeekTuesday
    Tuesday
    DaysOfWeekWednesday
    Wednesday
    DaysOfWeekThursday
    Thursday
    DaysOfWeekFriday
    Friday
    DaysOfWeekSaturday
    Saturday
    Sunday
    Sunday
    Monday
    Monday
    Tuesday
    Tuesday
    Wednesday
    Wednesday
    Thursday
    Thursday
    Friday
    Friday
    Saturday
    Saturday
    Sunday
    Sunday
    Monday
    Monday
    Tuesday
    Tuesday
    Wednesday
    Wednesday
    Thursday
    Thursday
    Friday
    Friday
    Saturday
    Saturday
    SUNDAY
    Sunday
    MONDAY
    Monday
    TUESDAY
    Tuesday
    WEDNESDAY
    Wednesday
    THURSDAY
    Thursday
    FRIDAY
    Friday
    SATURDAY
    Saturday
    "Sunday"
    Sunday
    "Monday"
    Monday
    "Tuesday"
    Tuesday
    "Wednesday"
    Wednesday
    "Thursday"
    Thursday
    "Friday"
    Friday
    "Saturday"
    Saturday

    Field, FieldArgs

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

    MonthlyRecurrence, MonthlyRecurrenceArgs

    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.

    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, MonthlyRecurrenceResponseArgs

    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.

    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.

    NotificationsForCorrelatedAlerts, NotificationsForCorrelatedAlertsArgs

    NotifyAlways
    NotifyAlways
    SuppressAlways
    SuppressAlways
    NotificationsForCorrelatedAlertsNotifyAlways
    NotifyAlways
    NotificationsForCorrelatedAlertsSuppressAlways
    SuppressAlways
    NotifyAlways
    NotifyAlways
    SuppressAlways
    SuppressAlways
    NotifyAlways
    NotifyAlways
    SuppressAlways
    SuppressAlways
    NOTIFY_ALWAYS
    NotifyAlways
    SUPPRESS_ALWAYS
    SuppressAlways
    "NotifyAlways"
    NotifyAlways
    "SuppressAlways"
    SuppressAlways

    Operator, OperatorArgs

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

    RemoveAllActionGroups, RemoveAllActionGroupsArgs

    RemoveAllActionGroupsResponse, RemoveAllActionGroupsResponseArgs

    Schedule, ScheduleArgs

    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.

    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, ScheduleResponseArgs

    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.

    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, SystemDataResponseArgs

    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.

    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

    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.

    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, WeeklyRecurrenceResponseArgs

    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.

    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} 
    

    Package Details

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