Skip to main content

email_services

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

Overview

Nameemail_services
TypeResource
Idazure.communication.email_services

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.
dataLocationstringThe location where the email service stores its data at rest. Required.
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringProvisioning state of the resource. Known values are: "Unknown", "Succeeded", "Failed", "Canceled", "Running", "Creating", "Updating", "Deleting", and "Moving". (Unknown, Succeeded, Failed, Canceled, Running, Creating, Updating, Deleting, Moving)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
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, email_service_name, subscription_idGet. Get the EmailService and its properties.
list_by_resource_groupselectresource_group_name, subscription_idList By Resource Group. Handles requests to list all resources in a resource group.
list_by_subscriptionselectsubscription_idList By Subscription. Handles requests to list all resources in a subscription.
create_or_updateinsertresource_group_name, email_service_name, subscription_id, locationCreate Or Update. Create a new EmailService or update an existing EmailService.
updateupdateresource_group_name, email_service_name, subscription_idUpdate. Operation to update an existing EmailService.
create_or_updatereplaceresource_group_name, email_service_name, subscription_id, locationCreate Or Update. Create a new EmailService or update an existing EmailService.
deletedeleteresource_group_name, email_service_name, subscription_idDelete. Operation to delete a EmailService.
list_verified_exchange_online_domainsexecsubscription_idList Verified Domains From Exchange Online. Get a list of domains that are fully verified in Exchange Online.

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_service_namestringThe name of the EmailService resource. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get. Get the EmailService and its properties.

SELECT
id,
name,
dataLocation,
location,
provisioningState,
systemData,
tags,
type
FROM azure.communication.email_services
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND email_service_name = '{{ email_service_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create Or Update. Create a new EmailService or update an existing EmailService.

INSERT INTO azure.communication.email_services (
tags,
location,
properties,
resource_group_name,
email_service_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ email_service_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update. Operation to update an existing EmailService.

UPDATE azure.communication.email_services
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND email_service_name = '{{ email_service_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Create Or Update. Create a new EmailService or update an existing EmailService.

REPLACE azure.communication.email_services
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND email_service_name = '{{ email_service_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete. Operation to delete a EmailService.

DELETE FROM azure.communication.email_services
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND email_service_name = '{{ email_service_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

List Verified Domains From Exchange Online. Get a list of domains that are fully verified in Exchange Online.

EXEC azure.communication.email_services.list_verified_exchange_online_domains 
@subscription_id='{{ subscription_id }}' --required
;