Skip to main content

services_keys

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

Overview

Nameservices_keys
TypeResource
Idazure.communication.services_keys

Fields

The following fields are returned by SELECT queries:

Success. The response describes CommunicationService access keys.

NameDatatypeDescription
primaryConnectionStringstringCommunicationService connection string constructed via the primaryKey
primaryKeystringThe primary access key.
secondaryConnectionStringstringCommunicationService connection string constructed via the secondaryKey
secondaryKeystringThe secondary access key.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsubscriptionId, resourceGroupName, communicationServiceNameGet the access keys of the CommunicationService 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
communicationServiceNamestringThe name of the CommunicationService resource.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get the access keys of the CommunicationService resource.

SELECT
primaryConnectionString,
primaryKey,
secondaryConnectionString,
secondaryKey
FROM azure.communication.services_keys
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND communicationServiceName = '{{ communicationServiceName }}' -- required
;