Skip to main content

sql_pool_workload_groups

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

Overview

Namesql_pool_workload_groups
TypeResource
Idazure.synapse.sql_pool_workload_groups

Fields

NameDatatypeDescription
importancetextfield from the properties object
max_resource_percenttextfield from the properties object
max_resource_percent_per_requesttextfield from the properties object
min_resource_percenttextfield from the properties object
min_resource_percent_per_requesttextfield from the properties object
query_execution_timeouttextfield from the properties object
resourceGroupNametextfield from the properties object
sqlPoolNametextfield from the properties object
subscriptionIdtextfield from the properties object
workloadGroupNametextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, sqlPoolName, subscriptionId, workloadGroupName, workspaceNameGet a Sql pool's workload group.
listSELECTresourceGroupName, sqlPoolName, subscriptionId, workspaceNameGet list of Sql pool's workload groups.
create_or_updateINSERTresourceGroupName, sqlPoolName, subscriptionId, workloadGroupName, workspaceNameCreate Or Update a Sql pool's workload group.
deleteDELETEresourceGroupName, sqlPoolName, subscriptionId, workloadGroupName, workspaceNameRemove Sql pool's workload group.

SELECT examples

Get list of Sql pool's workload groups.

SELECT
importance,
max_resource_percent,
max_resource_percent_per_request,
min_resource_percent,
min_resource_percent_per_request,
query_execution_timeout,
resourceGroupName,
sqlPoolName,
subscriptionId,
workloadGroupName,
workspaceName
FROM azure.synapse.vw_sql_pool_workload_groups
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND sqlPoolName = '{{ sqlPoolName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.synapse.sql_pool_workload_groups (
resourceGroupName,
sqlPoolName,
subscriptionId,
workloadGroupName,
workspaceName,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ sqlPoolName }}',
'{{ subscriptionId }}',
'{{ workloadGroupName }}',
'{{ workspaceName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified sql_pool_workload_groups resource.

/*+ delete */
DELETE FROM azure.synapse.sql_pool_workload_groups
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND sqlPoolName = '{{ sqlPoolName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workloadGroupName = '{{ workloadGroupName }}'
AND workspaceName = '{{ workspaceName }}';