Skip to main content

hybrid_connections_keys

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

Overview

Namehybrid_connections_keys
TypeResource
Idazure.relay.hybrid_connections_keys

Fields

The following fields are returned by SELECT queries:

Request to retrieve connection strings to the hybrid connection succeeded.

NameDatatypeDescription
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 secondary key for signing and validating the SAS token.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresourceGroupName, namespaceName, hybridConnectionName, authorizationRuleName, subscriptionIdPrimary and secondary connection strings to the hybrid connection.

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
authorizationRuleNamestringThe authorization rule name.
hybridConnectionNamestringThe hybrid connection name.
namespaceNamestringThe namespace name
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Primary and secondary connection strings to the hybrid connection.

SELECT
keyName,
primaryConnectionString,
primaryKey,
secondaryConnectionString,
secondaryKey
FROM azure.relay.hybrid_connections_keys
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND namespaceName = '{{ namespaceName }}' -- required
AND hybridConnectionName = '{{ hybridConnectionName }}' -- required
AND authorizationRuleName = '{{ authorizationRuleName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;