Skip to main content

hybrid_connections

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

Overview

Namehybrid_connections
TypeResource
Idazure.relay.hybrid_connections

Fields

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
namestringThe name of the resource
locationstringThe geo-location where the resource lives
properties``Properties of the HybridConnection.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"

Methods

NameAccessible byRequired ParamsDescription
getSELECThybridConnectionName, namespaceName, resourceGroupName, subscriptionIdReturns the description for the specified hybrid connection.
list_by_namespaceSELECTnamespaceName, resourceGroupName, subscriptionIdLists the hybrid connection within the namespace.
create_or_updateINSERThybridConnectionName, namespaceName, resourceGroupName, subscriptionIdCreates or updates a service hybrid connection. This operation is idempotent.
deleteDELETEhybridConnectionName, namespaceName, resourceGroupName, subscriptionIdDeletes a hybrid connection.
regenerate_keysEXECauthorizationRuleName, hybridConnectionName, namespaceName, resourceGroupName, subscriptionId, data__keyTypeRegenerates the primary or secondary connection strings to the hybrid connection.

SELECT examples

Lists the hybrid connection within the namespace.

SELECT
id,
name,
location,
properties,
systemData,
type
FROM azure.relay.hybrid_connections
WHERE namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new hybrid_connections resource.

/*+ create */
INSERT INTO azure.relay.hybrid_connections (
hybridConnectionName,
namespaceName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ hybridConnectionName }}',
'{{ namespaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified hybrid_connections resource.

/*+ delete */
DELETE FROM azure.relay.hybrid_connections
WHERE hybridConnectionName = '{{ hybridConnectionName }}'
AND namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';