Skip to main content

tenant_action_groups

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

Overview

Nametenant_action_groups
TypeResource
Idazure.monitor.tenant_action_groups

Fields

NameDatatypeDescription
idtextThe resource Id.
nametextThe name of the resource.
azure_app_push_receiverstextfield from the properties object
email_receiverstextfield from the properties object
enabledtextfield from the properties object
group_short_nametextfield from the properties object
locationtextThe location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
managementGroupIdtextfield from the properties object
sms_receiverstextfield from the properties object
tagstextThe tags of the resource.
tenantActionGroupNametextfield from the properties object
tenantIdtextfield from the properties object
typetextThe type of the resource.
voice_receiverstextfield from the properties object
webhook_receiverstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTactionGroupName, managementGroupId, tenantIdGet a tenant action group.
list_by_management_group_idSELECTmanagementGroupId, tenantIdGet a list of all tenant action groups in a management group.
create_or_updateINSERTactionGroupName, managementGroupId, tenantIdCreate a new tenant action group or update an existing one.
deleteDELETEactionGroupName, managementGroupId, tenantIdDelete a tenant action group.
updateUPDATEactionGroupName, managementGroupId, tenantIdUpdates an existing tenant action group's tags. To update other fields use the CreateOrUpdate method.

SELECT examples

Get a list of all tenant action groups in a management group.

SELECT
id,
name,
azure_app_push_receivers,
email_receivers,
enabled,
group_short_name,
location,
managementGroupId,
sms_receivers,
tags,
tenantActionGroupName,
tenantId,
type,
voice_receivers,
webhook_receivers
FROM azure.monitor.vw_tenant_action_groups
WHERE managementGroupId = '{{ managementGroupId }}'
AND tenantId = '{{ tenantId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.monitor.tenant_action_groups (
actionGroupName,
managementGroupId,
tenantId,
location,
tags,
properties
)
SELECT
'{{ actionGroupName }}',
'{{ managementGroupId }}',
'{{ tenantId }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a tenant_action_groups resource.

/*+ update */
UPDATE azure.monitor.tenant_action_groups
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
actionGroupName = '{{ actionGroupName }}'
AND managementGroupId = '{{ managementGroupId }}'
AND tenantId = '{{ tenantId }}';

DELETE example

Deletes the specified tenant_action_groups resource.

/*+ delete */
DELETE FROM azure.monitor.tenant_action_groups
WHERE actionGroupName = '{{ actionGroupName }}'
AND managementGroupId = '{{ managementGroupId }}'
AND tenantId = '{{ tenantId }}';