Azure Classic

Pulumi Official
Package maintained by Pulumi
v5.14.0 published on Thursday, Jul 28, 2022 by Pulumi

ActionGroup

Manages an Action Group within Azure Monitor.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
        {
            Location = "West Europe",
        });
        var current = Output.Create(Azure.Core.GetClientConfig.InvokeAsync());
        var exampleAnalyticsWorkspace = new Azure.OperationalInsights.AnalyticsWorkspace("exampleAnalyticsWorkspace", new Azure.OperationalInsights.AnalyticsWorkspaceArgs
        {
            Location = exampleResourceGroup.Location,
            ResourceGroupName = exampleResourceGroup.Name,
        });
        var exampleActionGroup = new Azure.Monitoring.ActionGroup("exampleActionGroup", new Azure.Monitoring.ActionGroupArgs
        {
            ResourceGroupName = exampleResourceGroup.Name,
            ShortName = "p0action",
            ArmRoleReceivers = 
            {
                new Azure.Monitoring.Inputs.ActionGroupArmRoleReceiverArgs
                {
                    Name = "armroleaction",
                    RoleId = "de139f84-1756-47ae-9be6-808fbbe84772",
                    UseCommonAlertSchema = true,
                },
            },
            AutomationRunbookReceivers = 
            {
                new Azure.Monitoring.Inputs.ActionGroupAutomationRunbookReceiverArgs
                {
                    Name = "action_name_1",
                    AutomationAccountId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-runbooks/providers/microsoft.automation/automationaccounts/aaa001",
                    RunbookName = "my runbook",
                    WebhookResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-runbooks/providers/microsoft.automation/automationaccounts/aaa001/webhooks/webhook_alert",
                    IsGlobalRunbook = true,
                    ServiceUri = "https://s13events.azure-automation.net/webhooks?token=randomtoken",
                    UseCommonAlertSchema = true,
                },
            },
            AzureAppPushReceivers = 
            {
                new Azure.Monitoring.Inputs.ActionGroupAzureAppPushReceiverArgs
                {
                    Name = "pushtoadmin",
                    EmailAddress = "admin@contoso.com",
                },
            },
            AzureFunctionReceivers = 
            {
                new Azure.Monitoring.Inputs.ActionGroupAzureFunctionReceiverArgs
                {
                    Name = "funcaction",
                    FunctionAppResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-funcapp/providers/Microsoft.Web/sites/funcapp",
                    FunctionName = "myfunc",
                    HttpTriggerUrl = "https://example.com/trigger",
                    UseCommonAlertSchema = true,
                },
            },
            EmailReceivers = 
            {
                new Azure.Monitoring.Inputs.ActionGroupEmailReceiverArgs
                {
                    Name = "sendtoadmin",
                    EmailAddress = "admin@contoso.com",
                },
                new Azure.Monitoring.Inputs.ActionGroupEmailReceiverArgs
                {
                    Name = "sendtodevops",
                    EmailAddress = "devops@contoso.com",
                    UseCommonAlertSchema = true,
                },
            },
            EventHubReceivers = 
            {
                new Azure.Monitoring.Inputs.ActionGroupEventHubReceiverArgs
                {
                    Name = "sendtoeventhub",
                    EventHubId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-eventhub/providers/Microsoft.EventHub/namespaces/eventhubnamespace/eventhubs/eventhub1",
                    UseCommonAlertSchema = false,
                },
            },
            ItsmReceivers = 
            {
                new Azure.Monitoring.Inputs.ActionGroupItsmReceiverArgs
                {
                    Name = "createorupdateticket",
                    WorkspaceId = Output.Tuple(current, exampleAnalyticsWorkspace.WorkspaceId).Apply(values =>
                    {
                        var current = values.Item1;
                        var workspaceId = values.Item2;
                        return $"{current.SubscriptionId}|{workspaceId}";
                    }),
                    ConnectionId = "53de6956-42b4-41ba-be3c-b154cdf17b13",
                    TicketConfiguration = "{}",
                    Region = "southcentralus",
                },
            },
            LogicAppReceivers = 
            {
                new Azure.Monitoring.Inputs.ActionGroupLogicAppReceiverArgs
                {
                    Name = "logicappaction",
                    ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-logicapp/providers/Microsoft.Logic/workflows/logicapp",
                    CallbackUrl = "https://logicapptriggerurl/...",
                    UseCommonAlertSchema = true,
                },
            },
            SmsReceivers = 
            {
                new Azure.Monitoring.Inputs.ActionGroupSmsReceiverArgs
                {
                    Name = "oncallmsg",
                    CountryCode = "1",
                    PhoneNumber = "1231231234",
                },
            },
            VoiceReceivers = 
            {
                new Azure.Monitoring.Inputs.ActionGroupVoiceReceiverArgs
                {
                    Name = "remotesupport",
                    CountryCode = "86",
                    PhoneNumber = "13888888888",
                },
            },
            WebhookReceivers = 
            {
                new Azure.Monitoring.Inputs.ActionGroupWebhookReceiverArgs
                {
                    Name = "callmyapiaswell",
                    ServiceUri = "http://example.com/alert",
                    UseCommonAlertSchema = true,
                },
            },
        });
    }

}
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/monitoring"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/operationalinsights"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		current, err := core.GetClientConfig(ctx, nil, nil)
		if err != nil {
			return err
		}
		exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "exampleAnalyticsWorkspace", &operationalinsights.AnalyticsWorkspaceArgs{
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
		})
		if err != nil {
			return err
		}
		_, err = monitoring.NewActionGroup(ctx, "exampleActionGroup", &monitoring.ActionGroupArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			ShortName:         pulumi.String("p0action"),
			ArmRoleReceivers: monitoring.ActionGroupArmRoleReceiverArray{
				&monitoring.ActionGroupArmRoleReceiverArgs{
					Name:                 pulumi.String("armroleaction"),
					RoleId:               pulumi.String("de139f84-1756-47ae-9be6-808fbbe84772"),
					UseCommonAlertSchema: pulumi.Bool(true),
				},
			},
			AutomationRunbookReceivers: monitoring.ActionGroupAutomationRunbookReceiverArray{
				&monitoring.ActionGroupAutomationRunbookReceiverArgs{
					Name:                 pulumi.String("action_name_1"),
					AutomationAccountId:  pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-runbooks/providers/microsoft.automation/automationaccounts/aaa001"),
					RunbookName:          pulumi.String("my runbook"),
					WebhookResourceId:    pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-runbooks/providers/microsoft.automation/automationaccounts/aaa001/webhooks/webhook_alert"),
					IsGlobalRunbook:      pulumi.Bool(true),
					ServiceUri:           pulumi.String("https://s13events.azure-automation.net/webhooks?token=randomtoken"),
					UseCommonAlertSchema: pulumi.Bool(true),
				},
			},
			AzureAppPushReceivers: monitoring.ActionGroupAzureAppPushReceiverArray{
				&monitoring.ActionGroupAzureAppPushReceiverArgs{
					Name:         pulumi.String("pushtoadmin"),
					EmailAddress: pulumi.String("admin@contoso.com"),
				},
			},
			AzureFunctionReceivers: monitoring.ActionGroupAzureFunctionReceiverArray{
				&monitoring.ActionGroupAzureFunctionReceiverArgs{
					Name:                  pulumi.String("funcaction"),
					FunctionAppResourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-funcapp/providers/Microsoft.Web/sites/funcapp"),
					FunctionName:          pulumi.String("myfunc"),
					HttpTriggerUrl:        pulumi.String("https://example.com/trigger"),
					UseCommonAlertSchema:  pulumi.Bool(true),
				},
			},
			EmailReceivers: monitoring.ActionGroupEmailReceiverArray{
				&monitoring.ActionGroupEmailReceiverArgs{
					Name:         pulumi.String("sendtoadmin"),
					EmailAddress: pulumi.String("admin@contoso.com"),
				},
				&monitoring.ActionGroupEmailReceiverArgs{
					Name:                 pulumi.String("sendtodevops"),
					EmailAddress:         pulumi.String("devops@contoso.com"),
					UseCommonAlertSchema: pulumi.Bool(true),
				},
			},
			EventHubReceivers: monitoring.ActionGroupEventHubReceiverArray{
				&monitoring.ActionGroupEventHubReceiverArgs{
					Name:                 pulumi.String("sendtoeventhub"),
					EventHubId:           pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-eventhub/providers/Microsoft.EventHub/namespaces/eventhubnamespace/eventhubs/eventhub1"),
					UseCommonAlertSchema: pulumi.Bool(false),
				},
			},
			ItsmReceivers: monitoring.ActionGroupItsmReceiverArray{
				&monitoring.ActionGroupItsmReceiverArgs{
					Name: pulumi.String("createorupdateticket"),
					WorkspaceId: exampleAnalyticsWorkspace.WorkspaceId.ApplyT(func(workspaceId string) (string, error) {
						return fmt.Sprintf("%v|%v", current.SubscriptionId, workspaceId), nil
					}).(pulumi.StringOutput),
					ConnectionId:        pulumi.String("53de6956-42b4-41ba-be3c-b154cdf17b13"),
					TicketConfiguration: pulumi.String("{}"),
					Region:              pulumi.String("southcentralus"),
				},
			},
			LogicAppReceivers: monitoring.ActionGroupLogicAppReceiverArray{
				&monitoring.ActionGroupLogicAppReceiverArgs{
					Name:                 pulumi.String("logicappaction"),
					ResourceId:           pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-logicapp/providers/Microsoft.Logic/workflows/logicapp"),
					CallbackUrl:          pulumi.String("https://logicapptriggerurl/..."),
					UseCommonAlertSchema: pulumi.Bool(true),
				},
			},
			SmsReceivers: monitoring.ActionGroupSmsReceiverArray{
				&monitoring.ActionGroupSmsReceiverArgs{
					Name:        pulumi.String("oncallmsg"),
					CountryCode: pulumi.String("1"),
					PhoneNumber: pulumi.String("1231231234"),
				},
			},
			VoiceReceivers: monitoring.ActionGroupVoiceReceiverArray{
				&monitoring.ActionGroupVoiceReceiverArgs{
					Name:        pulumi.String("remotesupport"),
					CountryCode: pulumi.String("86"),
					PhoneNumber: pulumi.String("13888888888"),
				},
			},
			WebhookReceivers: monitoring.ActionGroupWebhookReceiverArray{
				&monitoring.ActionGroupWebhookReceiverArgs{
					Name:                 pulumi.String("callmyapiaswell"),
					ServiceUri:           pulumi.String("http://example.com/alert"),
					UseCommonAlertSchema: pulumi.Bool(true),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
current = azure.core.get_client_config()
example_analytics_workspace = azure.operationalinsights.AnalyticsWorkspace("exampleAnalyticsWorkspace",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name)
example_action_group = azure.monitoring.ActionGroup("exampleActionGroup",
    resource_group_name=example_resource_group.name,
    short_name="p0action",
    arm_role_receivers=[azure.monitoring.ActionGroupArmRoleReceiverArgs(
        name="armroleaction",
        role_id="de139f84-1756-47ae-9be6-808fbbe84772",
        use_common_alert_schema=True,
    )],
    automation_runbook_receivers=[azure.monitoring.ActionGroupAutomationRunbookReceiverArgs(
        name="action_name_1",
        automation_account_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-runbooks/providers/microsoft.automation/automationaccounts/aaa001",
        runbook_name="my runbook",
        webhook_resource_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-runbooks/providers/microsoft.automation/automationaccounts/aaa001/webhooks/webhook_alert",
        is_global_runbook=True,
        service_uri="https://s13events.azure-automation.net/webhooks?token=randomtoken",
        use_common_alert_schema=True,
    )],
    azure_app_push_receivers=[azure.monitoring.ActionGroupAzureAppPushReceiverArgs(
        name="pushtoadmin",
        email_address="admin@contoso.com",
    )],
    azure_function_receivers=[azure.monitoring.ActionGroupAzureFunctionReceiverArgs(
        name="funcaction",
        function_app_resource_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-funcapp/providers/Microsoft.Web/sites/funcapp",
        function_name="myfunc",
        http_trigger_url="https://example.com/trigger",
        use_common_alert_schema=True,
    )],
    email_receivers=[
        azure.monitoring.ActionGroupEmailReceiverArgs(
            name="sendtoadmin",
            email_address="admin@contoso.com",
        ),
        azure.monitoring.ActionGroupEmailReceiverArgs(
            name="sendtodevops",
            email_address="devops@contoso.com",
            use_common_alert_schema=True,
        ),
    ],
    event_hub_receivers=[azure.monitoring.ActionGroupEventHubReceiverArgs(
        name="sendtoeventhub",
        event_hub_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-eventhub/providers/Microsoft.EventHub/namespaces/eventhubnamespace/eventhubs/eventhub1",
        use_common_alert_schema=False,
    )],
    itsm_receivers=[azure.monitoring.ActionGroupItsmReceiverArgs(
        name="createorupdateticket",
        workspace_id=example_analytics_workspace.workspace_id.apply(lambda workspace_id: f"{current.subscription_id}|{workspace_id}"),
        connection_id="53de6956-42b4-41ba-be3c-b154cdf17b13",
        ticket_configuration="{}",
        region="southcentralus",
    )],
    logic_app_receivers=[azure.monitoring.ActionGroupLogicAppReceiverArgs(
        name="logicappaction",
        resource_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-logicapp/providers/Microsoft.Logic/workflows/logicapp",
        callback_url="https://logicapptriggerurl/...",
        use_common_alert_schema=True,
    )],
    sms_receivers=[azure.monitoring.ActionGroupSmsReceiverArgs(
        name="oncallmsg",
        country_code="1",
        phone_number="1231231234",
    )],
    voice_receivers=[azure.monitoring.ActionGroupVoiceReceiverArgs(
        name="remotesupport",
        country_code="86",
        phone_number="13888888888",
    )],
    webhook_receivers=[azure.monitoring.ActionGroupWebhookReceiverArgs(
        name="callmyapiaswell",
        service_uri="http://example.com/alert",
        use_common_alert_schema=True,
    )])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const current = azure.core.getClientConfig({});
const exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("exampleAnalyticsWorkspace", {
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
});
const exampleActionGroup = new azure.monitoring.ActionGroup("exampleActionGroup", {
    resourceGroupName: exampleResourceGroup.name,
    shortName: "p0action",
    armRoleReceivers: [{
        name: "armroleaction",
        roleId: "de139f84-1756-47ae-9be6-808fbbe84772",
        useCommonAlertSchema: true,
    }],
    automationRunbookReceivers: [{
        name: "action_name_1",
        automationAccountId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-runbooks/providers/microsoft.automation/automationaccounts/aaa001",
        runbookName: "my runbook",
        webhookResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-runbooks/providers/microsoft.automation/automationaccounts/aaa001/webhooks/webhook_alert",
        isGlobalRunbook: true,
        serviceUri: "https://s13events.azure-automation.net/webhooks?token=randomtoken",
        useCommonAlertSchema: true,
    }],
    azureAppPushReceivers: [{
        name: "pushtoadmin",
        emailAddress: "admin@contoso.com",
    }],
    azureFunctionReceivers: [{
        name: "funcaction",
        functionAppResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-funcapp/providers/Microsoft.Web/sites/funcapp",
        functionName: "myfunc",
        httpTriggerUrl: "https://example.com/trigger",
        useCommonAlertSchema: true,
    }],
    emailReceivers: [
        {
            name: "sendtoadmin",
            emailAddress: "admin@contoso.com",
        },
        {
            name: "sendtodevops",
            emailAddress: "devops@contoso.com",
            useCommonAlertSchema: true,
        },
    ],
    eventHubReceivers: [{
        name: "sendtoeventhub",
        eventHubId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-eventhub/providers/Microsoft.EventHub/namespaces/eventhubnamespace/eventhubs/eventhub1",
        useCommonAlertSchema: false,
    }],
    itsmReceivers: [{
        name: "createorupdateticket",
        workspaceId: pulumi.all([current, exampleAnalyticsWorkspace.workspaceId]).apply(([current, workspaceId]) => `${current.subscriptionId}|${workspaceId}`),
        connectionId: "53de6956-42b4-41ba-be3c-b154cdf17b13",
        ticketConfiguration: "{}",
        region: "southcentralus",
    }],
    logicAppReceivers: [{
        name: "logicappaction",
        resourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-logicapp/providers/Microsoft.Logic/workflows/logicapp",
        callbackUrl: "https://logicapptriggerurl/...",
        useCommonAlertSchema: true,
    }],
    smsReceivers: [{
        name: "oncallmsg",
        countryCode: "1",
        phoneNumber: "1231231234",
    }],
    voiceReceivers: [{
        name: "remotesupport",
        countryCode: "86",
        phoneNumber: "13888888888",
    }],
    webhookReceivers: [{
        name: "callmyapiaswell",
        serviceUri: "http://example.com/alert",
        useCommonAlertSchema: true,
    }],
});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleAnalyticsWorkspace:
    type: azure:operationalinsights:AnalyticsWorkspace
    properties:
      location: ${exampleResourceGroup.location}
      resourceGroupName: ${exampleResourceGroup.name}
  exampleActionGroup:
    type: azure:monitoring:ActionGroup
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      shortName: p0action
      armRoleReceivers:
        - name: armroleaction
          roleId: de139f84-1756-47ae-9be6-808fbbe84772
          useCommonAlertSchema: true
      automationRunbookReceivers:
        - name: action_name_1
          automationAccountId: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-runbooks/providers/microsoft.automation/automationaccounts/aaa001
          runbookName: my runbook
          webhookResourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-runbooks/providers/microsoft.automation/automationaccounts/aaa001/webhooks/webhook_alert
          isGlobalRunbook: true
          serviceUri: https://s13events.azure-automation.net/webhooks?token=randomtoken
          useCommonAlertSchema: true
      azureAppPushReceivers:
        - name: pushtoadmin
          emailAddress: admin@contoso.com
      azureFunctionReceivers:
        - name: funcaction
          functionAppResourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-funcapp/providers/Microsoft.Web/sites/funcapp
          functionName: myfunc
          httpTriggerUrl: https://example.com/trigger
          useCommonAlertSchema: true
      emailReceivers:
        - name: sendtoadmin
          emailAddress: admin@contoso.com
        - name: sendtodevops
          emailAddress: devops@contoso.com
          useCommonAlertSchema: true
      eventHubReceivers:
        - name: sendtoeventhub
          eventHubId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-eventhub/providers/Microsoft.EventHub/namespaces/eventhubnamespace/eventhubs/eventhub1
          useCommonAlertSchema: false
      itsmReceivers:
        - name: createorupdateticket
          workspaceId: ${current.subscriptionId}|${exampleAnalyticsWorkspace.workspaceId}
          connectionId: 53de6956-42b4-41ba-be3c-b154cdf17b13
          ticketConfiguration: '{}'
          region: southcentralus
      logicAppReceivers:
        - name: logicappaction
          resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-logicapp/providers/Microsoft.Logic/workflows/logicapp
          callbackUrl: https://logicapptriggerurl/...
          useCommonAlertSchema: true
      smsReceivers:
        - name: oncallmsg
          countryCode: 1
          phoneNumber: 1231231234
      voiceReceivers:
        - name: remotesupport
          countryCode: 86
          phoneNumber: 13888888888
      webhookReceivers:
        - name: callmyapiaswell
          serviceUri: http://example.com/alert
          useCommonAlertSchema: true
variables:
  current:
    Fn::Invoke:
      Function: azure:core:getClientConfig
      Arguments: {}

Create a ActionGroup Resource

new ActionGroup(name: string, args: ActionGroupArgs, opts?: CustomResourceOptions);
@overload
def ActionGroup(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                arm_role_receivers: Optional[Sequence[ActionGroupArmRoleReceiverArgs]] = None,
                automation_runbook_receivers: Optional[Sequence[ActionGroupAutomationRunbookReceiverArgs]] = None,
                azure_app_push_receivers: Optional[Sequence[ActionGroupAzureAppPushReceiverArgs]] = None,
                azure_function_receivers: Optional[Sequence[ActionGroupAzureFunctionReceiverArgs]] = None,
                email_receivers: Optional[Sequence[ActionGroupEmailReceiverArgs]] = None,
                enabled: Optional[bool] = None,
                event_hub_receivers: Optional[Sequence[ActionGroupEventHubReceiverArgs]] = None,
                itsm_receivers: Optional[Sequence[ActionGroupItsmReceiverArgs]] = None,
                logic_app_receivers: Optional[Sequence[ActionGroupLogicAppReceiverArgs]] = None,
                name: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                short_name: Optional[str] = None,
                sms_receivers: Optional[Sequence[ActionGroupSmsReceiverArgs]] = None,
                tags: Optional[Mapping[str, str]] = None,
                voice_receivers: Optional[Sequence[ActionGroupVoiceReceiverArgs]] = None,
                webhook_receivers: Optional[Sequence[ActionGroupWebhookReceiverArgs]] = None)
@overload
def ActionGroup(resource_name: str,
                args: ActionGroupArgs,
                opts: Optional[ResourceOptions] = None)
func NewActionGroup(ctx *Context, name string, args ActionGroupArgs, opts ...ResourceOption) (*ActionGroup, error)
public ActionGroup(string name, ActionGroupArgs args, CustomResourceOptions? opts = null)
public ActionGroup(String name, ActionGroupArgs args)
public ActionGroup(String name, ActionGroupArgs args, CustomResourceOptions options)
type: azure:monitoring:ActionGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ActionGroupArgs
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 ActionGroupArgs
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 ActionGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ActionGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ActionGroupArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

ResourceGroupName string

The name of the resource group in which to create the Action Group instance.

ShortName string

The short name of the action group. This will be used in SMS messages.

ArmRoleReceivers List<ActionGroupArmRoleReceiverArgs>

One or more arm_role_receiver blocks as defined below.

AutomationRunbookReceivers List<ActionGroupAutomationRunbookReceiverArgs>

One or more automation_runbook_receiver blocks as defined below.

AzureAppPushReceivers List<ActionGroupAzureAppPushReceiverArgs>

One or more azure_app_push_receiver blocks as defined below.

AzureFunctionReceivers List<ActionGroupAzureFunctionReceiverArgs>

One or more azure_function_receiver blocks as defined below.

EmailReceivers List<ActionGroupEmailReceiverArgs>

One or more email_receiver blocks as defined below.

Enabled bool

Whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. Defaults to true.

EventHubReceivers List<ActionGroupEventHubReceiverArgs>

One or more event_hub_receiver blocks as defined below.

ItsmReceivers List<ActionGroupItsmReceiverArgs>

One or more itsm_receiver blocks as defined below.

LogicAppReceivers List<ActionGroupLogicAppReceiverArgs>

One or more logic_app_receiver blocks as defined below.

Name string

The name of the Action Group. Changing this forces a new resource to be created.

SmsReceivers List<ActionGroupSmsReceiverArgs>

One or more sms_receiver blocks as defined below.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource.

VoiceReceivers List<ActionGroupVoiceReceiverArgs>

One or more voice_receiver blocks as defined below.

WebhookReceivers List<ActionGroupWebhookReceiverArgs>

One or more webhook_receiver blocks as defined below.

ResourceGroupName string

The name of the resource group in which to create the Action Group instance.

ShortName string

The short name of the action group. This will be used in SMS messages.

ArmRoleReceivers []ActionGroupArmRoleReceiverArgs

One or more arm_role_receiver blocks as defined below.

AutomationRunbookReceivers []ActionGroupAutomationRunbookReceiverArgs

One or more automation_runbook_receiver blocks as defined below.

AzureAppPushReceivers []ActionGroupAzureAppPushReceiverArgs

One or more azure_app_push_receiver blocks as defined below.

AzureFunctionReceivers []ActionGroupAzureFunctionReceiverArgs

One or more azure_function_receiver blocks as defined below.

EmailReceivers []ActionGroupEmailReceiverArgs

One or more email_receiver blocks as defined below.

Enabled bool

Whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. Defaults to true.

EventHubReceivers []ActionGroupEventHubReceiverArgs

One or more event_hub_receiver blocks as defined below.

ItsmReceivers []ActionGroupItsmReceiverArgs

One or more itsm_receiver blocks as defined below.

LogicAppReceivers []ActionGroupLogicAppReceiverArgs

One or more logic_app_receiver blocks as defined below.

Name string

The name of the Action Group. Changing this forces a new resource to be created.

SmsReceivers []ActionGroupSmsReceiverArgs

One or more sms_receiver blocks as defined below.

Tags map[string]string

A mapping of tags to assign to the resource.

VoiceReceivers []ActionGroupVoiceReceiverArgs

One or more voice_receiver blocks as defined below.

WebhookReceivers []ActionGroupWebhookReceiverArgs

One or more webhook_receiver blocks as defined below.

resourceGroupName String

The name of the resource group in which to create the Action Group instance.

shortName String

The short name of the action group. This will be used in SMS messages.

armRoleReceivers List<ActionGroupArmRoleReceiverArgs>

One or more arm_role_receiver blocks as defined below.

automationRunbookReceivers List<ActionGroupAutomationRunbookReceiverArgs>

One or more automation_runbook_receiver blocks as defined below.

azureAppPushReceivers List<ActionGroupAzureAppPushReceiverArgs>

One or more azure_app_push_receiver blocks as defined below.

azureFunctionReceivers List<ActionGroupAzureFunctionReceiverArgs>

One or more azure_function_receiver blocks as defined below.

emailReceivers List<ActionGroupEmailReceiverArgs>

One or more email_receiver blocks as defined below.

enabled Boolean

Whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. Defaults to true.

eventHubReceivers List<ActionGroupEventHubReceiverArgs>

One or more event_hub_receiver blocks as defined below.

itsmReceivers List<ActionGroupItsmReceiverArgs>

One or more itsm_receiver blocks as defined below.

logicAppReceivers List<ActionGroupLogicAppReceiverArgs>

One or more logic_app_receiver blocks as defined below.

name String

The name of the Action Group. Changing this forces a new resource to be created.

smsReceivers List<ActionGroupSmsReceiverArgs>

One or more sms_receiver blocks as defined below.

tags Map<String,String>

A mapping of tags to assign to the resource.

voiceReceivers List<ActionGroupVoiceReceiverArgs>

One or more voice_receiver blocks as defined below.

webhookReceivers List<ActionGroupWebhookReceiverArgs>

One or more webhook_receiver blocks as defined below.

resourceGroupName string

The name of the resource group in which to create the Action Group instance.

shortName string

The short name of the action group. This will be used in SMS messages.

armRoleReceivers ActionGroupArmRoleReceiverArgs[]

One or more arm_role_receiver blocks as defined below.

automationRunbookReceivers ActionGroupAutomationRunbookReceiverArgs[]

One or more automation_runbook_receiver blocks as defined below.

azureAppPushReceivers ActionGroupAzureAppPushReceiverArgs[]

One or more azure_app_push_receiver blocks as defined below.

azureFunctionReceivers ActionGroupAzureFunctionReceiverArgs[]

One or more azure_function_receiver blocks as defined below.

emailReceivers ActionGroupEmailReceiverArgs[]

One or more email_receiver blocks as defined below.

enabled boolean

Whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. Defaults to true.

eventHubReceivers ActionGroupEventHubReceiverArgs[]

One or more event_hub_receiver blocks as defined below.

itsmReceivers ActionGroupItsmReceiverArgs[]

One or more itsm_receiver blocks as defined below.

logicAppReceivers ActionGroupLogicAppReceiverArgs[]

One or more logic_app_receiver blocks as defined below.

name string

The name of the Action Group. Changing this forces a new resource to be created.

smsReceivers ActionGroupSmsReceiverArgs[]

One or more sms_receiver blocks as defined below.

tags {[key: string]: string}

A mapping of tags to assign to the resource.

voiceReceivers ActionGroupVoiceReceiverArgs[]

One or more voice_receiver blocks as defined below.

webhookReceivers ActionGroupWebhookReceiverArgs[]

One or more webhook_receiver blocks as defined below.

resource_group_name str

The name of the resource group in which to create the Action Group instance.

short_name str

The short name of the action group. This will be used in SMS messages.

arm_role_receivers Sequence[ActionGroupArmRoleReceiverArgs]

One or more arm_role_receiver blocks as defined below.

automation_runbook_receivers Sequence[ActionGroupAutomationRunbookReceiverArgs]

One or more automation_runbook_receiver blocks as defined below.

azure_app_push_receivers Sequence[ActionGroupAzureAppPushReceiverArgs]

One or more azure_app_push_receiver blocks as defined below.

azure_function_receivers Sequence[ActionGroupAzureFunctionReceiverArgs]

One or more azure_function_receiver blocks as defined below.

email_receivers Sequence[ActionGroupEmailReceiverArgs]

One or more email_receiver blocks as defined below.

enabled bool

Whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. Defaults to true.

event_hub_receivers Sequence[ActionGroupEventHubReceiverArgs]

One or more event_hub_receiver blocks as defined below.

itsm_receivers Sequence[ActionGroupItsmReceiverArgs]

One or more itsm_receiver blocks as defined below.

logic_app_receivers Sequence[ActionGroupLogicAppReceiverArgs]

One or more logic_app_receiver blocks as defined below.

name str

The name of the Action Group. Changing this forces a new resource to be created.

sms_receivers Sequence[ActionGroupSmsReceiverArgs]

One or more sms_receiver blocks as defined below.

tags Mapping[str, str]

A mapping of tags to assign to the resource.

voice_receivers Sequence[ActionGroupVoiceReceiverArgs]

One or more voice_receiver blocks as defined below.

webhook_receivers Sequence[ActionGroupWebhookReceiverArgs]

One or more webhook_receiver blocks as defined below.

resourceGroupName String

The name of the resource group in which to create the Action Group instance.

shortName String

The short name of the action group. This will be used in SMS messages.

armRoleReceivers List<Property Map>

One or more arm_role_receiver blocks as defined below.

automationRunbookReceivers List<Property Map>

One or more automation_runbook_receiver blocks as defined below.

azureAppPushReceivers List<Property Map>

One or more azure_app_push_receiver blocks as defined below.

azureFunctionReceivers List<Property Map>

One or more azure_function_receiver blocks as defined below.

emailReceivers List<Property Map>

One or more email_receiver blocks as defined below.

enabled Boolean

Whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. Defaults to true.

eventHubReceivers List<Property Map>

One or more event_hub_receiver blocks as defined below.

itsmReceivers List<Property Map>

One or more itsm_receiver blocks as defined below.

logicAppReceivers List<Property Map>

One or more logic_app_receiver blocks as defined below.

name String

The name of the Action Group. Changing this forces a new resource to be created.

smsReceivers List<Property Map>

One or more sms_receiver blocks as defined below.

tags Map<String>

A mapping of tags to assign to the resource.

voiceReceivers List<Property Map>

One or more voice_receiver blocks as defined below.

webhookReceivers List<Property Map>

One or more webhook_receiver blocks as defined below.

Outputs

All input properties are implicitly available as output properties. Additionally, the ActionGroup 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 an Existing ActionGroup Resource

Get an existing ActionGroup 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?: ActionGroupState, opts?: CustomResourceOptions): ActionGroup
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arm_role_receivers: Optional[Sequence[ActionGroupArmRoleReceiverArgs]] = None,
        automation_runbook_receivers: Optional[Sequence[ActionGroupAutomationRunbookReceiverArgs]] = None,
        azure_app_push_receivers: Optional[Sequence[ActionGroupAzureAppPushReceiverArgs]] = None,
        azure_function_receivers: Optional[Sequence[ActionGroupAzureFunctionReceiverArgs]] = None,
        email_receivers: Optional[Sequence[ActionGroupEmailReceiverArgs]] = None,
        enabled: Optional[bool] = None,
        event_hub_receivers: Optional[Sequence[ActionGroupEventHubReceiverArgs]] = None,
        itsm_receivers: Optional[Sequence[ActionGroupItsmReceiverArgs]] = None,
        logic_app_receivers: Optional[Sequence[ActionGroupLogicAppReceiverArgs]] = None,
        name: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        short_name: Optional[str] = None,
        sms_receivers: Optional[Sequence[ActionGroupSmsReceiverArgs]] = None,
        tags: Optional[Mapping[str, str]] = None,
        voice_receivers: Optional[Sequence[ActionGroupVoiceReceiverArgs]] = None,
        webhook_receivers: Optional[Sequence[ActionGroupWebhookReceiverArgs]] = None) -> ActionGroup
func GetActionGroup(ctx *Context, name string, id IDInput, state *ActionGroupState, opts ...ResourceOption) (*ActionGroup, error)
public static ActionGroup Get(string name, Input<string> id, ActionGroupState? state, CustomResourceOptions? opts = null)
public static ActionGroup get(String name, Output<String> id, ActionGroupState 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.
The following state arguments are supported:
ArmRoleReceivers List<ActionGroupArmRoleReceiverArgs>

One or more arm_role_receiver blocks as defined below.

AutomationRunbookReceivers List<ActionGroupAutomationRunbookReceiverArgs>

One or more automation_runbook_receiver blocks as defined below.

AzureAppPushReceivers List<ActionGroupAzureAppPushReceiverArgs>

One or more azure_app_push_receiver blocks as defined below.

AzureFunctionReceivers List<ActionGroupAzureFunctionReceiverArgs>

One or more azure_function_receiver blocks as defined below.

EmailReceivers List<ActionGroupEmailReceiverArgs>

One or more email_receiver blocks as defined below.

Enabled bool

Whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. Defaults to true.

EventHubReceivers List<ActionGroupEventHubReceiverArgs>

One or more event_hub_receiver blocks as defined below.

ItsmReceivers List<ActionGroupItsmReceiverArgs>

One or more itsm_receiver blocks as defined below.

LogicAppReceivers List<ActionGroupLogicAppReceiverArgs>

One or more logic_app_receiver blocks as defined below.

Name string

The name of the Action Group. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group in which to create the Action Group instance.

ShortName string

The short name of the action group. This will be used in SMS messages.

SmsReceivers List<ActionGroupSmsReceiverArgs>

One or more sms_receiver blocks as defined below.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource.

VoiceReceivers List<ActionGroupVoiceReceiverArgs>

One or more voice_receiver blocks as defined below.

WebhookReceivers List<ActionGroupWebhookReceiverArgs>

One or more webhook_receiver blocks as defined below.

ArmRoleReceivers []ActionGroupArmRoleReceiverArgs

One or more arm_role_receiver blocks as defined below.

AutomationRunbookReceivers []ActionGroupAutomationRunbookReceiverArgs

One or more automation_runbook_receiver blocks as defined below.

AzureAppPushReceivers []ActionGroupAzureAppPushReceiverArgs

One or more azure_app_push_receiver blocks as defined below.

AzureFunctionReceivers []ActionGroupAzureFunctionReceiverArgs

One or more azure_function_receiver blocks as defined below.

EmailReceivers []ActionGroupEmailReceiverArgs

One or more email_receiver blocks as defined below.

Enabled bool

Whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. Defaults to true.

EventHubReceivers []ActionGroupEventHubReceiverArgs

One or more event_hub_receiver blocks as defined below.

ItsmReceivers []ActionGroupItsmReceiverArgs

One or more itsm_receiver blocks as defined below.

LogicAppReceivers []ActionGroupLogicAppReceiverArgs

One or more logic_app_receiver blocks as defined below.

Name string

The name of the Action Group. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group in which to create the Action Group instance.

ShortName string

The short name of the action group. This will be used in SMS messages.

SmsReceivers []ActionGroupSmsReceiverArgs

One or more sms_receiver blocks as defined below.

Tags map[string]string

A mapping of tags to assign to the resource.

VoiceReceivers []ActionGroupVoiceReceiverArgs

One or more voice_receiver blocks as defined below.

WebhookReceivers []ActionGroupWebhookReceiverArgs

One or more webhook_receiver blocks as defined below.

armRoleReceivers List<ActionGroupArmRoleReceiverArgs>

One or more arm_role_receiver blocks as defined below.

automationRunbookReceivers List<ActionGroupAutomationRunbookReceiverArgs>

One or more automation_runbook_receiver blocks as defined below.

azureAppPushReceivers List<ActionGroupAzureAppPushReceiverArgs>

One or more azure_app_push_receiver blocks as defined below.

azureFunctionReceivers List<ActionGroupAzureFunctionReceiverArgs>

One or more azure_function_receiver blocks as defined below.

emailReceivers List<ActionGroupEmailReceiverArgs>

One or more email_receiver blocks as defined below.

enabled Boolean

Whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. Defaults to true.

eventHubReceivers List<ActionGroupEventHubReceiverArgs>

One or more event_hub_receiver blocks as defined below.

itsmReceivers List<ActionGroupItsmReceiverArgs>

One or more itsm_receiver blocks as defined below.

logicAppReceivers List<ActionGroupLogicAppReceiverArgs>

One or more logic_app_receiver blocks as defined below.

name String

The name of the Action Group. Changing this forces a new resource to be created.

resourceGroupName String

The name of the resource group in which to create the Action Group instance.

shortName String

The short name of the action group. This will be used in SMS messages.

smsReceivers List<ActionGroupSmsReceiverArgs>

One or more sms_receiver blocks as defined below.

tags Map<String,String>

A mapping of tags to assign to the resource.

voiceReceivers List<ActionGroupVoiceReceiverArgs>

One or more voice_receiver blocks as defined below.

webhookReceivers List<ActionGroupWebhookReceiverArgs>

One or more webhook_receiver blocks as defined below.

armRoleReceivers ActionGroupArmRoleReceiverArgs[]

One or more arm_role_receiver blocks as defined below.

automationRunbookReceivers ActionGroupAutomationRunbookReceiverArgs[]

One or more automation_runbook_receiver blocks as defined below.

azureAppPushReceivers ActionGroupAzureAppPushReceiverArgs[]

One or more azure_app_push_receiver blocks as defined below.

azureFunctionReceivers ActionGroupAzureFunctionReceiverArgs[]

One or more azure_function_receiver blocks as defined below.

emailReceivers ActionGroupEmailReceiverArgs[]

One or more email_receiver blocks as defined below.

enabled boolean

Whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. Defaults to true.

eventHubReceivers ActionGroupEventHubReceiverArgs[]

One or more event_hub_receiver blocks as defined below.

itsmReceivers ActionGroupItsmReceiverArgs[]

One or more itsm_receiver blocks as defined below.

logicAppReceivers ActionGroupLogicAppReceiverArgs[]

One or more logic_app_receiver blocks as defined below.

name string

The name of the Action Group. Changing this forces a new resource to be created.

resourceGroupName string

The name of the resource group in which to create the Action Group instance.

shortName string

The short name of the action group. This will be used in SMS messages.

smsReceivers ActionGroupSmsReceiverArgs[]

One or more sms_receiver blocks as defined below.

tags {[key: string]: string}

A mapping of tags to assign to the resource.

voiceReceivers ActionGroupVoiceReceiverArgs[]

One or more voice_receiver blocks as defined below.

webhookReceivers ActionGroupWebhookReceiverArgs[]

One or more webhook_receiver blocks as defined below.

arm_role_receivers Sequence[ActionGroupArmRoleReceiverArgs]

One or more arm_role_receiver blocks as defined below.

automation_runbook_receivers Sequence[ActionGroupAutomationRunbookReceiverArgs]

One or more automation_runbook_receiver blocks as defined below.

azure_app_push_receivers Sequence[ActionGroupAzureAppPushReceiverArgs]

One or more azure_app_push_receiver blocks as defined below.

azure_function_receivers Sequence[ActionGroupAzureFunctionReceiverArgs]

One or more azure_function_receiver blocks as defined below.

email_receivers Sequence[ActionGroupEmailReceiverArgs]

One or more email_receiver blocks as defined below.

enabled bool

Whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. Defaults to true.

event_hub_receivers Sequence[ActionGroupEventHubReceiverArgs]

One or more event_hub_receiver blocks as defined below.

itsm_receivers Sequence[ActionGroupItsmReceiverArgs]

One or more itsm_receiver blocks as defined below.

logic_app_receivers Sequence[ActionGroupLogicAppReceiverArgs]

One or more logic_app_receiver blocks as defined below.

name str

The name of the Action Group. Changing this forces a new resource to be created.

resource_group_name str

The name of the resource group in which to create the Action Group instance.

short_name str

The short name of the action group. This will be used in SMS messages.

sms_receivers Sequence[ActionGroupSmsReceiverArgs]

One or more sms_receiver blocks as defined below.

tags Mapping[str, str]

A mapping of tags to assign to the resource.

voice_receivers Sequence[ActionGroupVoiceReceiverArgs]

One or more voice_receiver blocks as defined below.

webhook_receivers Sequence[ActionGroupWebhookReceiverArgs]

One or more webhook_receiver blocks as defined below.

armRoleReceivers List<Property Map>

One or more arm_role_receiver blocks as defined below.

automationRunbookReceivers List<Property Map>

One or more automation_runbook_receiver blocks as defined below.

azureAppPushReceivers List<Property Map>

One or more azure_app_push_receiver blocks as defined below.

azureFunctionReceivers List<Property Map>

One or more azure_function_receiver blocks as defined below.

emailReceivers List<Property Map>

One or more email_receiver blocks as defined below.

enabled Boolean

Whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. Defaults to true.

eventHubReceivers List<Property Map>

One or more event_hub_receiver blocks as defined below.

itsmReceivers List<Property Map>

One or more itsm_receiver blocks as defined below.

logicAppReceivers List<Property Map>

One or more logic_app_receiver blocks as defined below.

name String

The name of the Action Group. Changing this forces a new resource to be created.

resourceGroupName String

The name of the resource group in which to create the Action Group instance.

shortName String

The short name of the action group. This will be used in SMS messages.

smsReceivers List<Property Map>

One or more sms_receiver blocks as defined below.

tags Map<String>

A mapping of tags to assign to the resource.

voiceReceivers List<Property Map>

One or more voice_receiver blocks as defined below.

webhookReceivers List<Property Map>

One or more webhook_receiver blocks as defined below.

Supporting Types

ActionGroupArmRoleReceiver

Name string

The name of the ARM role receiver.

RoleId string

The arm role id.

UseCommonAlertSchema bool

Enables or disables the common alert schema.

Name string

The name of the ARM role receiver.

RoleId string

The arm role id.

UseCommonAlertSchema bool

Enables or disables the common alert schema.

name String

The name of the ARM role receiver.

roleId String

The arm role id.

useCommonAlertSchema Boolean

Enables or disables the common alert schema.

name string

The name of the ARM role receiver.

roleId string

The arm role id.

useCommonAlertSchema boolean

Enables or disables the common alert schema.

name str

The name of the ARM role receiver.

role_id str

The arm role id.

use_common_alert_schema bool

Enables or disables the common alert schema.

name String

The name of the ARM role receiver.

roleId String

The arm role id.

useCommonAlertSchema Boolean

Enables or disables the common alert schema.

ActionGroupAutomationRunbookReceiver

AutomationAccountId string

The automation account ID which holds this runbook and authenticates to Azure resources.

IsGlobalRunbook bool

Indicates whether this instance is global runbook.

Name string

The name of the automation runbook receiver.

RunbookName string

The name for this runbook.

ServiceUri string

The URI where webhooks should be sent.

WebhookResourceId string

The resource id for webhook linked to this runbook.

UseCommonAlertSchema bool

Enables or disables the common alert schema.

AutomationAccountId string

The automation account ID which holds this runbook and authenticates to Azure resources.

IsGlobalRunbook bool

Indicates whether this instance is global runbook.

Name string

The name of the automation runbook receiver.

RunbookName string

The name for this runbook.

ServiceUri string

The URI where webhooks should be sent.

WebhookResourceId string

The resource id for webhook linked to this runbook.

UseCommonAlertSchema bool

Enables or disables the common alert schema.

automationAccountId String

The automation account ID which holds this runbook and authenticates to Azure resources.

isGlobalRunbook Boolean

Indicates whether this instance is global runbook.

name String

The name of the automation runbook receiver.

runbookName String

The name for this runbook.

serviceUri String

The URI where webhooks should be sent.

webhookResourceId String

The resource id for webhook linked to this runbook.

useCommonAlertSchema Boolean

Enables or disables the common alert schema.

automationAccountId string

The automation account ID which holds this runbook and authenticates to Azure resources.

isGlobalRunbook boolean

Indicates whether this instance is global runbook.

name string

The name of the automation runbook receiver.

runbookName string

The name for this runbook.

serviceUri string

The URI where webhooks should be sent.

webhookResourceId string

The resource id for webhook linked to this runbook.

useCommonAlertSchema boolean

Enables or disables the common alert schema.

automation_account_id str

The automation account ID which holds this runbook and authenticates to Azure resources.

is_global_runbook bool

Indicates whether this instance is global runbook.

name str

The name of the automation runbook receiver.

runbook_name str

The name for this runbook.

service_uri str

The URI where webhooks should be sent.

webhook_resource_id str

The resource id for webhook linked to this runbook.

use_common_alert_schema bool

Enables or disables the common alert schema.

automationAccountId String

The automation account ID which holds this runbook and authenticates to Azure resources.

isGlobalRunbook Boolean

Indicates whether this instance is global runbook.

name String

The name of the automation runbook receiver.

runbookName String

The name for this runbook.

serviceUri String

The URI where webhooks should be sent.

webhookResourceId String

The resource id for webhook linked to this runbook.

useCommonAlertSchema Boolean

Enables or disables the common alert schema.

ActionGroupAzureAppPushReceiver

EmailAddress string

The email address of the user signed into the mobile app who will receive push notifications from this receiver.

Name string

The name of the Azure app push receiver.

EmailAddress string

The email address of the user signed into the mobile app who will receive push notifications from this receiver.

Name string

The name of the Azure app push receiver.

emailAddress String

The email address of the user signed into the mobile app who will receive push notifications from this receiver.

name String

The name of the Azure app push receiver.

emailAddress string

The email address of the user signed into the mobile app who will receive push notifications from this receiver.

name string

The name of the Azure app push receiver.

email_address str

The email address of the user signed into the mobile app who will receive push notifications from this receiver.

name str

The name of the Azure app push receiver.

emailAddress String

The email address of the user signed into the mobile app who will receive push notifications from this receiver.

name String

The name of the Azure app push receiver.

ActionGroupAzureFunctionReceiver

FunctionAppResourceId string

The Azure resource ID of the function app.

FunctionName string

The function name in the function app.

HttpTriggerUrl string

The HTTP trigger url where HTTP request sent to.

Name string

The name of the Azure Function receiver.

UseCommonAlertSchema bool

Enables or disables the common alert schema.

FunctionAppResourceId string

The Azure resource ID of the function app.

FunctionName string

The function name in the function app.

HttpTriggerUrl string

The HTTP trigger url where HTTP request sent to.

Name string

The name of the Azure Function receiver.

UseCommonAlertSchema bool

Enables or disables the common alert schema.

functionAppResourceId String

The Azure resource ID of the function app.

functionName String

The function name in the function app.

httpTriggerUrl String

The HTTP trigger url where HTTP request sent to.

name String

The name of the Azure Function receiver.

useCommonAlertSchema Boolean

Enables or disables the common alert schema.

functionAppResourceId string

The Azure resource ID of the function app.

functionName string

The function name in the function app.

httpTriggerUrl string

The HTTP trigger url where HTTP request sent to.

name string

The name of the Azure Function receiver.

useCommonAlertSchema boolean

Enables or disables the common alert schema.

function_app_resource_id str

The Azure resource ID of the function app.

function_name str

The function name in the function app.

http_trigger_url str

The HTTP trigger url where HTTP request sent to.

name str

The name of the Azure Function receiver.

use_common_alert_schema bool

Enables or disables the common alert schema.

functionAppResourceId String

The Azure resource ID of the function app.

functionName String

The function name in the function app.

httpTriggerUrl String

The HTTP trigger url where HTTP request sent to.

name String

The name of the Azure Function receiver.

useCommonAlertSchema Boolean

Enables or disables the common alert schema.

ActionGroupEmailReceiver

EmailAddress string

The email address of this receiver.

Name string

The name of the email receiver. Names must be unique (case-insensitive) across all receivers within an action group.

UseCommonAlertSchema bool

Enables or disables the common alert schema.

EmailAddress string

The email address of this receiver.

Name string

The name of the email receiver. Names must be unique (case-insensitive) across all receivers within an action group.

UseCommonAlertSchema bool

Enables or disables the common alert schema.

emailAddress String

The email address of this receiver.

name String

The name of the email receiver. Names must be unique (case-insensitive) across all receivers within an action group.

useCommonAlertSchema Boolean

Enables or disables the common alert schema.

emailAddress string

The email address of this receiver.

name string

The name of the email receiver. Names must be unique (case-insensitive) across all receivers within an action group.

useCommonAlertSchema boolean

Enables or disables the common alert schema.

email_address str

The email address of this receiver.

name str

The name of the email receiver. Names must be unique (case-insensitive) across all receivers within an action group.

use_common_alert_schema bool

Enables or disables the common alert schema.

emailAddress String

The email address of this receiver.

name String

The name of the email receiver. Names must be unique (case-insensitive) across all receivers within an action group.

useCommonAlertSchema Boolean

Enables or disables the common alert schema.

ActionGroupEventHubReceiver

EventHubId string

The resource ID of the respective Event Hub.

Name string

The name of the EventHub Receiver, must be unique within action group.

TenantId string

The Tenant ID for the subscription containing this Event Hub.

UseCommonAlertSchema bool

Indicates whether to use common alert schema.

EventHubId string

The resource ID of the respective Event Hub.

Name string

The name of the EventHub Receiver, must be unique within action group.

TenantId string

The Tenant ID for the subscription containing this Event Hub.

UseCommonAlertSchema bool

Indicates whether to use common alert schema.

eventHubId String

The resource ID of the respective Event Hub.

name String

The name of the EventHub Receiver, must be unique within action group.

tenantId String

The Tenant ID for the subscription containing this Event Hub.

useCommonAlertSchema Boolean

Indicates whether to use common alert schema.

eventHubId string

The resource ID of the respective Event Hub.

name string

The name of the EventHub Receiver, must be unique within action group.

tenantId string

The Tenant ID for the subscription containing this Event Hub.

useCommonAlertSchema boolean

Indicates whether to use common alert schema.

event_hub_id str

The resource ID of the respective Event Hub.

name str

The name of the EventHub Receiver, must be unique within action group.

tenant_id str

The Tenant ID for the subscription containing this Event Hub.

use_common_alert_schema bool

Indicates whether to use common alert schema.

eventHubId String

The resource ID of the respective Event Hub.

name String

The name of the EventHub Receiver, must be unique within action group.

tenantId String

The Tenant ID for the subscription containing this Event Hub.

useCommonAlertSchema Boolean

Indicates whether to use common alert schema.

ActionGroupItsmReceiver

ConnectionId string

The unique connection identifier of the ITSM connection.

Name string

The name of the ITSM receiver.

Region string

The region of the workspace.

TicketConfiguration string

A JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well.

WorkspaceId string

The Azure Log Analytics workspace ID where this connection is defined. Format is <subscription id>|<workspace id>, for example 00000000-0000-0000-0000-000000000000|00000000-0000-0000-0000-000000000000.

ConnectionId string

The unique connection identifier of the ITSM connection.

Name string

The name of the ITSM receiver.

Region string

The region of the workspace.

TicketConfiguration string

A JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well.

WorkspaceId string

The Azure Log Analytics workspace ID where this connection is defined. Format is <subscription id>|<workspace id>, for example 00000000-0000-0000-0000-000000000000|00000000-0000-0000-0000-000000000000.

connectionId String

The unique connection identifier of the ITSM connection.

name String

The name of the ITSM receiver.

region String

The region of the workspace.

ticketConfiguration String

A JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well.

workspaceId String

The Azure Log Analytics workspace ID where this connection is defined. Format is <subscription id>|<workspace id>, for example 00000000-0000-0000-0000-000000000000|00000000-0000-0000-0000-000000000000.

connectionId string

The unique connection identifier of the ITSM connection.

name string

The name of the ITSM receiver.

region string

The region of the workspace.

ticketConfiguration string

A JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well.

workspaceId string

The Azure Log Analytics workspace ID where this connection is defined. Format is <subscription id>|<workspace id>, for example 00000000-0000-0000-0000-000000000000|00000000-0000-0000-0000-000000000000.

connection_id str

The unique connection identifier of the ITSM connection.

name str

The name of the ITSM receiver.

region str

The region of the workspace.

ticket_configuration str

A JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well.

workspace_id str

The Azure Log Analytics workspace ID where this connection is defined. Format is <subscription id>|<workspace id>, for example 00000000-0000-0000-0000-000000000000|00000000-0000-0000-0000-000000000000.

connectionId String

The unique connection identifier of the ITSM connection.

name String

The name of the ITSM receiver.

region String

The region of the workspace.

ticketConfiguration String

A JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well.

workspaceId String

The Azure Log Analytics workspace ID where this connection is defined. Format is <subscription id>|<workspace id>, for example 00000000-0000-0000-0000-000000000000|00000000-0000-0000-0000-000000000000.

ActionGroupLogicAppReceiver

CallbackUrl string

The callback url where HTTP request sent to.

Name string

The name of the logic app receiver.

ResourceId string

The Azure resource ID of the logic app.

UseCommonAlertSchema bool

Enables or disables the common alert schema.

CallbackUrl string

The callback url where HTTP request sent to.

Name string

The name of the logic app receiver.

ResourceId string

The Azure resource ID of the logic app.

UseCommonAlertSchema bool

Enables or disables the common alert schema.

callbackUrl String

The callback url where HTTP request sent to.

name String

The name of the logic app receiver.

resourceId String

The Azure resource ID of the logic app.

useCommonAlertSchema Boolean

Enables or disables the common alert schema.

callbackUrl string

The callback url where HTTP request sent to.

name string

The name of the logic app receiver.

resourceId string

The Azure resource ID of the logic app.

useCommonAlertSchema boolean

Enables or disables the common alert schema.

callback_url str

The callback url where HTTP request sent to.

name str

The name of the logic app receiver.

resource_id str

The Azure resource ID of the logic app.

use_common_alert_schema bool

Enables or disables the common alert schema.

callbackUrl String

The callback url where HTTP request sent to.

name String

The name of the logic app receiver.

resourceId String

The Azure resource ID of the logic app.

useCommonAlertSchema Boolean

Enables or disables the common alert schema.

ActionGroupSmsReceiver

CountryCode string

The country code of the SMS receiver.

Name string

The name of the SMS receiver. Names must be unique (case-insensitive) across all receivers within an action group.

PhoneNumber string

The phone number of the SMS receiver.

CountryCode string

The country code of the SMS receiver.

Name string

The name of the SMS receiver. Names must be unique (case-insensitive) across all receivers within an action group.

PhoneNumber string

The phone number of the SMS receiver.

countryCode String

The country code of the SMS receiver.

name String

The name of the SMS receiver. Names must be unique (case-insensitive) across all receivers within an action group.

phoneNumber String

The phone number of the SMS receiver.

countryCode string

The country code of the SMS receiver.

name string

The name of the SMS receiver. Names must be unique (case-insensitive) across all receivers within an action group.

phoneNumber string

The phone number of the SMS receiver.

country_code str

The country code of the SMS receiver.

name str

The name of the SMS receiver. Names must be unique (case-insensitive) across all receivers within an action group.

phone_number str

The phone number of the SMS receiver.

countryCode String

The country code of the SMS receiver.

name String

The name of the SMS receiver. Names must be unique (case-insensitive) across all receivers within an action group.

phoneNumber String

The phone number of the SMS receiver.

ActionGroupVoiceReceiver

CountryCode string

The country code of the voice receiver.

Name string

The name of the voice receiver.

PhoneNumber string

The phone number of the voice receiver.

CountryCode string

The country code of the voice receiver.

Name string

The name of the voice receiver.

PhoneNumber string

The phone number of the voice receiver.

countryCode String

The country code of the voice receiver.

name String

The name of the voice receiver.

phoneNumber String

The phone number of the voice receiver.

countryCode string

The country code of the voice receiver.

name string

The name of the voice receiver.

phoneNumber string

The phone number of the voice receiver.

country_code str

The country code of the voice receiver.

name str

The name of the voice receiver.

phone_number str

The phone number of the voice receiver.

countryCode String

The country code of the voice receiver.

name String

The name of the voice receiver.

phoneNumber String

The phone number of the voice receiver.

ActionGroupWebhookReceiver

Name string

The name of the webhook receiver. Names must be unique (case-insensitive) across all receivers within an action group.

ServiceUri string

The URI where webhooks should be sent.

AadAuth ActionGroupWebhookReceiverAadAuth

The aad_auth block as defined below

UseCommonAlertSchema bool

Enables or disables the common alert schema.

Name string

The name of the webhook receiver. Names must be unique (case-insensitive) across all receivers within an action group.

ServiceUri string

The URI where webhooks should be sent.

AadAuth ActionGroupWebhookReceiverAadAuth

The aad_auth block as defined below

UseCommonAlertSchema bool

Enables or disables the common alert schema.

name String

The name of the webhook receiver. Names must be unique (case-insensitive) across all receivers within an action group.

serviceUri String

The URI where webhooks should be sent.

aadAuth ActionGroupWebhookReceiverAadAuth

The aad_auth block as defined below

useCommonAlertSchema Boolean

Enables or disables the common alert schema.

name string

The name of the webhook receiver. Names must be unique (case-insensitive) across all receivers within an action group.

serviceUri string

The URI where webhooks should be sent.

aadAuth ActionGroupWebhookReceiverAadAuth

The aad_auth block as defined below

useCommonAlertSchema boolean

Enables or disables the common alert schema.

name str

The name of the webhook receiver. Names must be unique (case-insensitive) across all receivers within an action group.

service_uri str

The URI where webhooks should be sent.

aad_auth ActionGroupWebhookReceiverAadAuth

The aad_auth block as defined below

use_common_alert_schema bool

Enables or disables the common alert schema.

name String

The name of the webhook receiver. Names must be unique (case-insensitive) across all receivers within an action group.

serviceUri String

The URI where webhooks should be sent.

aadAuth Property Map

The aad_auth block as defined below

useCommonAlertSchema Boolean

Enables or disables the common alert schema.

ActionGroupWebhookReceiverAadAuth

ObjectId string

The webhook application object Id for AAD auth.

IdentifierUri string

The identifier URI for AAD auth.

TenantId string

The tenant id for AAD auth.

ObjectId string

The webhook application object Id for AAD auth.

IdentifierUri string

The identifier URI for AAD auth.

TenantId string

The tenant id for AAD auth.

objectId String

The webhook application object Id for AAD auth.

identifierUri String

The identifier URI for AAD auth.

tenantId String

The tenant id for AAD auth.

objectId string

The webhook application object Id for AAD auth.

identifierUri string

The identifier URI for AAD auth.

tenantId string

The tenant id for AAD auth.

object_id str

The webhook application object Id for AAD auth.

identifier_uri str

The identifier URI for AAD auth.

tenant_id str

The tenant id for AAD auth.

objectId String

The webhook application object Id for AAD auth.

identifierUri String

The identifier URI for AAD auth.

tenantId String

The tenant id for AAD auth.

Import

Action Groups can be imported using the resource id, e.g.

 $ pulumi import azure:monitoring/actionGroup:ActionGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Insights/actionGroups/myagname

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.