Skip to main content

smtp_usernames

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

Overview

Namesmtp_usernames
TypeResource
Idazure.communication.smtp_usernames

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.
entraApplicationIdstringThe application Id for the linked Entra Application. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tenantIdstringThe tenant of the linked Entra Application. Required.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
usernamestringThe SMTP username. Could be free form or in the email address format. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, communication_service_name, smtp_username, subscription_idGet. Get a SmtpUsernameResource.
listselectresource_group_name, communication_service_name, subscription_idGet. Get all SmtpUsernameResources for a Communication resource.
create_or_updateinsertresource_group_name, communication_service_name, smtp_username, subscription_idCreate Or Update. Create or update an SmtpUsernameResource.
create_or_updatereplaceresource_group_name, communication_service_name, smtp_username, subscription_idCreate Or Update. Create or update an SmtpUsernameResource.
deletedeleteresource_group_name, communication_service_name, smtp_username, subscription_idDelete. Operation to delete a single SmtpUsername resource.

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
communication_service_namestringThe name of the CommunicationService resource. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
smtp_usernamestringThe name of the SmtpUsernameResource. Required.
subscription_idstring

SELECT examples

Get. Get a SmtpUsernameResource.

SELECT
id,
name,
entraApplicationId,
systemData,
tenantId,
type,
username
FROM azure.communication.smtp_usernames
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND communication_service_name = '{{ communication_service_name }}' -- required
AND smtp_username = '{{ smtp_username }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create Or Update. Create or update an SmtpUsernameResource.

INSERT INTO azure.communication.smtp_usernames (
properties,
resource_group_name,
communication_service_name,
smtp_username,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ communication_service_name }}',
'{{ smtp_username }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Create Or Update. Create or update an SmtpUsernameResource.

REPLACE azure.communication.smtp_usernames
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND communication_service_name = '{{ communication_service_name }}' --required
AND smtp_username = '{{ smtp_username }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete. Operation to delete a single SmtpUsername resource.

DELETE FROM azure.communication.smtp_usernames
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND communication_service_name = '{{ communication_service_name }}' --required
AND smtp_username = '{{ smtp_username }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;