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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource Id
namestringResource Name
locationstringResource Location
propertiesobjectAlert related data.
typestringResource Type

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceName, resourceGroupName, subscriptionId, alertSettingNameapi-versionGets the details of the specified email notification(alert) configuration.
listselectresourceName, resourceGroupName, subscriptionIdapi-versionGets the list of email notification(alert) configurations for the vault.
createinsertresourceName, resourceGroupName, subscriptionId, alertSettingNameapi-versionCreate or update an email notification(alert) configuration.

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
alertSettingNamestringThe name of the email notification(alert) configuration.
resourceGroupNamestringThe name of the resource group where the recovery services vault is present.
resourceNamestringThe name of the recovery services vault.
subscriptionIdstringThe subscription Id.
api-versionstringClient Api Version.

SELECT examples

Gets the details of the specified email notification(alert) configuration.

SELECT
id,
name,
location,
properties,
type
FROM azure.recovery_services_site_recovery.replication_alert_settings
WHERE resourceName = '{{ resourceName }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND alertSettingName = '{{ alertSettingName }}' -- required
AND api-version = '{{ api-version }}'
;

INSERT examples

Create or update an email notification(alert) configuration.

INSERT INTO azure.recovery_services_site_recovery.replication_alert_settings (
data__properties,
resourceName,
resourceGroupName,
subscriptionId,
alertSettingName,
api-version
)
SELECT
'{{ properties }}',
'{{ resourceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ alertSettingName }}',
'{{ api-version }}'
RETURNING
id,
name,
location,
properties,
type
;