We recommend using Azure Native.
azure.monitoring.ActionRuleActionGroup
Explore with Pulumi AI
Manages a Monitor Action Rule which type is action group.
!> NOTE: This resource has been deprecated in version 5.0 of the provider and will be removed in version 6.0. Please use azure.monitoring.AlertProcessingRuleActionGroup resource instead.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleActionGroup = new azure.monitoring.ActionGroup("example", {
    name: "example-action-group",
    resourceGroupName: example.name,
    shortName: "example",
});
const exampleActionRuleActionGroup = new azure.monitoring.ActionRuleActionGroup("example", {
    name: "example-amar",
    resourceGroupName: example.name,
    actionGroupId: exampleActionGroup.id,
    scope: {
        type: "ResourceGroup",
        resourceIds: [example.id],
    },
    tags: {
        foo: "bar",
    },
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_action_group = azure.monitoring.ActionGroup("example",
    name="example-action-group",
    resource_group_name=example.name,
    short_name="example")
example_action_rule_action_group = azure.monitoring.ActionRuleActionGroup("example",
    name="example-amar",
    resource_group_name=example.name,
    action_group_id=example_action_group.id,
    scope=azure.monitoring.ActionRuleActionGroupScopeArgs(
        type="ResourceGroup",
        resource_ids=[example.id],
    ),
    tags={
        "foo": "bar",
    })
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/monitoring"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleActionGroup, err := monitoring.NewActionGroup(ctx, "example", &monitoring.ActionGroupArgs{
			Name:              pulumi.String("example-action-group"),
			ResourceGroupName: example.Name,
			ShortName:         pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		_, err = monitoring.NewActionRuleActionGroup(ctx, "example", &monitoring.ActionRuleActionGroupArgs{
			Name:              pulumi.String("example-amar"),
			ResourceGroupName: example.Name,
			ActionGroupId:     exampleActionGroup.ID(),
			Scope: &monitoring.ActionRuleActionGroupScopeArgs{
				Type: pulumi.String("ResourceGroup"),
				ResourceIds: pulumi.StringArray{
					example.ID(),
				},
			},
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });
    var exampleActionGroup = new Azure.Monitoring.ActionGroup("example", new()
    {
        Name = "example-action-group",
        ResourceGroupName = example.Name,
        ShortName = "example",
    });
    var exampleActionRuleActionGroup = new Azure.Monitoring.ActionRuleActionGroup("example", new()
    {
        Name = "example-amar",
        ResourceGroupName = example.Name,
        ActionGroupId = exampleActionGroup.Id,
        Scope = new Azure.Monitoring.Inputs.ActionRuleActionGroupScopeArgs
        {
            Type = "ResourceGroup",
            ResourceIds = new[]
            {
                example.Id,
            },
        },
        Tags = 
        {
            { "foo", "bar" },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.monitoring.ActionGroup;
import com.pulumi.azure.monitoring.ActionGroupArgs;
import com.pulumi.azure.monitoring.ActionRuleActionGroup;
import com.pulumi.azure.monitoring.ActionRuleActionGroupArgs;
import com.pulumi.azure.monitoring.inputs.ActionRuleActionGroupScopeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());
        var exampleActionGroup = new ActionGroup("exampleActionGroup", ActionGroupArgs.builder()
            .name("example-action-group")
            .resourceGroupName(example.name())
            .shortName("example")
            .build());
        var exampleActionRuleActionGroup = new ActionRuleActionGroup("exampleActionRuleActionGroup", ActionRuleActionGroupArgs.builder()
            .name("example-amar")
            .resourceGroupName(example.name())
            .actionGroupId(exampleActionGroup.id())
            .scope(ActionRuleActionGroupScopeArgs.builder()
                .type("ResourceGroup")
                .resourceIds(example.id())
                .build())
            .tags(Map.of("foo", "bar"))
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  exampleActionGroup:
    type: azure:monitoring:ActionGroup
    name: example
    properties:
      name: example-action-group
      resourceGroupName: ${example.name}
      shortName: example
  exampleActionRuleActionGroup:
    type: azure:monitoring:ActionRuleActionGroup
    name: example
    properties:
      name: example-amar
      resourceGroupName: ${example.name}
      actionGroupId: ${exampleActionGroup.id}
      scope:
        type: ResourceGroup
        resourceIds:
          - ${example.id}
      tags:
        foo: bar
Create ActionRuleActionGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ActionRuleActionGroup(name: string, args: ActionRuleActionGroupArgs, opts?: CustomResourceOptions);@overload
def ActionRuleActionGroup(resource_name: str,
                          args: ActionRuleActionGroupArgs,
                          opts: Optional[ResourceOptions] = None)
@overload
def ActionRuleActionGroup(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          action_group_id: Optional[str] = None,
                          resource_group_name: Optional[str] = None,
                          condition: Optional[ActionRuleActionGroupConditionArgs] = None,
                          description: Optional[str] = None,
                          enabled: Optional[bool] = None,
                          name: Optional[str] = None,
                          scope: Optional[ActionRuleActionGroupScopeArgs] = None,
                          tags: Optional[Mapping[str, str]] = None)func NewActionRuleActionGroup(ctx *Context, name string, args ActionRuleActionGroupArgs, opts ...ResourceOption) (*ActionRuleActionGroup, error)public ActionRuleActionGroup(string name, ActionRuleActionGroupArgs args, CustomResourceOptions? opts = null)
public ActionRuleActionGroup(String name, ActionRuleActionGroupArgs args)
public ActionRuleActionGroup(String name, ActionRuleActionGroupArgs args, CustomResourceOptions options)
type: azure:monitoring:ActionRuleActionGroup
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 ActionRuleActionGroupArgs
 - 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 ActionRuleActionGroupArgs
 - 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 ActionRuleActionGroupArgs
 - The arguments to resource properties.
 - opts ResourceOption
 - Bag of options to control resource's behavior.
 
- name string
 - The unique name of the resource.
 - args ActionRuleActionGroupArgs
 - The arguments to resource properties.
 - opts CustomResourceOptions
 - Bag of options to control resource's behavior.
 
- name String
 - The unique name of the resource.
 - args ActionRuleActionGroupArgs
 - 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 actionRuleActionGroupResource = new Azure.Monitoring.ActionRuleActionGroup("actionRuleActionGroupResource", new()
{
    ActionGroupId = "string",
    ResourceGroupName = "string",
    Condition = new Azure.Monitoring.Inputs.ActionRuleActionGroupConditionArgs
    {
        AlertContext = new Azure.Monitoring.Inputs.ActionRuleActionGroupConditionAlertContextArgs
        {
            Operator = "string",
            Values = new[]
            {
                "string",
            },
        },
        AlertRuleId = new Azure.Monitoring.Inputs.ActionRuleActionGroupConditionAlertRuleIdArgs
        {
            Operator = "string",
            Values = new[]
            {
                "string",
            },
        },
        Description = new Azure.Monitoring.Inputs.ActionRuleActionGroupConditionDescriptionArgs
        {
            Operator = "string",
            Values = new[]
            {
                "string",
            },
        },
        Monitor = new Azure.Monitoring.Inputs.ActionRuleActionGroupConditionMonitorArgs
        {
            Operator = "string",
            Values = new[]
            {
                "string",
            },
        },
        MonitorService = new Azure.Monitoring.Inputs.ActionRuleActionGroupConditionMonitorServiceArgs
        {
            Operator = "string",
            Values = new[]
            {
                "string",
            },
        },
        Severity = new Azure.Monitoring.Inputs.ActionRuleActionGroupConditionSeverityArgs
        {
            Operator = "string",
            Values = new[]
            {
                "string",
            },
        },
        TargetResourceType = new Azure.Monitoring.Inputs.ActionRuleActionGroupConditionTargetResourceTypeArgs
        {
            Operator = "string",
            Values = new[]
            {
                "string",
            },
        },
    },
    Description = "string",
    Enabled = false,
    Name = "string",
    Scope = new Azure.Monitoring.Inputs.ActionRuleActionGroupScopeArgs
    {
        ResourceIds = new[]
        {
            "string",
        },
        Type = "string",
    },
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := monitoring.NewActionRuleActionGroup(ctx, "actionRuleActionGroupResource", &monitoring.ActionRuleActionGroupArgs{
	ActionGroupId:     pulumi.String("string"),
	ResourceGroupName: pulumi.String("string"),
	Condition: &monitoring.ActionRuleActionGroupConditionArgs{
		AlertContext: &monitoring.ActionRuleActionGroupConditionAlertContextArgs{
			Operator: pulumi.String("string"),
			Values: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
		AlertRuleId: &monitoring.ActionRuleActionGroupConditionAlertRuleIdArgs{
			Operator: pulumi.String("string"),
			Values: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
		Description: &monitoring.ActionRuleActionGroupConditionDescriptionArgs{
			Operator: pulumi.String("string"),
			Values: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
		Monitor: &monitoring.ActionRuleActionGroupConditionMonitorArgs{
			Operator: pulumi.String("string"),
			Values: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
		MonitorService: &monitoring.ActionRuleActionGroupConditionMonitorServiceArgs{
			Operator: pulumi.String("string"),
			Values: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
		Severity: &monitoring.ActionRuleActionGroupConditionSeverityArgs{
			Operator: pulumi.String("string"),
			Values: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
		TargetResourceType: &monitoring.ActionRuleActionGroupConditionTargetResourceTypeArgs{
			Operator: pulumi.String("string"),
			Values: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
	Description: pulumi.String("string"),
	Enabled:     pulumi.Bool(false),
	Name:        pulumi.String("string"),
	Scope: &monitoring.ActionRuleActionGroupScopeArgs{
		ResourceIds: pulumi.StringArray{
			pulumi.String("string"),
		},
		Type: pulumi.String("string"),
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var actionRuleActionGroupResource = new ActionRuleActionGroup("actionRuleActionGroupResource", ActionRuleActionGroupArgs.builder()
    .actionGroupId("string")
    .resourceGroupName("string")
    .condition(ActionRuleActionGroupConditionArgs.builder()
        .alertContext(ActionRuleActionGroupConditionAlertContextArgs.builder()
            .operator("string")
            .values("string")
            .build())
        .alertRuleId(ActionRuleActionGroupConditionAlertRuleIdArgs.builder()
            .operator("string")
            .values("string")
            .build())
        .description(ActionRuleActionGroupConditionDescriptionArgs.builder()
            .operator("string")
            .values("string")
            .build())
        .monitor(ActionRuleActionGroupConditionMonitorArgs.builder()
            .operator("string")
            .values("string")
            .build())
        .monitorService(ActionRuleActionGroupConditionMonitorServiceArgs.builder()
            .operator("string")
            .values("string")
            .build())
        .severity(ActionRuleActionGroupConditionSeverityArgs.builder()
            .operator("string")
            .values("string")
            .build())
        .targetResourceType(ActionRuleActionGroupConditionTargetResourceTypeArgs.builder()
            .operator("string")
            .values("string")
            .build())
        .build())
    .description("string")
    .enabled(false)
    .name("string")
    .scope(ActionRuleActionGroupScopeArgs.builder()
        .resourceIds("string")
        .type("string")
        .build())
    .tags(Map.of("string", "string"))
    .build());
action_rule_action_group_resource = azure.monitoring.ActionRuleActionGroup("actionRuleActionGroupResource",
    action_group_id="string",
    resource_group_name="string",
    condition=azure.monitoring.ActionRuleActionGroupConditionArgs(
        alert_context=azure.monitoring.ActionRuleActionGroupConditionAlertContextArgs(
            operator="string",
            values=["string"],
        ),
        alert_rule_id=azure.monitoring.ActionRuleActionGroupConditionAlertRuleIdArgs(
            operator="string",
            values=["string"],
        ),
        description=azure.monitoring.ActionRuleActionGroupConditionDescriptionArgs(
            operator="string",
            values=["string"],
        ),
        monitor=azure.monitoring.ActionRuleActionGroupConditionMonitorArgs(
            operator="string",
            values=["string"],
        ),
        monitor_service=azure.monitoring.ActionRuleActionGroupConditionMonitorServiceArgs(
            operator="string",
            values=["string"],
        ),
        severity=azure.monitoring.ActionRuleActionGroupConditionSeverityArgs(
            operator="string",
            values=["string"],
        ),
        target_resource_type=azure.monitoring.ActionRuleActionGroupConditionTargetResourceTypeArgs(
            operator="string",
            values=["string"],
        ),
    ),
    description="string",
    enabled=False,
    name="string",
    scope=azure.monitoring.ActionRuleActionGroupScopeArgs(
        resource_ids=["string"],
        type="string",
    ),
    tags={
        "string": "string",
    })
const actionRuleActionGroupResource = new azure.monitoring.ActionRuleActionGroup("actionRuleActionGroupResource", {
    actionGroupId: "string",
    resourceGroupName: "string",
    condition: {
        alertContext: {
            operator: "string",
            values: ["string"],
        },
        alertRuleId: {
            operator: "string",
            values: ["string"],
        },
        description: {
            operator: "string",
            values: ["string"],
        },
        monitor: {
            operator: "string",
            values: ["string"],
        },
        monitorService: {
            operator: "string",
            values: ["string"],
        },
        severity: {
            operator: "string",
            values: ["string"],
        },
        targetResourceType: {
            operator: "string",
            values: ["string"],
        },
    },
    description: "string",
    enabled: false,
    name: "string",
    scope: {
        resourceIds: ["string"],
        type: "string",
    },
    tags: {
        string: "string",
    },
});
type: azure:monitoring:ActionRuleActionGroup
properties:
    actionGroupId: string
    condition:
        alertContext:
            operator: string
            values:
                - string
        alertRuleId:
            operator: string
            values:
                - string
        description:
            operator: string
            values:
                - string
        monitor:
            operator: string
            values:
                - string
        monitorService:
            operator: string
            values:
                - string
        severity:
            operator: string
            values:
                - string
        targetResourceType:
            operator: string
            values:
                - string
    description: string
    enabled: false
    name: string
    resourceGroupName: string
    scope:
        resourceIds:
            - string
        type: string
    tags:
        string: string
ActionRuleActionGroup 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 ActionRuleActionGroup resource accepts the following input properties:
- Action
Group stringId  - Specifies the resource id of monitor action group.
 - Resource
Group stringName  - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
 - Condition
Action
Rule Action Group Condition  - A 
conditionblock as defined below. - Description string
 - Specifies a description for the Action Rule.
 - Enabled bool
 - Is the Action Rule enabled? Defaults to 
true. - Name string
 - Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
 - Scope
Action
Rule Action Group Scope  - A 
scopeblock as defined below. - Dictionary<string, string>
 - A mapping of tags to assign to the resource.
 
- Action
Group stringId  - Specifies the resource id of monitor action group.
 - Resource
Group stringName  - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
 - Condition
Action
Rule Action Group Condition Args  - A 
conditionblock as defined below. - Description string
 - Specifies a description for the Action Rule.
 - Enabled bool
 - Is the Action Rule enabled? Defaults to 
true. - Name string
 - Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
 - Scope
Action
Rule Action Group Scope Args  - A 
scopeblock as defined below. - map[string]string
 - A mapping of tags to assign to the resource.
 
- action
Group StringId  - Specifies the resource id of monitor action group.
 - resource
Group StringName  - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
 - condition
Action
Rule Action Group Condition  - A 
conditionblock as defined below. - description String
 - Specifies a description for the Action Rule.
 - enabled Boolean
 - Is the Action Rule enabled? Defaults to 
true. - name String
 - Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
 - scope
Action
Rule Action Group Scope  - A 
scopeblock as defined below. - Map<String,String>
 - A mapping of tags to assign to the resource.
 
- action
Group stringId  - Specifies the resource id of monitor action group.
 - resource
Group stringName  - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
 - condition
Action
Rule Action Group Condition  - A 
conditionblock as defined below. - description string
 - Specifies a description for the Action Rule.
 - enabled boolean
 - Is the Action Rule enabled? Defaults to 
true. - name string
 - Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
 - scope
Action
Rule Action Group Scope  - A 
scopeblock as defined below. - {[key: string]: string}
 - A mapping of tags to assign to the resource.
 
- action_
group_ strid  - Specifies the resource id of monitor action group.
 - resource_
group_ strname  - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
 - condition
Action
Rule Action Group Condition Args  - A 
conditionblock as defined below. - description str
 - Specifies a description for the Action Rule.
 - enabled bool
 - Is the Action Rule enabled? Defaults to 
true. - name str
 - Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
 - scope
Action
Rule Action Group Scope Args  - A 
scopeblock as defined below. - Mapping[str, str]
 - A mapping of tags to assign to the resource.
 
- action
Group StringId  - Specifies the resource id of monitor action group.
 - resource
Group StringName  - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
 - condition Property Map
 - A 
conditionblock as defined below. - description String
 - Specifies a description for the Action Rule.
 - enabled Boolean
 - Is the Action Rule enabled? Defaults to 
true. - name String
 - Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
 - scope Property Map
 - A 
scopeblock as defined below. - Map<String>
 - A mapping of tags to assign to the resource.
 
Outputs
All input properties are implicitly available as output properties. Additionally, the ActionRuleActionGroup resource produces the following output properties:
- Id string
 - The provider-assigned unique ID for this managed resource.
 
- Id string
 - The provider-assigned unique ID for this managed resource.
 
- id String
 - The provider-assigned unique ID for this managed resource.
 
- id string
 - The provider-assigned unique ID for this managed resource.
 
- id str
 - The provider-assigned unique ID for this managed resource.
 
- id String
 - The provider-assigned unique ID for this managed resource.
 
Look up Existing ActionRuleActionGroup Resource
Get an existing ActionRuleActionGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ActionRuleActionGroupState, opts?: CustomResourceOptions): ActionRuleActionGroup@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        action_group_id: Optional[str] = None,
        condition: Optional[ActionRuleActionGroupConditionArgs] = None,
        description: Optional[str] = None,
        enabled: Optional[bool] = None,
        name: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        scope: Optional[ActionRuleActionGroupScopeArgs] = None,
        tags: Optional[Mapping[str, str]] = None) -> ActionRuleActionGroupfunc GetActionRuleActionGroup(ctx *Context, name string, id IDInput, state *ActionRuleActionGroupState, opts ...ResourceOption) (*ActionRuleActionGroup, error)public static ActionRuleActionGroup Get(string name, Input<string> id, ActionRuleActionGroupState? state, CustomResourceOptions? opts = null)public static ActionRuleActionGroup get(String name, Output<String> id, ActionRuleActionGroupState state, CustomResourceOptions options)Resource lookup is not supported in YAML- name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 - state
 - Any extra arguments used during the lookup.
 - opts
 - A bag of options that control this resource's behavior.
 
- resource_name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 
- name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 - state
 - Any extra arguments used during the lookup.
 - opts
 - A bag of options that control this resource's behavior.
 
- name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 - state
 - Any extra arguments used during the lookup.
 - opts
 - A bag of options that control this resource's behavior.
 
- name
 - The unique name of the resulting resource.
 - id
 - The unique provider ID of the resource to lookup.
 - state
 - Any extra arguments used during the lookup.
 - opts
 - A bag of options that control this resource's behavior.
 
- Action
Group stringId  - Specifies the resource id of monitor action group.
 - Condition
Action
Rule Action Group Condition  - A 
conditionblock as defined below. - Description string
 - Specifies a description for the Action Rule.
 - Enabled bool
 - Is the Action Rule enabled? Defaults to 
true. - Name string
 - Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
 - Resource
Group stringName  - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
 - Scope
Action
Rule Action Group Scope  - A 
scopeblock as defined below. - Dictionary<string, string>
 - A mapping of tags to assign to the resource.
 
- Action
Group stringId  - Specifies the resource id of monitor action group.
 - Condition
Action
Rule Action Group Condition Args  - A 
conditionblock as defined below. - Description string
 - Specifies a description for the Action Rule.
 - Enabled bool
 - Is the Action Rule enabled? Defaults to 
true. - Name string
 - Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
 - Resource
Group stringName  - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
 - Scope
Action
Rule Action Group Scope Args  - A 
scopeblock as defined below. - map[string]string
 - A mapping of tags to assign to the resource.
 
- action
Group StringId  - Specifies the resource id of monitor action group.
 - condition
Action
Rule Action Group Condition  - A 
conditionblock as defined below. - description String
 - Specifies a description for the Action Rule.
 - enabled Boolean
 - Is the Action Rule enabled? Defaults to 
true. - name String
 - Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
 - resource
Group StringName  - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
 - scope
Action
Rule Action Group Scope  - A 
scopeblock as defined below. - Map<String,String>
 - A mapping of tags to assign to the resource.
 
- action
Group stringId  - Specifies the resource id of monitor action group.
 - condition
Action
Rule Action Group Condition  - A 
conditionblock as defined below. - description string
 - Specifies a description for the Action Rule.
 - enabled boolean
 - Is the Action Rule enabled? Defaults to 
true. - name string
 - Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
 - resource
Group stringName  - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
 - scope
Action
Rule Action Group Scope  - A 
scopeblock as defined below. - {[key: string]: string}
 - A mapping of tags to assign to the resource.
 
- action_
group_ strid  - Specifies the resource id of monitor action group.
 - condition
Action
Rule Action Group Condition Args  - A 
conditionblock as defined below. - description str
 - Specifies a description for the Action Rule.
 - enabled bool
 - Is the Action Rule enabled? Defaults to 
true. - name str
 - Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
 - resource_
group_ strname  - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
 - scope
Action
Rule Action Group Scope Args  - A 
scopeblock as defined below. - Mapping[str, str]
 - A mapping of tags to assign to the resource.
 
- action
Group StringId  - Specifies the resource id of monitor action group.
 - condition Property Map
 - A 
conditionblock as defined below. - description String
 - Specifies a description for the Action Rule.
 - enabled Boolean
 - Is the Action Rule enabled? Defaults to 
true. - name String
 - Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
 - resource
Group StringName  - Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
 - scope Property Map
 - A 
scopeblock as defined below. - Map<String>
 - A mapping of tags to assign to the resource.
 
Supporting Types
ActionRuleActionGroupCondition, ActionRuleActionGroupConditionArgs          
- Alert
Context ActionRule Action Group Condition Alert Context  - A 
alert_contextblock as defined below. - Alert
Rule ActionId Rule Action Group Condition Alert Rule Id  - A 
alert_rule_idblock as defined below. - Description
Action
Rule Action Group Condition Description  - A 
descriptionblock as defined below. - Monitor
Action
Rule Action Group Condition Monitor  - A 
monitorblock as defined below. - Monitor
Service ActionRule Action Group Condition Monitor Service  - A 
monitor_serviceblock as defined below. - Severity
Action
Rule Action Group Condition Severity  - A 
severityblock as defined below. - Target
Resource ActionType Rule Action Group Condition Target Resource Type  - A 
target_resource_typeblock as defined below. 
- Alert
Context ActionRule Action Group Condition Alert Context  - A 
alert_contextblock as defined below. - Alert
Rule ActionId Rule Action Group Condition Alert Rule Id  - A 
alert_rule_idblock as defined below. - Description
Action
Rule Action Group Condition Description  - A 
descriptionblock as defined below. - Monitor
Action
Rule Action Group Condition Monitor  - A 
monitorblock as defined below. - Monitor
Service ActionRule Action Group Condition Monitor Service  - A 
monitor_serviceblock as defined below. - Severity
Action
Rule Action Group Condition Severity  - A 
severityblock as defined below. - Target
Resource ActionType Rule Action Group Condition Target Resource Type  - A 
target_resource_typeblock as defined below. 
- alert
Context ActionRule Action Group Condition Alert Context  - A 
alert_contextblock as defined below. - alert
Rule ActionId Rule Action Group Condition Alert Rule Id  - A 
alert_rule_idblock as defined below. - description
Action
Rule Action Group Condition Description  - A 
descriptionblock as defined below. - monitor
Action
Rule Action Group Condition Monitor  - A 
monitorblock as defined below. - monitor
Service ActionRule Action Group Condition Monitor Service  - A 
monitor_serviceblock as defined below. - severity
Action
Rule Action Group Condition Severity  - A 
severityblock as defined below. - target
Resource ActionType Rule Action Group Condition Target Resource Type  - A 
target_resource_typeblock as defined below. 
- alert
Context ActionRule Action Group Condition Alert Context  - A 
alert_contextblock as defined below. - alert
Rule ActionId Rule Action Group Condition Alert Rule Id  - A 
alert_rule_idblock as defined below. - description
Action
Rule Action Group Condition Description  - A 
descriptionblock as defined below. - monitor
Action
Rule Action Group Condition Monitor  - A 
monitorblock as defined below. - monitor
Service ActionRule Action Group Condition Monitor Service  - A 
monitor_serviceblock as defined below. - severity
Action
Rule Action Group Condition Severity  - A 
severityblock as defined below. - target
Resource ActionType Rule Action Group Condition Target Resource Type  - A 
target_resource_typeblock as defined below. 
- alert_
context ActionRule Action Group Condition Alert Context  - A 
alert_contextblock as defined below. - alert_
rule_ Actionid Rule Action Group Condition Alert Rule Id  - A 
alert_rule_idblock as defined below. - description
Action
Rule Action Group Condition Description  - A 
descriptionblock as defined below. - monitor
Action
Rule Action Group Condition Monitor  - A 
monitorblock as defined below. - monitor_
service ActionRule Action Group Condition Monitor Service  - A 
monitor_serviceblock as defined below. - severity
Action
Rule Action Group Condition Severity  - A 
severityblock as defined below. - target_
resource_ Actiontype Rule Action Group Condition Target Resource Type  - A 
target_resource_typeblock as defined below. 
- alert
Context Property Map - A 
alert_contextblock as defined below. - alert
Rule Property MapId  - A 
alert_rule_idblock as defined below. - description Property Map
 - A 
descriptionblock as defined below. - monitor Property Map
 - A 
monitorblock as defined below. - monitor
Service Property Map - A 
monitor_serviceblock as defined below. - severity Property Map
 - A 
severityblock as defined below. - target
Resource Property MapType  - A 
target_resource_typeblock as defined below. 
ActionRuleActionGroupConditionAlertContext, ActionRuleActionGroupConditionAlertContextArgs              
ActionRuleActionGroupConditionAlertRuleId, ActionRuleActionGroupConditionAlertRuleIdArgs                
ActionRuleActionGroupConditionDescription, ActionRuleActionGroupConditionDescriptionArgs            
ActionRuleActionGroupConditionMonitor, ActionRuleActionGroupConditionMonitorArgs            
ActionRuleActionGroupConditionMonitorService, ActionRuleActionGroupConditionMonitorServiceArgs              
- Operator string
 - The operator for a given condition. Possible values are 
EqualsandNotEquals. - Values List<string>
 - A list of values to match for a given condition. Possible values are 
ActivityLog Administrative,ActivityLog Autoscale,ActivityLog Policy,ActivityLog Recommendation,ActivityLog Security,Application Insights,Azure Backup,Azure Stack Edge,Azure Stack Hub,Custom,Data Box Gateway,Health Platform,Log Alerts V2,Log Analytics,Platform,Resource Health,Smart DetectorandVM Insights - Health. 
- Operator string
 - The operator for a given condition. Possible values are 
EqualsandNotEquals. - Values []string
 - A list of values to match for a given condition. Possible values are 
ActivityLog Administrative,ActivityLog Autoscale,ActivityLog Policy,ActivityLog Recommendation,ActivityLog Security,Application Insights,Azure Backup,Azure Stack Edge,Azure Stack Hub,Custom,Data Box Gateway,Health Platform,Log Alerts V2,Log Analytics,Platform,Resource Health,Smart DetectorandVM Insights - Health. 
- operator String
 - The operator for a given condition. Possible values are 
EqualsandNotEquals. - values List<String>
 - A list of values to match for a given condition. Possible values are 
ActivityLog Administrative,ActivityLog Autoscale,ActivityLog Policy,ActivityLog Recommendation,ActivityLog Security,Application Insights,Azure Backup,Azure Stack Edge,Azure Stack Hub,Custom,Data Box Gateway,Health Platform,Log Alerts V2,Log Analytics,Platform,Resource Health,Smart DetectorandVM Insights - Health. 
- operator string
 - The operator for a given condition. Possible values are 
EqualsandNotEquals. - values string[]
 - A list of values to match for a given condition. Possible values are 
ActivityLog Administrative,ActivityLog Autoscale,ActivityLog Policy,ActivityLog Recommendation,ActivityLog Security,Application Insights,Azure Backup,Azure Stack Edge,Azure Stack Hub,Custom,Data Box Gateway,Health Platform,Log Alerts V2,Log Analytics,Platform,Resource Health,Smart DetectorandVM Insights - Health. 
- operator str
 - The operator for a given condition. Possible values are 
EqualsandNotEquals. - values Sequence[str]
 - A list of values to match for a given condition. Possible values are 
ActivityLog Administrative,ActivityLog Autoscale,ActivityLog Policy,ActivityLog Recommendation,ActivityLog Security,Application Insights,Azure Backup,Azure Stack Edge,Azure Stack Hub,Custom,Data Box Gateway,Health Platform,Log Alerts V2,Log Analytics,Platform,Resource Health,Smart DetectorandVM Insights - Health. 
- operator String
 - The operator for a given condition. Possible values are 
EqualsandNotEquals. - values List<String>
 - A list of values to match for a given condition. Possible values are 
ActivityLog Administrative,ActivityLog Autoscale,ActivityLog Policy,ActivityLog Recommendation,ActivityLog Security,Application Insights,Azure Backup,Azure Stack Edge,Azure Stack Hub,Custom,Data Box Gateway,Health Platform,Log Alerts V2,Log Analytics,Platform,Resource Health,Smart DetectorandVM Insights - Health. 
ActionRuleActionGroupConditionSeverity, ActionRuleActionGroupConditionSeverityArgs            
ActionRuleActionGroupConditionTargetResourceType, ActionRuleActionGroupConditionTargetResourceTypeArgs                
ActionRuleActionGroupScope, ActionRuleActionGroupScopeArgs          
- Resource
Ids List<string> - A list of resource IDs of the given scope type which will be the target of action rule.
 - Type string
 - Specifies the type of target scope. Possible values are 
ResourceGroupandResource. 
- Resource
Ids []string - A list of resource IDs of the given scope type which will be the target of action rule.
 - Type string
 - Specifies the type of target scope. Possible values are 
ResourceGroupandResource. 
- resource
Ids List<String> - A list of resource IDs of the given scope type which will be the target of action rule.
 - type String
 - Specifies the type of target scope. Possible values are 
ResourceGroupandResource. 
- resource
Ids string[] - A list of resource IDs of the given scope type which will be the target of action rule.
 - type string
 - Specifies the type of target scope. Possible values are 
ResourceGroupandResource. 
- resource_
ids Sequence[str] - A list of resource IDs of the given scope type which will be the target of action rule.
 - type str
 - Specifies the type of target scope. Possible values are 
ResourceGroupandResource. 
- resource
Ids List<String> - A list of resource IDs of the given scope type which will be the target of action rule.
 - type String
 - Specifies the type of target scope. Possible values are 
ResourceGroupandResource. 
Import
Monitor Action Rule can be imported using the resource id, e.g.
$ pulumi import azure:monitoring/actionRuleActionGroup:ActionRuleActionGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AlertsManagement/actionRules/actionRule1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
 - Azure Classic pulumi/pulumi-azure
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
azurermTerraform Provider.