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

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".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
check_name_availabilityselectworkspace_name, kusto_pool_name, resource_group_name, subscription_idChecks that the principal assignment name is valid and is not already in use.
getselectworkspace_name, kusto_pool_name, principal_assignment_name, resource_group_name, subscription_idGets a Kusto pool principalAssignment.
listselectworkspace_name, kusto_pool_name, resource_group_name, subscription_idLists all Kusto pool principalAssignments.
create_or_updateinsertworkspace_name, kusto_pool_name, principal_assignment_name, resource_group_name, subscription_idCreate a Kusto pool principalAssignment.
create_or_updatereplaceworkspace_name, kusto_pool_name, principal_assignment_name, resource_group_name, subscription_idCreate a Kusto pool principalAssignment.
deletedeleteworkspace_name, kusto_pool_name, principal_assignment_name, resource_group_name, subscription_idDeletes a Kusto pool principalAssignment.

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
kusto_pool_namestringThe name of the Kusto pool. Required.
principal_assignment_namestringThe name of the Kusto principalAssignment. 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

Checks that the principal assignment name is valid and is not already in use.

SELECT
name,
message,
nameAvailable,
reason
FROM azure.synapse.kusto_pool_principal_assignments
WHERE workspace_name = '{{ workspace_name }}' -- required
AND kusto_pool_name = '{{ kusto_pool_name }}' -- required
AND resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a Kusto pool principalAssignment.

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

REPLACE examples

Create a Kusto pool principalAssignment.

REPLACE azure.synapse.kusto_pool_principal_assignments
SET
properties = '{{ properties }}'
WHERE
workspace_name = '{{ workspace_name }}' --required
AND kusto_pool_name = '{{ kusto_pool_name }}' --required
AND principal_assignment_name = '{{ principal_assignment_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes a Kusto pool principalAssignment.

DELETE FROM azure.synapse.kusto_pool_principal_assignments
WHERE workspace_name = '{{ workspace_name }}' --required
AND kusto_pool_name = '{{ kusto_pool_name }}' --required
AND principal_assignment_name = '{{ principal_assignment_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;