Skip to main content

queues_keys

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

Overview

Namequeues_keys
TypeResource
Idazure.service_bus.queues_keys

Fields

NameDatatypeDescription
aliasPrimaryConnectionStringstringPrimary connection string of the alias if GEO DR is enabled
aliasSecondaryConnectionStringstringSecondary connection string of the alias if GEO DR is enabled
keyNamestringA string that describes the authorization rule.
primaryConnectionStringstringPrimary connection string of the created namespace authorization rule.
primaryKeystringA base64-encoded 256-bit primary key for signing and validating the SAS token.
secondaryConnectionStringstringSecondary connection string of the created namespace authorization rule.
secondaryKeystringA base64-encoded 256-bit primary key for signing and validating the SAS token.

Methods

NameAccessible byRequired ParamsDescription
listSELECTauthorizationRuleName, namespaceName, queueName, resourceGroupName, subscriptionIdPrimary and secondary connection strings to the queue.

SELECT examples

Primary and secondary connection strings to the queue.

SELECT
aliasPrimaryConnectionString,
aliasSecondaryConnectionString,
keyName,
primaryConnectionString,
primaryKey,
secondaryConnectionString,
secondaryKey
FROM azure.service_bus.queues_keys
WHERE authorizationRuleName = '{{ authorizationRuleName }}'
AND namespaceName = '{{ namespaceName }}'
AND queueName = '{{ queueName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';