Skip to main content

attached_database_configurations

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

Overview

Nameattached_database_configurations
TypeResource
Idazure.data_explorer.attached_database_configurations

Fields

NameDatatypeDescription
attachedDatabaseConfigurationNametextfield from the properties object
attached_database_namestextfield from the properties object
clusterNametextfield from the properties object
cluster_resource_idtextfield from the properties object
database_nametextfield from the properties object
database_name_overridetextfield from the properties object
database_name_prefixtextfield from the properties object
default_principals_modification_kindtextfield from the properties object
locationtextResource location.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
table_level_sharing_propertiestextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTattachedDatabaseConfigurationName, clusterName, resourceGroupName, subscriptionIdReturns an attached database configuration.
list_by_clusterSELECTclusterName, resourceGroupName, subscriptionIdReturns the list of attached database configurations of the given Kusto cluster.
create_or_updateINSERTattachedDatabaseConfigurationName, clusterName, resourceGroupName, subscriptionIdCreates or updates an attached database configuration.
deleteDELETEattachedDatabaseConfigurationName, clusterName, resourceGroupName, subscriptionIdDeletes the attached database configuration with the given name.
check_name_availabilityEXECclusterName, resourceGroupName, subscriptionId, data__name, data__typeChecks that the attached database configuration resource name is valid and is not already in use.

SELECT examples

Returns the list of attached database configurations of the given Kusto cluster.

SELECT
attachedDatabaseConfigurationName,
attached_database_names,
clusterName,
cluster_resource_id,
database_name,
database_name_override,
database_name_prefix,
default_principals_modification_kind,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
table_level_sharing_properties
FROM azure.data_explorer.vw_attached_database_configurations
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.data_explorer.attached_database_configurations (
attachedDatabaseConfigurationName,
clusterName,
resourceGroupName,
subscriptionId,
location,
properties
)
SELECT
'{{ attachedDatabaseConfigurationName }}',
'{{ clusterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ properties }}'
;

DELETE example

Deletes the specified attached_database_configurations resource.

/*+ delete */
DELETE FROM azure.data_explorer.attached_database_configurations
WHERE attachedDatabaseConfigurationName = '{{ attachedDatabaseConfigurationName }}'
AND clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';