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
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
customEmailAddressesarrayThe custom email address for sending emails.
localestringThe locale for the email notification.
locationstringResource Location.
sendToOwnersstringA value indicating whether to send email to subscription administrator.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, resource_name, alert_setting_name, subscription_idGets an email notification(alert) configuration. Gets the details of the specified email notification(alert) configuration.
listselectresource_group_name, resource_name, subscription_idGets the list of configured email notification(alert) configurations. Gets the list of email notification(alert) configurations for the vault.
createinsertresource_group_name, resource_name, alert_setting_name, subscription_idConfigures email notifications for this vault. Create 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
alert_setting_namestringThe name of the email notification configuration. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
resource_namestringThe name of the Vault. Required.
subscription_idstring

SELECT examples

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

SELECT
id,
name,
customEmailAddresses,
locale,
location,
sendToOwners,
systemData,
type
FROM azure.recovery_services_site_recovery.replication_alert_settings
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND alert_setting_name = '{{ alert_setting_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Configures email notifications for this vault. Create or update an email notification(alert) configuration.

INSERT INTO azure.recovery_services_site_recovery.replication_alert_settings (
properties,
resource_group_name,
resource_name,
alert_setting_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ resource_name }}',
'{{ alert_setting_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
type
;