Skip to main content

kusto_pool_database_principal_assignments

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

Overview

Namekusto_pool_database_principal_assignments
TypeResource
Idazure.synapse.kusto_pool_database_principal_assignments

Fields

NameDatatypeDescription
aad_object_idtextfield from the properties object
databaseNametextfield from the properties object
kustoPoolNametextfield from the properties object
principalAssignmentNametextfield from the properties object
principal_idtextfield from the properties object
principal_nametextfield from the properties object
principal_typetextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
roletextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tenant_idtextfield from the properties object
tenant_nametextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdatabaseName, kustoPoolName, principalAssignmentName, resourceGroupName, subscriptionId, workspaceNameGets a Kusto pool database principalAssignment.
listSELECTdatabaseName, kustoPoolName, resourceGroupName, subscriptionId, workspaceNameLists all Kusto pool database principalAssignments.
create_or_updateINSERTdatabaseName, kustoPoolName, principalAssignmentName, resourceGroupName, subscriptionId, workspaceNameCreates a Kusto pool database principalAssignment.
deleteDELETEdatabaseName, kustoPoolName, principalAssignmentName, resourceGroupName, subscriptionId, workspaceNameDeletes a Kusto pool principalAssignment.
check_name_availabilityEXECdatabaseName, kustoPoolName, resourceGroupName, subscriptionId, workspaceName, data__name, data__typeChecks that the database principal assignment is valid and is not already in use.

SELECT examples

Lists all Kusto pool database principalAssignments.

SELECT
aad_object_id,
databaseName,
kustoPoolName,
principalAssignmentName,
principal_id,
principal_name,
principal_type,
provisioning_state,
resourceGroupName,
role,
subscriptionId,
system_data,
tenant_id,
tenant_name,
workspaceName
FROM azure.synapse.vw_kusto_pool_database_principal_assignments
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_database_principal_assignments resource.

/*+ create */
INSERT INTO azure.synapse.kusto_pool_database_principal_assignments (
databaseName,
kustoPoolName,
principalAssignmentName,
resourceGroupName,
subscriptionId,
workspaceName,
properties
)
SELECT
'{{ databaseName }}',
'{{ kustoPoolName }}',
'{{ principalAssignmentName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified kusto_pool_database_principal_assignments resource.

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