Skip to main content

cluster_principal_assignments

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

Overview

Namecluster_principal_assignments
TypeResource
Idazure.data_explorer.cluster_principal_assignments

Fields

NameDatatypeDescription
aad_object_idtextfield from the properties object
clusterNametextfield 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
tenant_idtextfield from the properties object
tenant_nametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, principalAssignmentName, resourceGroupName, subscriptionIdGets a Kusto cluster principalAssignment.
listSELECTclusterName, resourceGroupName, subscriptionIdLists all Kusto cluster principalAssignments.
create_or_updateINSERTclusterName, principalAssignmentName, resourceGroupName, subscriptionIdCreate a Kusto cluster principalAssignment.
deleteDELETEclusterName, principalAssignmentName, resourceGroupName, subscriptionIdDeletes a Kusto cluster principalAssignment.
check_name_availabilityEXECclusterName, resourceGroupName, subscriptionId, data__name, data__typeChecks that the principal assignment name is valid and is not already in use.

SELECT examples

Lists all Kusto cluster principalAssignments.

SELECT
aad_object_id,
clusterName,
principalAssignmentName,
principal_id,
principal_name,
principal_type,
provisioning_state,
resourceGroupName,
role,
subscriptionId,
tenant_id,
tenant_name
FROM azure.data_explorer.vw_cluster_principal_assignments
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified cluster_principal_assignments resource.

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