Skip to main content

action_groups

Creates, updates, deletes, gets or lists a action_groups resource.

Overview

Nameaction_groups
TypeResource
Idazure.monitor.action_groups

Fields

NameDatatypeDescription
idtextThe resource Id.
nametextThe name of the resource.
actionGroupNametextfield from the properties object
action_group_idtextfield from the properties object
locationtextThe location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextThe tags of the resource.
typetextThe type of the resource.
webhook_propertiestextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTactionGroupName, resourceGroupName, subscriptionIdGet an action group.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGet a list of all action groups in a resource group.
list_by_subscription_idSELECTsubscriptionIdGet a list of all action groups in a subscription.
create_or_updateINSERTactionGroupName, resourceGroupName, subscriptionIdCreate a new action group or update an existing one.
deleteDELETEactionGroupName, resourceGroupName, subscriptionIdDelete an action group.
updateUPDATEactionGroupName, resourceGroupName, subscriptionIdUpdates an existing action group's tags. To update other fields use the CreateOrUpdate method.
enable_receiverEXECactionGroupName, resourceGroupName, subscriptionId, data__receiverNameEnable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers.
reconcile_nspEXECactionGroupName, networkSecurityPerimeterConfigurationName, resourceGroupName, subscriptionIdReconciles a specified NSP configuration for specified action group.

SELECT examples

Get a list of all action groups in a subscription.

SELECT
id,
name,
actionGroupName,
action_group_id,
location,
resourceGroupName,
subscriptionId,
tags,
type,
webhook_properties
FROM azure.monitor.vw_action_groups
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new action_groups resource.

/*+ create */
INSERT INTO azure.monitor.action_groups (
actionGroupName,
resourceGroupName,
subscriptionId,
location,
tags,
properties
)
SELECT
'{{ actionGroupName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a action_groups resource.

/*+ update */
UPDATE azure.monitor.action_groups
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
actionGroupName = '{{ actionGroupName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified action_groups resource.

/*+ delete */
DELETE FROM azure.monitor.action_groups
WHERE actionGroupName = '{{ actionGroupName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';