Skip to main content

notification_channels

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

Overview

Namenotification_channels
TypeResource
Idazure.dev_test_labs.notification_channels

Fields

NameDatatypeDescription
idtextThe identifier of the resource.
nametextThe name of the resource.
descriptiontextfield from the properties object
created_datetextfield from the properties object
email_recipienttextfield from the properties object
eventstextfield from the properties object
labNametextfield from the properties object
locationtextThe location of the resource.
notification_localetextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextThe tags of the resource.
typetextThe type of the resource.
unique_identifiertextfield from the properties object
web_hook_urltextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTlabName, name, resourceGroupName, subscriptionIdGet notification channel.
listSELECTlabName, resourceGroupName, subscriptionIdList notification channels in a given lab.
create_or_updateINSERTlabName, name, resourceGroupName, subscriptionId, data__propertiesCreate or replace an existing notification channel.
deleteDELETElabName, name, resourceGroupName, subscriptionIdDelete notification channel.
updateUPDATElabName, name, resourceGroupName, subscriptionIdAllows modifying tags of notification channels. All other properties will be ignored.
notifyEXEClabName, name, resourceGroupName, subscriptionIdSend notification to provided channel.

SELECT examples

List notification channels in a given lab.

SELECT
id,
name,
description,
created_date,
email_recipient,
events,
labName,
location,
notification_locale,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
type,
unique_identifier,
web_hook_url
FROM azure.dev_test_labs.vw_notification_channels
WHERE labName = '{{ labName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.dev_test_labs.notification_channels (
labName,
name,
resourceGroupName,
subscriptionId,
data__properties,
location,
tags,
properties
)
SELECT
'{{ labName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a notification_channels resource.

/*+ update */
UPDATE azure.dev_test_labs.notification_channels
SET
tags = '{{ tags }}'
WHERE
labName = '{{ labName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified notification_channels resource.

/*+ delete */
DELETE FROM azure.dev_test_labs.notification_channels
WHERE labName = '{{ labName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';