Skip to main content

replication_alert_settings

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

Overview

Namereplication_alert_settings
TypeResource
Idazure.recovery_services_site_recovery.replication_alert_settings

Fields

NameDatatypeDescription
idtextResource Id
nametextResource Name
alertSettingNametextfield from the properties object
custom_email_addressestextfield from the properties object
localetextfield from the properties object
locationtextResource Location
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
send_to_ownerstextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource Type

Methods

NameAccessible byRequired ParamsDescription
getSELECTalertSettingName, resourceGroupName, resourceName, subscriptionIdGets the details of the specified email notification(alert) configuration.
listSELECTresourceGroupName, resourceName, subscriptionIdGets the list of email notification(alert) configurations for the vault.
createINSERTalertSettingName, resourceGroupName, resourceName, subscriptionIdCreate or update an email notification(alert) configuration.

SELECT examples

Gets the list of email notification(alert) configurations for the vault.

SELECT
id,
name,
alertSettingName,
custom_email_addresses,
locale,
location,
resourceGroupName,
resourceName,
send_to_owners,
subscriptionId,
type
FROM azure.recovery_services_site_recovery.vw_replication_alert_settings
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.recovery_services_site_recovery.replication_alert_settings (
alertSettingName,
resourceGroupName,
resourceName,
subscriptionId,
properties
)
SELECT
'{{ alertSettingName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;