Skip to main content

namespaces_keys

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

Overview

Namenamespaces_keys
TypeResource
Idazure.event_hubs.namespaces_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 AuthorizationRule.
primaryConnectionStringstringPrimary connection string of the created namespace AuthorizationRule.
primaryKeystringA base64-encoded 256-bit primary key for signing and validating the SAS token.
secondaryConnectionStringstringSecondary connection string of the created namespace AuthorizationRule.
secondaryKeystringA base64-encoded 256-bit primary key for signing and validating the SAS token.

Methods

NameAccessible byRequired ParamsDescription
listSELECTauthorizationRuleName, namespaceName, resourceGroupName, subscriptionIdGets the primary and secondary connection strings for the Namespace.

SELECT examples

Gets the primary and secondary connection strings for the Namespace.

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