Skip to main content

attached_database_configurations

Creates, updates, deletes, gets or lists an attached_database_configurations resource.

Overview

Nameattached_database_configurations
TypeResource
Idazure.data_explorer.attached_database_configurations

Fields

The following fields are returned by SELECT queries:

Successfully retrieved the specified attached database configuration.

NameDatatypeDescription
locationstringResource location.
propertiesobjectThe properties of the attached database configuration.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, clusterName, attachedDatabaseConfigurationName, subscriptionIdReturns an attached database configuration.
list_by_clusterselectresourceGroupName, clusterName, subscriptionIdReturns the list of attached database configurations of the given Kusto cluster.
create_or_updateinsertresourceGroupName, clusterName, attachedDatabaseConfigurationName, subscriptionIdCreates or updates an attached database configuration.
deletedeleteresourceGroupName, clusterName, attachedDatabaseConfigurationName, subscriptionIdDeletes the attached database configuration with the given name.
check_name_availabilityexecresourceGroupName, clusterName, subscriptionId, name, typeChecks that the attached database configuration resource name is valid and is not already in use.

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
attachedDatabaseConfigurationNamestringThe name of the attached database configuration.
clusterNamestringThe name of the Kusto cluster.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Returns an attached database configuration.

SELECT
location,
properties
FROM azure.data_explorer.attached_database_configurations
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND clusterName = '{{ clusterName }}' -- required
AND attachedDatabaseConfigurationName = '{{ attachedDatabaseConfigurationName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates or updates an attached database configuration.

INSERT INTO azure.data_explorer.attached_database_configurations (
data__location,
data__properties,
resourceGroupName,
clusterName,
attachedDatabaseConfigurationName,
subscriptionId
)
SELECT
'{{ location }}',
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ clusterName }}',
'{{ attachedDatabaseConfigurationName }}',
'{{ subscriptionId }}'
RETURNING
location,
properties
;

DELETE examples

Deletes the attached database configuration with the given name.

DELETE FROM azure.data_explorer.attached_database_configurations
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
AND attachedDatabaseConfigurationName = '{{ attachedDatabaseConfigurationName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;

Lifecycle Methods

Checks that the attached database configuration resource name is valid and is not already in use.

EXEC azure.data_explorer.attached_database_configurations.check_name_availability 
@resourceGroupName='{{ resourceGroupName }}' --required,
@clusterName='{{ clusterName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"name": "{{ name }}",
"type": "{{ type }}"
}'
;