Skip to main content

communication_services

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

Overview

Namecommunication_services
TypeResource
Idazure.communication.communication_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 communication service stores its data at rest. Required.
disableLocalAuthbooleanDisable local authentication for the CommunicationService.
hostNamestringFQDN of the CommunicationService instance.
identityobjectThe managed service identities assigned to this resource.
immutableResourceIdstringThe immutable resource Id of the communication service.
linkedDomainsarrayList of email Domain resource Ids.
locationstringThe geo-location where the resource lives. Required.
notificationHubIdstringResource ID of an Azure Notification Hub linked to this resource.
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)
publicNetworkAccessstringAllow, disallow, or let network security perimeter configuration control public network access to the protected resource. Value is optional but if passed in, it must be 'Enabled', 'Disabled' or 'SecuredByPerimeter'. Known values are: "Enabled", "Disabled", and "SecuredByPerimeter". (Enabled, Disabled, SecuredByPerimeter)
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".
versionstringVersion of the CommunicationService resource. Probably you need the same or higher version of client SDKs.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, communication_service_name, subscription_idGet. Get the CommunicationService 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, communication_service_name, subscription_id, locationCreate Or Update. Create a new CommunicationService or update an existing CommunicationService.
updateupdateresource_group_name, communication_service_name, subscription_idUpdate. Operation to update an existing CommunicationService.
create_or_updatereplaceresource_group_name, communication_service_name, subscription_id, locationCreate Or Update. Create a new CommunicationService or update an existing CommunicationService.
deletedeleteresource_group_name, communication_service_name, subscription_idDelete. Operation to delete a CommunicationService.
list_keysexecresource_group_name, communication_service_name, subscription_idList Keys. Get the access keys of the CommunicationService resource.
link_notification_hubexecresource_group_name, communication_service_name, subscription_id, resourceId, connectionStringLink Notification Hub. Links an Azure Notification Hub to this communication service.
regenerate_keyexecresource_group_name, communication_service_name, subscription_idRegenerate Key. Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time.
check_name_availabilityexecsubscription_idCheck Name Availability. Checks that the CommunicationService name is valid and is not already in use.

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.
subscription_idstring

SELECT examples

Get. Get the CommunicationService and its properties.

SELECT
id,
name,
dataLocation,
disableLocalAuth,
hostName,
identity,
immutableResourceId,
linkedDomains,
location,
notificationHubId,
provisioningState,
publicNetworkAccess,
systemData,
tags,
type,
version
FROM azure.communication.communication_services
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND communication_service_name = '{{ communication_service_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

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

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

UPDATE examples

Update. Operation to update an existing CommunicationService.

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

REPLACE examples

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

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

DELETE examples

Delete. Operation to delete a CommunicationService.

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

Lifecycle Methods

List Keys. Get the access keys of the CommunicationService resource.

EXEC azure.communication.communication_services.list_keys 
@resource_group_name='{{ resource_group_name }}' --required,
@communication_service_name='{{ communication_service_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;