Skip to main content

kusto_pool_attached_database_configurations

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

Overview

Namekusto_pool_attached_database_configurations
TypeResource
Idazure.synapse.kusto_pool_attached_database_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
attachedDatabaseNamesarrayThe list of databases from the clusterResourceId which are currently attached to the kusto pool.
clusterResourceIdstringThe resource id of the kusto pool where the databases you would like to attach reside.
databaseNamestringThe name of the database which you would like to attach, use * if you want to follow all current and future databases.
defaultPrincipalsModificationKindstringThe default principals modification kind. Known values are: "Union", "Replace", and "None".
locationstringResource location.
provisioningStatestringThe provisioned state of the resource. Known values are: "Running", "Creating", "Deleting", "Succeeded", "Failed", "Moving", and "Canceled".
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tableLevelSharingPropertiesobjectTable level sharing specifications.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectworkspace_name, kusto_pool_name, attached_database_configuration_name, resource_group_name, subscription_idReturns an attached database configuration.
list_by_kusto_poolselectworkspace_name, kusto_pool_name, resource_group_name, subscription_idReturns the list of attached database configurations of the given Kusto Pool.
create_or_updateinsertworkspace_name, kusto_pool_name, attached_database_configuration_name, resource_group_name, subscription_idCreates or updates an attached database configuration.
create_or_updatereplaceworkspace_name, kusto_pool_name, attached_database_configuration_name, resource_group_name, subscription_idCreates or updates an attached database configuration.
deletedeleteworkspace_name, kusto_pool_name, attached_database_configuration_name, resource_group_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.
kusto_pool_namestringThe name of the Kusto pool. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe name of the workspace. Required.

SELECT examples

Returns an attached database configuration.

SELECT
id,
name,
attachedDatabaseNames,
clusterResourceId,
databaseName,
defaultPrincipalsModificationKind,
location,
provisioningState,
systemData,
tableLevelSharingProperties,
type
FROM azure.synapse.kusto_pool_attached_database_configurations
WHERE workspace_name = '{{ workspace_name }}' -- required
AND kusto_pool_name = '{{ kusto_pool_name }}' -- required
AND attached_database_configuration_name = '{{ attached_database_configuration_name }}' -- required
AND resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates an attached database configuration.

INSERT INTO azure.synapse.kusto_pool_attached_database_configurations (
location,
properties,
workspace_name,
kusto_pool_name,
attached_database_configuration_name,
resource_group_name,
subscription_id
)
SELECT
'{{ location }}',
'{{ properties }}',
'{{ workspace_name }}',
'{{ kusto_pool_name }}',
'{{ attached_database_configuration_name }}',
'{{ resource_group_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
type
;

REPLACE examples

Creates or updates an attached database configuration.

REPLACE azure.synapse.kusto_pool_attached_database_configurations
SET
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
workspace_name = '{{ workspace_name }}' --required
AND kusto_pool_name = '{{ kusto_pool_name }}' --required
AND attached_database_configuration_name = '{{ attached_database_configuration_name }}' --required
AND resource_group_name = '{{ resource_group_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.synapse.kusto_pool_attached_database_configurations
WHERE workspace_name = '{{ workspace_name }}' --required
AND kusto_pool_name = '{{ kusto_pool_name }}' --required
AND attached_database_configuration_name = '{{ attached_database_configuration_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;