Skip to main content

keys

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

Overview

Namekeys
TypeResource
Idazure.event_hubs.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, eventHubName, namespaceName, resourceGroupName, subscriptionIdGets the ACS and SAS connection strings for the Event Hub.

SELECT examples

Gets the ACS and SAS connection strings for the Event Hub.

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