Skip to main content

kusto_pool_principal_assignments

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

Overview

Namekusto_pool_principal_assignments
TypeResource
Idazure.synapse.kusto_pool_principal_assignments

Fields

NameDatatypeDescription
aad_object_idtextfield 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
getSELECTkustoPoolName, principalAssignmentName, resourceGroupName, subscriptionId, workspaceNameGets a Kusto pool principalAssignment.
listSELECTkustoPoolName, resourceGroupName, subscriptionId, workspaceNameLists all Kusto pool principalAssignments.
create_or_updateINSERTkustoPoolName, principalAssignmentName, resourceGroupName, subscriptionId, workspaceNameCreate a Kusto pool principalAssignment.
deleteDELETEkustoPoolName, principalAssignmentName, resourceGroupName, subscriptionId, workspaceNameDeletes a Kusto pool principalAssignment.
check_name_availabilityEXECkustoPoolName, resourceGroupName, subscriptionId, workspaceName, data__name, data__typeChecks that the principal assignment name is valid and is not already in use.

SELECT examples

Lists all Kusto pool principalAssignments.

SELECT
aad_object_id,
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_principal_assignments
WHERE 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_principal_assignments resource.

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

DELETE example

Deletes the specified kusto_pool_principal_assignments resource.

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