Skip to main content

kusto_pool_data_connections

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

Overview

Namekusto_pool_data_connections
TypeResource
Idazure.synapse.kusto_pool_data_connections

Fields

NameDatatypeDescription
kindstringKind of the endpoint for the data connection
locationstringResource location.
systemDataobjectMetadata pertaining to creation and last modification of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdataConnectionName, databaseName, kustoPoolName, resourceGroupName, subscriptionId, workspaceNameReturns a data connection.
list_by_databaseSELECTdatabaseName, kustoPoolName, resourceGroupName, subscriptionId, workspaceNameReturns the list of data connections of the given Kusto pool database.
create_or_updateINSERTdataConnectionName, databaseName, kustoPoolName, resourceGroupName, subscriptionId, workspaceName, data__kindCreates or updates a data connection.
deleteDELETEdataConnectionName, databaseName, kustoPoolName, resourceGroupName, subscriptionId, workspaceNameDeletes the data connection with the given name.
updateUPDATEdataConnectionName, databaseName, kustoPoolName, resourceGroupName, subscriptionId, workspaceName, data__kindUpdates a data connection.
check_name_availabilityEXECdatabaseName, kustoPoolName, resourceGroupName, subscriptionId, workspaceName, data__name, data__typeChecks that the data connection name is valid and is not already in use.
data_connection_validationEXECdatabaseName, kustoPoolName, resourceGroupName, subscriptionId, workspaceNameChecks that the data connection parameters are valid.

SELECT examples

Returns the list of data connections of the given Kusto pool database.

SELECT
kind,
location,
systemData
FROM azure.synapse.kusto_pool_data_connections
WHERE databaseName = '{{ databaseName }}'
AND kustoPoolName = '{{ kustoPoolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.synapse.kusto_pool_data_connections (
dataConnectionName,
databaseName,
kustoPoolName,
resourceGroupName,
subscriptionId,
workspaceName,
data__kind,
location,
kind
)
SELECT
'{{ dataConnectionName }}',
'{{ databaseName }}',
'{{ kustoPoolName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ data__kind }}',
'{{ location }}',
'{{ kind }}'
;

UPDATE example

Updates a kusto_pool_data_connections resource.

/*+ update */
UPDATE azure.synapse.kusto_pool_data_connections
SET
location = '{{ location }}',
kind = '{{ kind }}'
WHERE
dataConnectionName = '{{ dataConnectionName }}'
AND databaseName = '{{ databaseName }}'
AND kustoPoolName = '{{ kustoPoolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}'
AND data__kind = '{{ data__kind }}';

DELETE example

Deletes the specified kusto_pool_data_connections resource.

/*+ delete */
DELETE FROM azure.synapse.kusto_pool_data_connections
WHERE dataConnectionName = '{{ dataConnectionName }}'
AND databaseName = '{{ databaseName }}'
AND kustoPoolName = '{{ kustoPoolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';