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

The following fields are returned by SELECT queries:

The request succeeded.

NameDatatypeDescription
idstringAzure resource Id
namestringAzure resource name
locationstringResource location
propertiesobjectThe tenant action groups properties of the resource.
tagsobjectResource tags
typestringAzure resource type

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectmanagementGroupId, actionGroupName, x-ms-client-tenant-idGet a tenant action group.
list_by_management_group_idselectmanagementGroupId, x-ms-client-tenant-idGet a list of all tenant action groups in a management group.
create_or_updateinsertmanagementGroupId, actionGroupName, x-ms-client-tenant-idCreate a new tenant action group or update an existing one.
updateupdatemanagementGroupId, actionGroupName, x-ms-client-tenant-idUpdates an existing tenant action group's tags. To update other fields use the CreateOrUpdate method.
deletedeletemanagementGroupId, actionGroupName, x-ms-client-tenant-idDelete a tenant action group.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
actionGroupNamestringThe name of the action group.
managementGroupIdstringThe management group id.
x-ms-client-tenant-idstringThe tenant ID of the client making the request.

SELECT examples

Get a tenant action group.

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure.monitor.tenant_action_groups
WHERE managementGroupId = '{{ managementGroupId }}' -- required
AND actionGroupName = '{{ actionGroupName }}' -- required
AND x-ms-client-tenant-id = '{{ x-ms-client-tenant-id }}' -- required
;

INSERT examples

Create a new tenant action group or update an existing one.

INSERT INTO azure.monitor.tenant_action_groups (
data__location,
data__tags,
data__properties,
managementGroupId,
actionGroupName,
x-ms-client-tenant-id
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ managementGroupId }}',
'{{ actionGroupName }}',
'{{ x-ms-client-tenant-id }}'
RETURNING
id,
name,
location,
properties,
tags,
type
;

UPDATE examples

Updates an existing tenant action group's tags. To update other fields use the CreateOrUpdate method.

UPDATE azure.monitor.tenant_action_groups
SET
data__tags = '{{ tags }}',
data__properties = '{{ properties }}'
WHERE
managementGroupId = '{{ managementGroupId }}' --required
AND actionGroupName = '{{ actionGroupName }}' --required
AND x-ms-client-tenant-id = '{{ x-ms-client-tenant-id }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;

DELETE examples

Delete a tenant action group.

DELETE FROM azure.monitor.tenant_action_groups
WHERE managementGroupId = '{{ managementGroupId }}' --required
AND actionGroupName = '{{ actionGroupName }}' --required
AND x-ms-client-tenant-id = '{{ x-ms-client-tenant-id }}' --required
;