Skip to main content

email_configuration

Creates, updates, deletes, gets or lists an email_configuration resource.

Overview

Nameemail_configuration
TypeResource
Idazure.recovery_services_data_replication.email_configuration

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.
customEmailAddressesarrayGets or sets the custom email address for sending emails.
localestringGets or sets the locale for the email notification.
provisioningStatestringGets or sets the provisioning state of the email configuration. Known values are: "Canceled", "Creating", "Deleting", "Deleted", "Failed", "Succeeded", and "Updating". (Canceled, Creating, Deleting, Deleted, Failed, Succeeded, Updating)
sendToOwnersbooleanGets or sets a value indicating whether to send email to subscription administrator. Required.
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, vault_name, email_configuration_name, subscription_idGets the details of the alert configuration setting.
listselectresource_group_name, vault_name, subscription_idGets the list of alert configuration settings for the given vault.
createinsertresource_group_name, vault_name, email_configuration_name, subscription_idCreates an alert configuration setting for the given vault.

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
email_configuration_namestringThe email configuration name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
vault_namestringThe vault name. Required.

SELECT examples

Gets the details of the alert configuration setting.

SELECT
id,
name,
customEmailAddresses,
locale,
provisioningState,
sendToOwners,
systemData,
type
FROM azure.recovery_services_data_replication.email_configuration
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND vault_name = '{{ vault_name }}' -- required
AND email_configuration_name = '{{ email_configuration_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates an alert configuration setting for the given vault.

INSERT INTO azure.recovery_services_data_replication.email_configuration (
properties,
resource_group_name,
vault_name,
email_configuration_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ vault_name }}',
'{{ email_configuration_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;