Skip to main content

sql_pool_workload_classifiers

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

Overview

Namesql_pool_workload_classifiers
TypeResource
Idazure.synapse.sql_pool_workload_classifiers

Fields

NameDatatypeDescription
contexttextfield from the properties object
end_timetextfield from the properties object
importancetextfield from the properties object
labeltextfield from the properties object
member_nametextfield from the properties object
resourceGroupNametextfield from the properties object
sqlPoolNametextfield from the properties object
start_timetextfield from the properties object
subscriptionIdtextfield from the properties object
workloadClassifierNametextfield from the properties object
workloadGroupNametextfield from the properties object
workspaceNametextfield from the properties object

Methods

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

SELECT examples

Get list of Sql pool's workload classifier for workload groups.

SELECT
context,
end_time,
importance,
label,
member_name,
resourceGroupName,
sqlPoolName,
start_time,
subscriptionId,
workloadClassifierName,
workloadGroupName,
workspaceName
FROM azure.synapse.vw_sql_pool_workload_classifiers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND sqlPoolName = '{{ sqlPoolName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workloadGroupName = '{{ workloadGroupName }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

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

DELETE example

Deletes the specified sql_pool_workload_classifiers resource.

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