azure-native.alertsmanagement.AlertProcessingRuleByName
Explore with Pulumi AI
Alert processing rule object containing target scopes, conditions and scheduling logic. Azure REST API version: 2021-08-08.
Other available API versions: 2023-05-01-preview, 2024-03-01-preview.
Example Usage
Create or update a rule that adds an action group to all alerts in a subscription
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var alertProcessingRuleByName = new AzureNative.AlertsManagement.AlertProcessingRuleByName("alertProcessingRuleByName", new()
{
AlertProcessingRuleName = "AddActionGroupToSubscription",
Location = "Global",
Properties = new AzureNative.AlertsManagement.Inputs.AlertProcessingRulePropertiesArgs
{
Actions = new[]
{
new AzureNative.AlertsManagement.Inputs.AddActionGroupsArgs
{
ActionGroupIds = new[]
{
"/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/ActionGroup1",
},
ActionType = "AddActionGroups",
},
},
Description = "Add ActionGroup1 to all alerts in the subscription",
Enabled = true,
Scopes = new[]
{
"/subscriptions/subId1",
},
},
ResourceGroupName = "alertscorrelationrg",
Tags = null,
});
});
package main
import (
alertsmanagement "github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByName", &alertsmanagement.AlertProcessingRuleByNameArgs{
AlertProcessingRuleName: pulumi.String("AddActionGroupToSubscription"),
Location: pulumi.String("Global"),
Properties: &alertsmanagement.AlertProcessingRulePropertiesArgs{
Actions: pulumi.Array{
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 com.pulumi.azurenative.alertsmanagement.inputs.AlertProcessingRulePropertiesArgs;
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(AlertProcessingRulePropertiesArgs.builder()
.actions(AddActionGroupsArgs.builder()
.actionGroupIds("/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/ActionGroup1")
.actionType("AddActionGroups")
.build())
.description("Add ActionGroup1 to all alerts in the subscription")
.enabled(true)
.scopes("/subscriptions/subId1")
.build())
.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.AlertProcessingRulePropertiesArgs(
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 = AzureNative.AlertsManagement.Field.Severity,
Operator = AzureNative.AlertsManagement.Operator.EqualsValue,
Values = new[]
{
"sev0",
"sev1",
},
},
},
Description = "Add AGId1 and AGId2 to all Sev0 and Sev1 alerts in these resourceGroups",
Enabled = true,
Scopes = new[]
{
"/subscriptions/subId1/resourceGroups/RGId1",
"/subscriptions/subId1/resourceGroups/RGId2",
},
},
ResourceGroupName = "alertscorrelationrg",
Tags = null,
});
});
package main
import (
alertsmanagement "github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByName", &alertsmanagement.AlertProcessingRuleByNameArgs{
AlertProcessingRuleName: pulumi.String("AddActionGroupsBySeverity"),
Location: pulumi.String("Global"),
Properties: &alertsmanagement.AlertProcessingRulePropertiesArgs{
Actions: pulumi.Array{
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(alertsmanagement.FieldSeverity),
Operator: pulumi.String(alertsmanagement.OperatorEquals),
Values: pulumi.StringArray{
pulumi.String("sev0"),
pulumi.String("sev1"),
},
},
},
Description: pulumi.String("Add AGId1 and AGId2 to all Sev0 and Sev1 alerts in these resourceGroups"),
Enabled: pulumi.Bool(true),
Scopes: pulumi.StringArray{
pulumi.String("/subscriptions/subId1/resourceGroups/RGId1"),
pulumi.String("/subscriptions/subId1/resourceGroups/RGId2"),
},
},
ResourceGroupName: pulumi.String("alertscorrelationrg"),
Tags: 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 com.pulumi.azurenative.alertsmanagement.inputs.AlertProcessingRulePropertiesArgs;
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(AlertProcessingRulePropertiesArgs.builder()
.actions(AddActionGroupsArgs.builder()
.actionGroupIds(
"/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId1",
"/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId2")
.actionType("AddActionGroups")
.build())
.conditions(ConditionArgs.builder()
.field("Severity")
.operator("Equals")
.values(
"sev0",
"sev1")
.build())
.description("Add AGId1 and AGId2 to all Sev0 and Sev1 alerts in these resourceGroups")
.enabled(true)
.scopes(
"/subscriptions/subId1/resourceGroups/RGId1",
"/subscriptions/subId1/resourceGroups/RGId2")
.build())
.resourceGroupName("alertscorrelationrg")
.tags()
.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.AlertProcessingRulePropertiesArgs(
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=azure_native.alertsmanagement.Field.SEVERITY,
operator=azure_native.alertsmanagement.Operator.EQUALS,
values=[
"sev0",
"sev1",
],
)],
description="Add AGId1 and AGId2 to all Sev0 and Sev1 alerts in these resourceGroups",
enabled=True,
scopes=[
"/subscriptions/subId1/resourceGroups/RGId1",
"/subscriptions/subId1/resourceGroups/RGId2",
],
),
resource_group_name="alertscorrelationrg",
tags={})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const alertProcessingRuleByName = new azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByName", {
alertProcessingRuleName: "AddActionGroupsBySeverity",
location: "Global",
properties: {
actions: [{
actionGroupIds: [
"/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId1",
"/subscriptions/subId1/resourcegroups/RGId1/providers/microsoft.insights/actiongroups/AGId2",
],
actionType: "AddActionGroups",
}],
conditions: [{
field: azure_native.alertsmanagement.Field.Severity,
operator: azure_native.alertsmanagement.Operator.Equals,
values: [
"sev0",
"sev1",
],
}],
description: "Add AGId1 and AGId2 to all Sev0 and Sev1 alerts in these resourceGroups",
enabled: true,
scopes: [
"/subscriptions/subId1/resourceGroups/RGId1",
"/subscriptions/subId1/resourceGroups/RGId2",
],
},
resourceGroupName: "alertscorrelationrg",
tags: {},
});
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 (
alertsmanagement "github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByName", &alertsmanagement.AlertProcessingRuleByNameArgs{
AlertProcessingRuleName: pulumi.String("RemoveActionGroupsMaintenanceWindow"),
Location: pulumi.String("Global"),
Properties: &alertsmanagement.AlertProcessingRulePropertiesArgs{
Actions: pulumi.Array{
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 com.pulumi.azurenative.alertsmanagement.inputs.AlertProcessingRulePropertiesArgs;
import com.pulumi.azurenative.alertsmanagement.inputs.ScheduleArgs;
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(AlertProcessingRulePropertiesArgs.builder()
.actions(RemoveAllActionGroupsArgs.builder()
.actionType("RemoveAllActionGroups")
.build())
.description("Removes all ActionGroups from all Alerts on VMName during the maintenance window")
.enabled(true)
.schedule(ScheduleArgs.builder()
.effectiveFrom("2021-04-15T18:00:00")
.effectiveUntil("2021-04-15T20:00:00")
.timeZone("Pacific Standard Time")
.build())
.scopes("/subscriptions/subId1/resourceGroups/RGId1/providers/Microsoft.Compute/virtualMachines/VMName")
.build())
.resourceGroupName("alertscorrelationrg")
.tags()
.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.AlertProcessingRulePropertiesArgs(
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 = AzureNative.AlertsManagement.Field.AlertRuleId,
Operator = AzureNative.AlertsManagement.Operator.EqualsValue,
Values = new[]
{
"/subscriptions/suubId1/resourceGroups/Rgid2/providers/microsoft.insights/activityLogAlerts/RuleName",
},
},
},
Description = "Removes all ActionGroups from all Alerts that fire on above AlertRule",
Enabled = true,
Scopes = new[]
{
"/subscriptions/subId1",
},
},
ResourceGroupName = "alertscorrelationrg",
Tags = null,
});
});
package main
import (
alertsmanagement "github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByName", &alertsmanagement.AlertProcessingRuleByNameArgs{
AlertProcessingRuleName: pulumi.String("RemoveActionGroupsSpecificAlertRule"),
Location: pulumi.String("Global"),
Properties: &alertsmanagement.AlertProcessingRulePropertiesArgs{
Actions: pulumi.Array{
alertsmanagement.RemoveAllActionGroups{
ActionType: "RemoveAllActionGroups",
},
},
Conditions: alertsmanagement.ConditionArray{
&alertsmanagement.ConditionArgs{
Field: pulumi.String(alertsmanagement.FieldAlertRuleId),
Operator: pulumi.String(alertsmanagement.OperatorEquals),
Values: pulumi.StringArray{
pulumi.String("/subscriptions/suubId1/resourceGroups/Rgid2/providers/microsoft.insights/activityLogAlerts/RuleName"),
},
},
},
Description: pulumi.String("Removes all ActionGroups from all Alerts that fire on above AlertRule"),
Enabled: pulumi.Bool(true),
Scopes: pulumi.StringArray{
pulumi.String("/subscriptions/subId1"),
},
},
ResourceGroupName: pulumi.String("alertscorrelationrg"),
Tags: 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 com.pulumi.azurenative.alertsmanagement.inputs.AlertProcessingRulePropertiesArgs;
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(AlertProcessingRulePropertiesArgs.builder()
.actions(RemoveAllActionGroupsArgs.builder()
.actionType("RemoveAllActionGroups")
.build())
.conditions(ConditionArgs.builder()
.field("AlertRuleId")
.operator("Equals")
.values("/subscriptions/suubId1/resourceGroups/Rgid2/providers/microsoft.insights/activityLogAlerts/RuleName")
.build())
.description("Removes all ActionGroups from all Alerts that fire on above AlertRule")
.enabled(true)
.scopes("/subscriptions/subId1")
.build())
.resourceGroupName("alertscorrelationrg")
.tags()
.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.AlertProcessingRulePropertiesArgs(
actions=[azure_native.alertsmanagement.RemoveAllActionGroupsArgs(
action_type="RemoveAllActionGroups",
)],
conditions=[azure_native.alertsmanagement.ConditionArgs(
field=azure_native.alertsmanagement.Field.ALERT_RULE_ID,
operator=azure_native.alertsmanagement.Operator.EQUALS,
values=["/subscriptions/suubId1/resourceGroups/Rgid2/providers/microsoft.insights/activityLogAlerts/RuleName"],
)],
description="Removes all ActionGroups from all Alerts that fire on above AlertRule",
enabled=True,
scopes=["/subscriptions/subId1"],
),
resource_group_name="alertscorrelationrg",
tags={})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const alertProcessingRuleByName = new azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByName", {
alertProcessingRuleName: "RemoveActionGroupsSpecificAlertRule",
location: "Global",
properties: {
actions: [{
actionType: "RemoveAllActionGroups",
}],
conditions: [{
field: azure_native.alertsmanagement.Field.AlertRuleId,
operator: azure_native.alertsmanagement.Operator.Equals,
values: ["/subscriptions/suubId1/resourceGroups/Rgid2/providers/microsoft.insights/activityLogAlerts/RuleName"],
}],
description: "Removes all ActionGroups from all Alerts that fire on above AlertRule",
enabled: true,
scopes: ["/subscriptions/subId1"],
},
resourceGroupName: "alertscorrelationrg",
tags: {},
});
resources:
alertProcessingRuleByName:
type: azure-native:alertsmanagement:AlertProcessingRuleByName
properties:
alertProcessingRuleName: RemoveActionGroupsSpecificAlertRule
location: Global
properties:
actions:
- actionType: RemoveAllActionGroups
conditions:
- field: AlertRuleId
operator: Equals
values:
- /subscriptions/suubId1/resourceGroups/Rgid2/providers/microsoft.insights/activityLogAlerts/RuleName
description: Removes all ActionGroups from all Alerts that fire on above AlertRule
enabled: true
scopes:
- /subscriptions/subId1
resourceGroupName: alertscorrelationrg
tags: {}
Create or update a rule that removes all action groups from all alerts on any VM in two resource groups during a recurring maintenance window (2200-0400 every Sat and Sun, India Standard Time)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var alertProcessingRuleByName = new AzureNative.AlertsManagement.AlertProcessingRuleByName("alertProcessingRuleByName", new()
{
AlertProcessingRuleName = "RemoveActionGroupsRecurringMaintenance",
Location = "Global",
Properties = new AzureNative.AlertsManagement.Inputs.AlertProcessingRulePropertiesArgs
{
Actions = new[]
{
new AzureNative.AlertsManagement.Inputs.RemoveAllActionGroupsArgs
{
ActionType = "RemoveAllActionGroups",
},
},
Conditions = new[]
{
new AzureNative.AlertsManagement.Inputs.ConditionArgs
{
Field = AzureNative.AlertsManagement.Field.TargetResourceType,
Operator = AzureNative.AlertsManagement.Operator.EqualsValue,
Values = new[]
{
"microsoft.compute/virtualmachines",
},
},
},
Description = "Remove all ActionGroups from all Vitual machine Alerts during the recurring maintenance",
Enabled = true,
Schedule = new AzureNative.AlertsManagement.Inputs.ScheduleArgs
{
Recurrences = new[]
{
new AzureNative.AlertsManagement.Inputs.WeeklyRecurrenceArgs
{
DaysOfWeek = new[]
{
AzureNative.AlertsManagement.DaysOfWeek.Saturday,
AzureNative.AlertsManagement.DaysOfWeek.Sunday,
},
EndTime = "04:00:00",
RecurrenceType = "Weekly",
StartTime = "22:00:00",
},
},
TimeZone = "India Standard Time",
},
Scopes = new[]
{
"/subscriptions/subId1/resourceGroups/RGId1",
"/subscriptions/subId1/resourceGroups/RGId2",
},
},
ResourceGroupName = "alertscorrelationrg",
Tags = null,
});
});
package main
import (
alertsmanagement "github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByName", &alertsmanagement.AlertProcessingRuleByNameArgs{
AlertProcessingRuleName: pulumi.String("RemoveActionGroupsRecurringMaintenance"),
Location: pulumi.String("Global"),
Properties: &alertsmanagement.AlertProcessingRulePropertiesArgs{
Actions: pulumi.Array{
alertsmanagement.RemoveAllActionGroups{
ActionType: "RemoveAllActionGroups",
},
},
Conditions: alertsmanagement.ConditionArray{
&alertsmanagement.ConditionArgs{
Field: pulumi.String(alertsmanagement.FieldTargetResourceType),
Operator: pulumi.String(alertsmanagement.OperatorEquals),
Values: pulumi.StringArray{
pulumi.String("microsoft.compute/virtualmachines"),
},
},
},
Description: pulumi.String("Remove all ActionGroups from all Vitual machine Alerts during the recurring maintenance"),
Enabled: pulumi.Bool(true),
Schedule: &alertsmanagement.ScheduleArgs{
Recurrences: pulumi.Array{
alertsmanagement.WeeklyRecurrence{
DaysOfWeek: []alertsmanagement.DaysOfWeek{
alertsmanagement.DaysOfWeekSaturday,
alertsmanagement.DaysOfWeekSunday,
},
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 com.pulumi.azurenative.alertsmanagement.inputs.AlertProcessingRulePropertiesArgs;
import com.pulumi.azurenative.alertsmanagement.inputs.ScheduleArgs;
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(AlertProcessingRulePropertiesArgs.builder()
.actions(RemoveAllActionGroupsArgs.builder()
.actionType("RemoveAllActionGroups")
.build())
.conditions(ConditionArgs.builder()
.field("TargetResourceType")
.operator("Equals")
.values("microsoft.compute/virtualmachines")
.build())
.description("Remove all ActionGroups from all Vitual machine Alerts during the recurring maintenance")
.enabled(true)
.schedule(ScheduleArgs.builder()
.recurrences(WeeklyRecurrenceArgs.builder()
.daysOfWeek(
"Saturday",
"Sunday")
.endTime("04:00:00")
.recurrenceType("Weekly")
.startTime("22:00:00")
.build())
.timeZone("India Standard Time")
.build())
.scopes(
"/subscriptions/subId1/resourceGroups/RGId1",
"/subscriptions/subId1/resourceGroups/RGId2")
.build())
.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.AlertProcessingRulePropertiesArgs(
actions=[azure_native.alertsmanagement.RemoveAllActionGroupsArgs(
action_type="RemoveAllActionGroups",
)],
conditions=[azure_native.alertsmanagement.ConditionArgs(
field=azure_native.alertsmanagement.Field.TARGET_RESOURCE_TYPE,
operator=azure_native.alertsmanagement.Operator.EQUALS,
values=["microsoft.compute/virtualmachines"],
)],
description="Remove all ActionGroups from all Vitual machine Alerts during the recurring maintenance",
enabled=True,
schedule=azure_native.alertsmanagement.ScheduleArgs(
recurrences=[azure_native.alertsmanagement.WeeklyRecurrenceArgs(
days_of_week=[
azure_native.alertsmanagement.DaysOfWeek.SATURDAY,
azure_native.alertsmanagement.DaysOfWeek.SUNDAY,
],
end_time="04:00:00",
recurrence_type="Weekly",
start_time="22:00:00",
)],
time_zone="India Standard Time",
),
scopes=[
"/subscriptions/subId1/resourceGroups/RGId1",
"/subscriptions/subId1/resourceGroups/RGId2",
],
),
resource_group_name="alertscorrelationrg",
tags={})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const alertProcessingRuleByName = new azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByName", {
alertProcessingRuleName: "RemoveActionGroupsRecurringMaintenance",
location: "Global",
properties: {
actions: [{
actionType: "RemoveAllActionGroups",
}],
conditions: [{
field: azure_native.alertsmanagement.Field.TargetResourceType,
operator: azure_native.alertsmanagement.Operator.Equals,
values: ["microsoft.compute/virtualmachines"],
}],
description: "Remove all ActionGroups from all Vitual machine Alerts during the recurring maintenance",
enabled: true,
schedule: {
recurrences: [{
daysOfWeek: [
azure_native.alertsmanagement.DaysOfWeek.Saturday,
azure_native.alertsmanagement.DaysOfWeek.Sunday,
],
endTime: "04:00:00",
recurrenceType: "Weekly",
startTime: "22:00:00",
}],
timeZone: "India Standard Time",
},
scopes: [
"/subscriptions/subId1/resourceGroups/RGId1",
"/subscriptions/subId1/resourceGroups/RGId2",
],
},
resourceGroupName: "alertscorrelationrg",
tags: {},
});
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[]
{
AzureNative.AlertsManagement.DaysOfWeek.Saturday,
AzureNative.AlertsManagement.DaysOfWeek.Sunday,
},
RecurrenceType = "Weekly",
},
},
TimeZone = "Eastern Standard Time",
},
Scopes = new[]
{
"/subscriptions/subId1",
},
},
ResourceGroupName = "alertscorrelationrg",
Tags = null,
});
});
package main
import (
alertsmanagement "github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByName", &alertsmanagement.AlertProcessingRuleByNameArgs{
AlertProcessingRuleName: pulumi.String("RemoveActionGroupsOutsideBusinessHours"),
Location: pulumi.String("Global"),
Properties: &alertsmanagement.AlertProcessingRulePropertiesArgs{
Actions: pulumi.Array{
alertsmanagement.RemoveAllActionGroups{
ActionType: "RemoveAllActionGroups",
},
},
Description: pulumi.String("Remove all ActionGroups outside business hours"),
Enabled: pulumi.Bool(true),
Schedule: &alertsmanagement.ScheduleArgs{
Recurrences: pulumi.Array{
alertsmanagement.DailyRecurrence{
EndTime: "09:00:00",
RecurrenceType: "Daily",
StartTime: "17:00:00",
},
alertsmanagement.WeeklyRecurrence{
DaysOfWeek: []alertsmanagement.DaysOfWeek{
alertsmanagement.DaysOfWeekSaturday,
alertsmanagement.DaysOfWeekSunday,
},
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 com.pulumi.azurenative.alertsmanagement.inputs.AlertProcessingRulePropertiesArgs;
import com.pulumi.azurenative.alertsmanagement.inputs.ScheduleArgs;
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(AlertProcessingRulePropertiesArgs.builder()
.actions(RemoveAllActionGroupsArgs.builder()
.actionType("RemoveAllActionGroups")
.build())
.description("Remove all ActionGroups outside business hours")
.enabled(true)
.schedule(ScheduleArgs.builder()
.recurrences(
DailyRecurrenceArgs.builder()
.endTime("09:00:00")
.recurrenceType("Daily")
.startTime("17:00:00")
.build(),
WeeklyRecurrenceArgs.builder()
.daysOfWeek(
"Saturday",
"Sunday")
.recurrenceType("Weekly")
.build())
.timeZone("Eastern Standard Time")
.build())
.scopes("/subscriptions/subId1")
.build())
.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.AlertProcessingRulePropertiesArgs(
actions=[azure_native.alertsmanagement.RemoveAllActionGroupsArgs(
action_type="RemoveAllActionGroups",
)],
description="Remove all ActionGroups outside business hours",
enabled=True,
schedule=azure_native.alertsmanagement.ScheduleArgs(
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=[
azure_native.alertsmanagement.DaysOfWeek.SATURDAY,
azure_native.alertsmanagement.DaysOfWeek.SUNDAY,
],
recurrence_type="Weekly",
),
],
time_zone="Eastern Standard Time",
),
scopes=["/subscriptions/subId1"],
),
resource_group_name="alertscorrelationrg",
tags={})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const alertProcessingRuleByName = new azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByName", {
alertProcessingRuleName: "RemoveActionGroupsOutsideBusinessHours",
location: "Global",
properties: {
actions: [{
actionType: "RemoveAllActionGroups",
}],
description: "Remove all ActionGroups outside business hours",
enabled: true,
schedule: {
recurrences: [
{
endTime: "09:00:00",
recurrenceType: "Daily",
startTime: "17:00:00",
},
{
daysOfWeek: [
azure_native.alertsmanagement.DaysOfWeek.Saturday,
azure_native.alertsmanagement.DaysOfWeek.Sunday,
],
recurrenceType: "Weekly",
},
],
timeZone: "Eastern Standard Time",
},
scopes: ["/subscriptions/subId1"],
},
resourceGroupName: "alertscorrelationrg",
tags: {},
});
resources:
alertProcessingRuleByName:
type: azure-native:alertsmanagement:AlertProcessingRuleByName
properties:
alertProcessingRuleName: RemoveActionGroupsOutsideBusinessHours
location: Global
properties:
actions:
- actionType: RemoveAllActionGroups
description: Remove all ActionGroups outside business hours
enabled: true
schedule:
recurrences:
- endTime: 09:00:00
recurrenceType: Daily
startTime: 17:00:00
- daysOfWeek:
- Saturday
- Sunday
recurrenceType: Weekly
timeZone: Eastern Standard Time
scopes:
- /subscriptions/subId1
resourceGroupName: alertscorrelationrg
tags: {}
Create AlertProcessingRuleByName Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AlertProcessingRuleByName(name: string, args: AlertProcessingRuleByNameArgs, opts?: CustomResourceOptions);
@overload
def AlertProcessingRuleByName(resource_name: str,
args: AlertProcessingRuleByNameArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AlertProcessingRuleByName(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
alert_processing_rule_name: Optional[str] = None,
location: Optional[str] = None,
properties: Optional[AlertProcessingRulePropertiesArgs] = None,
tags: Optional[Mapping[str, str]] = None)
func NewAlertProcessingRuleByName(ctx *Context, name string, args AlertProcessingRuleByNameArgs, opts ...ResourceOption) (*AlertProcessingRuleByName, error)
public AlertProcessingRuleByName(string name, AlertProcessingRuleByNameArgs args, CustomResourceOptions? opts = null)
public AlertProcessingRuleByName(String name, AlertProcessingRuleByNameArgs args)
public AlertProcessingRuleByName(String name, AlertProcessingRuleByNameArgs args, CustomResourceOptions options)
type: azure-native:alertsmanagement:AlertProcessingRuleByName
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AlertProcessingRuleByNameArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AlertProcessingRuleByNameArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AlertProcessingRuleByNameArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlertProcessingRuleByNameArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlertProcessingRuleByNameArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var alertProcessingRuleByNameResource = new AzureNative.AlertsManagement.AlertProcessingRuleByName("alertProcessingRuleByNameResource", new()
{
ResourceGroupName = "string",
AlertProcessingRuleName = "string",
Location = "string",
Properties = new AzureNative.AlertsManagement.Inputs.AlertProcessingRulePropertiesArgs
{
Actions = new[]
{
new AzureNative.AlertsManagement.Inputs.AddActionGroupsArgs
{
ActionGroupIds = new[]
{
"string",
},
ActionType = "AddActionGroups",
},
},
Scopes = new[]
{
"string",
},
Conditions = new[]
{
new AzureNative.AlertsManagement.Inputs.ConditionArgs
{
Field = "string",
Operator = "string",
Values = new[]
{
"string",
},
},
},
Description = "string",
Enabled = false,
Schedule = new AzureNative.AlertsManagement.Inputs.ScheduleArgs
{
EffectiveFrom = "string",
EffectiveUntil = "string",
Recurrences = new[]
{
new AzureNative.AlertsManagement.Inputs.DailyRecurrenceArgs
{
EndTime = "string",
RecurrenceType = "Daily",
StartTime = "string",
},
},
TimeZone = "string",
},
},
Tags =
{
{ "string", "string" },
},
});
example, err := alertsmanagement.NewAlertProcessingRuleByName(ctx, "alertProcessingRuleByNameResource", &alertsmanagement.AlertProcessingRuleByNameArgs{
ResourceGroupName: pulumi.String("string"),
AlertProcessingRuleName: pulumi.String("string"),
Location: pulumi.String("string"),
Properties: &alertsmanagement.AlertProcessingRulePropertiesArgs{
Actions: pulumi.Array{
alertsmanagement.AddActionGroups{
ActionGroupIds: []string{
"string",
},
ActionType: "AddActionGroups",
},
},
Scopes: pulumi.StringArray{
pulumi.String("string"),
},
Conditions: alertsmanagement.ConditionArray{
&alertsmanagement.ConditionArgs{
Field: pulumi.String("string"),
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Schedule: &alertsmanagement.ScheduleArgs{
EffectiveFrom: pulumi.String("string"),
EffectiveUntil: pulumi.String("string"),
Recurrences: pulumi.Array{
alertsmanagement.DailyRecurrence{
EndTime: "string",
RecurrenceType: "Daily",
StartTime: "string",
},
},
TimeZone: pulumi.String("string"),
},
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var alertProcessingRuleByNameResource = new AlertProcessingRuleByName("alertProcessingRuleByNameResource", AlertProcessingRuleByNameArgs.builder()
.resourceGroupName("string")
.alertProcessingRuleName("string")
.location("string")
.properties(AlertProcessingRulePropertiesArgs.builder()
.actions(AddActionGroupsArgs.builder()
.actionGroupIds("string")
.actionType("AddActionGroups")
.build())
.scopes("string")
.conditions(ConditionArgs.builder()
.field("string")
.operator("string")
.values("string")
.build())
.description("string")
.enabled(false)
.schedule(ScheduleArgs.builder()
.effectiveFrom("string")
.effectiveUntil("string")
.recurrences(DailyRecurrenceArgs.builder()
.endTime("string")
.recurrenceType("Daily")
.startTime("string")
.build())
.timeZone("string")
.build())
.build())
.tags(Map.of("string", "string"))
.build());
alert_processing_rule_by_name_resource = azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByNameResource",
resource_group_name="string",
alert_processing_rule_name="string",
location="string",
properties=azure_native.alertsmanagement.AlertProcessingRulePropertiesArgs(
actions=[azure_native.alertsmanagement.AddActionGroupsArgs(
action_group_ids=["string"],
action_type="AddActionGroups",
)],
scopes=["string"],
conditions=[azure_native.alertsmanagement.ConditionArgs(
field="string",
operator="string",
values=["string"],
)],
description="string",
enabled=False,
schedule=azure_native.alertsmanagement.ScheduleArgs(
effective_from="string",
effective_until="string",
recurrences=[azure_native.alertsmanagement.DailyRecurrenceArgs(
end_time="string",
recurrence_type="Daily",
start_time="string",
)],
time_zone="string",
),
),
tags={
"string": "string",
})
const alertProcessingRuleByNameResource = new azure_native.alertsmanagement.AlertProcessingRuleByName("alertProcessingRuleByNameResource", {
resourceGroupName: "string",
alertProcessingRuleName: "string",
location: "string",
properties: {
actions: [{
actionGroupIds: ["string"],
actionType: "AddActionGroups",
}],
scopes: ["string"],
conditions: [{
field: "string",
operator: "string",
values: ["string"],
}],
description: "string",
enabled: false,
schedule: {
effectiveFrom: "string",
effectiveUntil: "string",
recurrences: [{
endTime: "string",
recurrenceType: "Daily",
startTime: "string",
}],
timeZone: "string",
},
},
tags: {
string: "string",
},
});
type: azure-native:alertsmanagement:AlertProcessingRuleByName
properties:
alertProcessingRuleName: string
location: string
properties:
actions:
- actionGroupIds:
- string
actionType: AddActionGroups
conditions:
- field: string
operator: string
values:
- string
description: string
enabled: false
schedule:
effectiveFrom: string
effectiveUntil: string
recurrences:
- endTime: string
recurrenceType: Daily
startTime: string
timeZone: string
scopes:
- string
resourceGroupName: string
tags:
string: string
AlertProcessingRuleByName Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AlertProcessingRuleByName resource accepts the following input properties:
- Resource
Group stringName - Resource group name where the resource is created.
- Alert
Processing stringRule Name - The name of the alert processing rule that needs to be created/updated.
- Location string
- Resource location
- Properties
Pulumi.
Azure Native. Alerts Management. Inputs. Alert Processing Rule Properties - Alert processing rule properties.
- Dictionary<string, string>
- Resource tags
- Resource
Group stringName - Resource group name where the resource is created.
- Alert
Processing stringRule Name - The name of the alert processing rule that needs to be created/updated.
- Location string
- Resource location
- Properties
Alert
Processing Rule Properties Args - Alert processing rule properties.
- map[string]string
- Resource tags
- resource
Group StringName - Resource group name where the resource is created.
- alert
Processing StringRule Name - The name of the alert processing rule that needs to be created/updated.
- location String
- Resource location
- properties
Alert
Processing Rule Properties - Alert processing rule properties.
- Map<String,String>
- Resource tags
- resource
Group stringName - Resource group name where the resource is created.
- alert
Processing stringRule Name - The name of the alert processing rule that needs to be created/updated.
- location string
- Resource location
- properties
Alert
Processing Rule Properties - Alert processing rule properties.
- {[key: string]: string}
- Resource tags
- resource_
group_ strname - Resource group name where the resource is created.
- alert_
processing_ strrule_ name - The name of the alert processing rule that needs to be created/updated.
- location str
- Resource location
- properties
Alert
Processing Rule Properties Args - Alert processing rule properties.
- Mapping[str, str]
- Resource tags
- resource
Group StringName - Resource group name where the resource is created.
- alert
Processing StringRule Name - The name of the alert processing rule that needs to be created/updated.
- location String
- Resource location
- properties Property Map
- Alert processing rule properties.
- 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
- System
Data Pulumi.Azure Native. Alerts Management. Outputs. System Data Response - 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
- System
Data SystemData Response - 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
- system
Data SystemData Response - 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
- system
Data SystemData Response - 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 SystemData Response - 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
- system
Data Property Map - Alert processing rule system data.
- type String
- Azure resource type
Supporting Types
AddActionGroups, AddActionGroupsArgs
- Action
Group List<string>Ids - List of action group Ids to add to alert processing rule.
- Action
Group []stringIds - List of action group Ids to add to alert processing rule.
- action
Group List<String>Ids - List of action group Ids to add to alert processing rule.
- action
Group string[]Ids - List of action group Ids to add to alert processing rule.
- action_
group_ Sequence[str]ids - List of action group Ids to add to alert processing rule.
- action
Group List<String>Ids - List of action group Ids to add to alert processing rule.
AddActionGroupsResponse, AddActionGroupsResponseArgs
- Action
Group List<string>Ids - List of action group Ids to add to alert processing rule.
- Action
Group []stringIds - List of action group Ids to add to alert processing rule.
- action
Group List<String>Ids - List of action group Ids to add to alert processing rule.
- action
Group string[]Ids - List of action group Ids to add to alert processing rule.
- action_
group_ Sequence[str]ids - List of action group Ids to add to alert processing rule.
- action
Group List<String>Ids - List of action group Ids to add to alert processing rule.
AlertProcessingRuleProperties, AlertProcessingRulePropertiesArgs
- Actions
List<Union<Pulumi.
Azure Native. Alerts Management. Inputs. Add Action Groups, Pulumi. Azure Native. Alerts Management. Inputs. Remove All Action Groups>> - Actions to be applied.
- Scopes List<string>
- Scopes on which alert processing rule will apply.
- Conditions
List<Pulumi.
Azure Native. Alerts Management. 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.
Azure Native. Alerts Management. 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<Either<Add
Action Groups,Remove All Action Groups>> - 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
(Add
Action Groups | Remove All Action Groups)[] - 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[Add
Action Groups, Remove All Action Groups]] - 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>
- 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<Union<Pulumi.
Azure Native. Alerts Management. Inputs. Add Action Groups Response, Pulumi. Azure Native. Alerts Management. Inputs. Remove All Action Groups Response>> - Actions to be applied.
- Scopes List<string>
- Scopes on which alert processing rule will apply.
- Conditions
List<Pulumi.
Azure Native. Alerts Management. Inputs. Condition Response> - 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.
Azure Native. Alerts Management. Inputs. Schedule Response - Scheduling for alert processing rule.
- Actions []interface{}
- Actions to be applied.
- Scopes []string
- Scopes on which alert processing rule will apply.
- Conditions
[]Condition
Response - 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
Response - Scheduling for alert processing rule.
- actions
List<Either<Add
Action Groups Response,Remove All Action Groups Response>> - Actions to be applied.
- scopes List<String>
- Scopes on which alert processing rule will apply.
- conditions
List<Condition
Response> - 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
Response - Scheduling for alert processing rule.
- actions
(Add
Action Groups Response | Remove All Action Groups Response)[] - Actions to be applied.
- scopes string[]
- Scopes on which alert processing rule will apply.
- conditions
Condition
Response[] - 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
Response - Scheduling for alert processing rule.
- actions
Sequence[Union[Add
Action Groups Response, Remove All Action Groups Response]] - Actions to be applied.
- scopes Sequence[str]
- Scopes on which alert processing rule will apply.
- conditions
Sequence[Condition
Response] - 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
Response - Scheduling for alert processing rule.
- actions List<Property Map | Property Map>
- Actions to be applied.
- scopes List<String>
- Scopes on which alert processing rule will apply.
- conditions List<Property Map>
- Conditions on which alerts will be filtered.
- description String
- 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.
Azure Native. Alerts Management. Field - Field for a given condition.
- Operator
string | Pulumi.
Azure Native. Alerts Management. Operator - Operator for a given condition.
- Values List<string>
- List of values to match for a given condition.
- field
String | "Severity" | "Monitor
Service" | "Monitor Condition" | "Signal Type" | "Target Resource Type" | "Target Resource" | "Target Resource Group" | "Alert Rule Id" | "Alert Rule Name" | "Description" | "Alert Context" - Field for a given condition.
- operator
String | "Equals" | "Not
Equals" | "Contains" | "Does Not Contain" - Operator for a given condition.
- values List<String>
- List of values to match for a given condition.
ConditionResponse, ConditionResponseArgs
DailyRecurrence, DailyRecurrenceArgs
- end_
time str - End time for recurrence.
- start_
time str - Start time for recurrence.
DailyRecurrenceResponse, DailyRecurrenceResponseArgs
- end_
time str - End time for recurrence.
- start_
time str - Start time for recurrence.
DaysOfWeek, DaysOfWeekArgs
- Sunday
- Sunday
- Monday
- Monday
- Tuesday
- Tuesday
- Wednesday
- Wednesday
- Thursday
- Thursday
- Friday
- Friday
- Saturday
- Saturday
- Days
Of Week Sunday - Sunday
- Days
Of Week Monday - Monday
- Days
Of Week Tuesday - Tuesday
- Days
Of Week Wednesday - Wednesday
- Days
Of Week Thursday - Thursday
- Days
Of Week Friday - Friday
- Days
Of Week 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
- "Sunday"
- Sunday
- "Monday"
- Monday
- "Tuesday"
- Tuesday
- "Wednesday"
- Wednesday
- "Thursday"
- Thursday
- "Friday"
- Friday
- "Saturday"
- Saturday
Field, FieldArgs
- 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
- Field
Severity - Severity
- Field
Monitor Service - MonitorService
- Field
Monitor Condition - MonitorCondition
- Field
Signal Type - SignalType
- Field
Target Resource Type - TargetResourceType
- Field
Target Resource - TargetResource
- Field
Target Resource Group - TargetResourceGroup
- Field
Alert Rule Id - AlertRuleId
- Field
Alert Rule Name - AlertRuleName
- Field
Description - Description
- Field
Alert Context - 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
- 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
- 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
- "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
MonthlyRecurrence, MonthlyRecurrenceArgs
- Days
Of List<int>Month - Specifies the values for monthly recurrence pattern.
- End
Time string - End time for recurrence.
- Start
Time string - Start time for recurrence.
- Days
Of []intMonth - Specifies the values for monthly recurrence pattern.
- End
Time string - End time for recurrence.
- Start
Time string - Start time for recurrence.
- days
Of List<Integer>Month - Specifies the values for monthly recurrence pattern.
- end
Time String - End time for recurrence.
- start
Time String - Start time for recurrence.
- days
Of number[]Month - Specifies the values for monthly recurrence pattern.
- end
Time string - End time for recurrence.
- start
Time string - Start time for recurrence.
- days_
of_ Sequence[int]month - Specifies the values for monthly recurrence pattern.
- end_
time str - End time for recurrence.
- start_
time str - Start time for recurrence.
- days
Of List<Number>Month - Specifies the values for monthly recurrence pattern.
- end
Time String - End time for recurrence.
- start
Time String - Start time for recurrence.
MonthlyRecurrenceResponse, MonthlyRecurrenceResponseArgs
- Days
Of List<int>Month - Specifies the values for monthly recurrence pattern.
- End
Time string - End time for recurrence.
- Start
Time string - Start time for recurrence.
- Days
Of []intMonth - Specifies the values for monthly recurrence pattern.
- End
Time string - End time for recurrence.
- Start
Time string - Start time for recurrence.
- days
Of List<Integer>Month - Specifies the values for monthly recurrence pattern.
- end
Time String - End time for recurrence.
- start
Time String - Start time for recurrence.
- days
Of number[]Month - Specifies the values for monthly recurrence pattern.
- end
Time string - End time for recurrence.
- start
Time string - Start time for recurrence.
- days_
of_ Sequence[int]month - Specifies the values for monthly recurrence pattern.
- end_
time str - End time for recurrence.
- start_
time str - Start time for recurrence.
- days
Of List<Number>Month - Specifies the values for monthly recurrence pattern.
- end
Time String - End time for recurrence.
- start
Time String - Start time for recurrence.
Operator, OperatorArgs
- Equals
Value - Equals
- Not
Equals - NotEquals
- Contains
- Contains
- Does
Not Contain - DoesNotContain
- Operator
Equals - Equals
- Operator
Not Equals - NotEquals
- Operator
Contains - Contains
- Operator
Does Not Contain - DoesNotContain
- Equals
- Equals
- Not
Equals - NotEquals
- Contains
- Contains
- Does
Not Contain - DoesNotContain
- Equals
- Equals
- Not
Equals - NotEquals
- Contains
- Contains
- Does
Not Contain - DoesNotContain
- EQUALS
- Equals
- NOT_EQUALS
- NotEquals
- CONTAINS
- Contains
- DOES_NOT_CONTAIN
- DoesNotContain
- "Equals"
- Equals
- "Not
Equals" - NotEquals
- "Contains"
- Contains
- "Does
Not Contain" - DoesNotContain
RemoveAllActionGroups, RemoveAllActionGroupsArgs
RemoveAllActionGroupsResponse, RemoveAllActionGroupsResponseArgs
Schedule, ScheduleArgs
- Effective
From string - Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
- Effective
Until string - Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
- Recurrences List<object>
- List of recurrences.
- Time
Zone string - Scheduling time zone.
- Effective
From string - Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
- Effective
Until string - Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
- Recurrences []interface{}
- List of recurrences.
- Time
Zone string - Scheduling time zone.
- effective
From String - Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
- effective
Until String - Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
- recurrences List<Object>
- List of recurrences.
- time
Zone String - Scheduling time zone.
- effective
From string - Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
- effective
Until string - Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
- recurrences
(Daily
Recurrence | Monthly Recurrence | Weekly Recurrence)[] - List of recurrences.
- time
Zone 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[Daily
Recurrence, Monthly Recurrence, Weekly Recurrence]] - List of recurrences.
- time_
zone str - Scheduling time zone.
- effective
From String - Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
- effective
Until String - Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
- recurrences List<Property Map | Property Map | Property Map>
- List of recurrences.
- time
Zone String - Scheduling time zone.
ScheduleResponse, ScheduleResponseArgs
- Effective
From string - Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
- Effective
Until string - Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
- Recurrences List<object>
- List of recurrences.
- Time
Zone string - Scheduling time zone.
- Effective
From string - Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
- Effective
Until string - Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
- Recurrences []interface{}
- List of recurrences.
- Time
Zone string - Scheduling time zone.
- effective
From String - Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
- effective
Until String - Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
- recurrences List<Object>
- List of recurrences.
- time
Zone String - Scheduling time zone.
- effective
From string - Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
- effective
Until string - Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
- recurrences
(Daily
Recurrence Response | Monthly Recurrence Response | Weekly Recurrence Response)[] - List of recurrences.
- time
Zone 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[Daily
Recurrence Response, Monthly Recurrence Response, Weekly Recurrence Response]] - List of recurrences.
- time_
zone str - Scheduling time zone.
- effective
From String - Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.
- effective
Until String - Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.
- recurrences List<Property Map | Property Map | Property Map>
- List of recurrences.
- time
Zone String - Scheduling time zone.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
WeeklyRecurrence, WeeklyRecurrenceArgs
- Days
Of List<Union<string, Pulumi.Week Azure Native. Alerts Management. Days Of Week>> - Specifies the values for weekly recurrence pattern.
- End
Time string - End time for recurrence.
- Start
Time string - Start time for recurrence.
- Days
Of []stringWeek - Specifies the values for weekly recurrence pattern.
- End
Time string - End time for recurrence.
- Start
Time string - Start time for recurrence.
- days
Of List<Either<String,DaysWeek Of Week>> - Specifies the values for weekly recurrence pattern.
- end
Time String - End time for recurrence.
- start
Time String - Start time for recurrence.
- days
Of (string | DaysWeek Of Week)[] - Specifies the values for weekly recurrence pattern.
- end
Time string - End time for recurrence.
- start
Time string - Start time for recurrence.
- days_
of_ Sequence[Union[str, Daysweek Of Week]] - Specifies the values for weekly recurrence pattern.
- end_
time str - End time for recurrence.
- start_
time str - Start time for recurrence.
- days
Of List<String | "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday">Week - Specifies the values for weekly recurrence pattern.
- end
Time String - End time for recurrence.
- start
Time String - Start time for recurrence.
WeeklyRecurrenceResponse, WeeklyRecurrenceResponseArgs
- Days
Of List<string>Week - Specifies the values for weekly recurrence pattern.
- End
Time string - End time for recurrence.
- Start
Time string - Start time for recurrence.
- Days
Of []stringWeek - Specifies the values for weekly recurrence pattern.
- End
Time string - End time for recurrence.
- Start
Time string - Start time for recurrence.
- days
Of List<String>Week - Specifies the values for weekly recurrence pattern.
- end
Time String - End time for recurrence.
- start
Time String - Start time for recurrence.
- days
Of string[]Week - Specifies the values for weekly recurrence pattern.
- end
Time string - End time for recurrence.
- start
Time string - Start time for recurrence.
- days_
of_ Sequence[str]week - Specifies the values for weekly recurrence pattern.
- end_
time str - End time for recurrence.
- start_
time str - Start time for recurrence.
- days
Of List<String>Week - Specifies the values for weekly recurrence pattern.
- end
Time String - End time for recurrence.
- start
Time String - Start time for recurrence.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:alertsmanagement:AlertProcessingRuleByName RemoveActionGroupsOutsideBusinessHours /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{alertProcessingRuleName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0