Skip to main content

attached_database_configurations

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

Overview

Nameattached_database_configurations
TypeResource
Idazure.kusto.attached_database_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name that was checked.
messagestringMessage indicating an unavailable name due to a conflict, or a description of the naming rules that are violated.
nameAvailablebooleanSpecifies a Boolean value that indicates if the name is available.
reasonstringMessage providing the reason why the given name is invalid. Known values are: "Invalid" and "AlreadyExists". (Invalid, AlreadyExists)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
check_name_availabilityselectresource_group_name, cluster_name, subscription_idChecks that the attached database configuration resource name is valid and is not already in use.
getselectresource_group_name, cluster_name, attached_database_configuration_name, subscription_idReturns an attached database configuration.
list_by_clusterselectresource_group_name, cluster_name, subscription_idReturns the list of attached database configurations of the given Kusto cluster.
create_or_updateinsertresource_group_name, cluster_name, attached_database_configuration_name, subscription_idCreates or updates an attached database configuration.
create_or_updatereplaceresource_group_name, cluster_name, attached_database_configuration_name, subscription_idCreates or updates an attached database configuration.
deletedeleteresource_group_name, cluster_name, attached_database_configuration_name, subscription_idDeletes the attached database configuration with the given name.

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
attached_database_configuration_namestringThe name of the attached database configuration. Required.
cluster_namestringThe name of the Kusto cluster. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

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

SELECT
name,
message,
nameAvailable,
reason
FROM azure.kusto.attached_database_configurations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates an attached database configuration.

INSERT INTO azure.kusto.attached_database_configurations (
properties,
location,
resource_group_name,
cluster_name,
attached_database_configuration_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ location }}',
'{{ resource_group_name }}',
'{{ cluster_name }}',
'{{ attached_database_configuration_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
type
;

REPLACE examples

Creates or updates an attached database configuration.

REPLACE azure.kusto.attached_database_configurations
SET
properties = '{{ properties }}',
location = '{{ location }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND attached_database_configuration_name = '{{ attached_database_configuration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
type;

DELETE examples

Deletes the attached database configuration with the given name.

DELETE FROM azure.kusto.attached_database_configurations
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND attached_database_configuration_name = '{{ attached_database_configuration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;