1. Packages
  2. Azure Native v2
  3. API Docs
  4. synapse
  5. SqlPoolWorkloadClassifier
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.synapse.SqlPoolWorkloadClassifier

Explore with Pulumi AI

Workload classifier operations for a data warehouse Azure REST API version: 2021-06-01. Prior API version in Azure Native 1.x: 2021-03-01.

Other available API versions: 2021-06-01-preview.

Example Usage

Create a workload classifier with all properties specified.

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var sqlPoolWorkloadClassifier = new AzureNative.Synapse.SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifier", new()
    {
        Context = "test_context",
        EndTime = "14:00",
        Importance = "high",
        Label = "test_label",
        MemberName = "dbo",
        ResourceGroupName = "sqlcrudtest-6852",
        SqlPoolName = "sqlcrudtest-9187",
        StartTime = "12:00",
        WorkloadClassifierName = "wlm_workloadclassifier",
        WorkloadGroupName = "wlm_workloadgroup",
        WorkspaceName = "sqlcrudtest-2080",
    });

});
Copy
package main

import (
	synapse "github.com/pulumi/pulumi-azure-native-sdk/synapse/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := synapse.NewSqlPoolWorkloadClassifier(ctx, "sqlPoolWorkloadClassifier", &synapse.SqlPoolWorkloadClassifierArgs{
			Context:                pulumi.String("test_context"),
			EndTime:                pulumi.String("14:00"),
			Importance:             pulumi.String("high"),
			Label:                  pulumi.String("test_label"),
			MemberName:             pulumi.String("dbo"),
			ResourceGroupName:      pulumi.String("sqlcrudtest-6852"),
			SqlPoolName:            pulumi.String("sqlcrudtest-9187"),
			StartTime:              pulumi.String("12:00"),
			WorkloadClassifierName: pulumi.String("wlm_workloadclassifier"),
			WorkloadGroupName:      pulumi.String("wlm_workloadgroup"),
			WorkspaceName:          pulumi.String("sqlcrudtest-2080"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.synapse.SqlPoolWorkloadClassifier;
import com.pulumi.azurenative.synapse.SqlPoolWorkloadClassifierArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var sqlPoolWorkloadClassifier = new SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifier", SqlPoolWorkloadClassifierArgs.builder()
            .context("test_context")
            .endTime("14:00")
            .importance("high")
            .label("test_label")
            .memberName("dbo")
            .resourceGroupName("sqlcrudtest-6852")
            .sqlPoolName("sqlcrudtest-9187")
            .startTime("12:00")
            .workloadClassifierName("wlm_workloadclassifier")
            .workloadGroupName("wlm_workloadgroup")
            .workspaceName("sqlcrudtest-2080")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const sqlPoolWorkloadClassifier = new azure_native.synapse.SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifier", {
    context: "test_context",
    endTime: "14:00",
    importance: "high",
    label: "test_label",
    memberName: "dbo",
    resourceGroupName: "sqlcrudtest-6852",
    sqlPoolName: "sqlcrudtest-9187",
    startTime: "12:00",
    workloadClassifierName: "wlm_workloadclassifier",
    workloadGroupName: "wlm_workloadgroup",
    workspaceName: "sqlcrudtest-2080",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

sql_pool_workload_classifier = azure_native.synapse.SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifier",
    context="test_context",
    end_time="14:00",
    importance="high",
    label="test_label",
    member_name="dbo",
    resource_group_name="sqlcrudtest-6852",
    sql_pool_name="sqlcrudtest-9187",
    start_time="12:00",
    workload_classifier_name="wlm_workloadclassifier",
    workload_group_name="wlm_workloadgroup",
    workspace_name="sqlcrudtest-2080")
Copy
resources:
  sqlPoolWorkloadClassifier:
    type: azure-native:synapse:SqlPoolWorkloadClassifier
    properties:
      context: test_context
      endTime: 14:00
      importance: high
      label: test_label
      memberName: dbo
      resourceGroupName: sqlcrudtest-6852
      sqlPoolName: sqlcrudtest-9187
      startTime: 12:00
      workloadClassifierName: wlm_workloadclassifier
      workloadGroupName: wlm_workloadgroup
      workspaceName: sqlcrudtest-2080
Copy

Create a workload classifier with the required properties specified.

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var sqlPoolWorkloadClassifier = new AzureNative.Synapse.SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifier", new()
    {
        MemberName = "dbo",
        ResourceGroupName = "sqlcrudtest-6852",
        SqlPoolName = "sqlcrudtest-9187",
        WorkloadClassifierName = "wlm_workloadclassifier",
        WorkloadGroupName = "wlm_workloadgroup",
        WorkspaceName = "sqlcrudtest-2080",
    });

});
Copy
package main

import (
	synapse "github.com/pulumi/pulumi-azure-native-sdk/synapse/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := synapse.NewSqlPoolWorkloadClassifier(ctx, "sqlPoolWorkloadClassifier", &synapse.SqlPoolWorkloadClassifierArgs{
			MemberName:             pulumi.String("dbo"),
			ResourceGroupName:      pulumi.String("sqlcrudtest-6852"),
			SqlPoolName:            pulumi.String("sqlcrudtest-9187"),
			WorkloadClassifierName: pulumi.String("wlm_workloadclassifier"),
			WorkloadGroupName:      pulumi.String("wlm_workloadgroup"),
			WorkspaceName:          pulumi.String("sqlcrudtest-2080"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.synapse.SqlPoolWorkloadClassifier;
import com.pulumi.azurenative.synapse.SqlPoolWorkloadClassifierArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var sqlPoolWorkloadClassifier = new SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifier", SqlPoolWorkloadClassifierArgs.builder()
            .memberName("dbo")
            .resourceGroupName("sqlcrudtest-6852")
            .sqlPoolName("sqlcrudtest-9187")
            .workloadClassifierName("wlm_workloadclassifier")
            .workloadGroupName("wlm_workloadgroup")
            .workspaceName("sqlcrudtest-2080")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const sqlPoolWorkloadClassifier = new azure_native.synapse.SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifier", {
    memberName: "dbo",
    resourceGroupName: "sqlcrudtest-6852",
    sqlPoolName: "sqlcrudtest-9187",
    workloadClassifierName: "wlm_workloadclassifier",
    workloadGroupName: "wlm_workloadgroup",
    workspaceName: "sqlcrudtest-2080",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

sql_pool_workload_classifier = azure_native.synapse.SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifier",
    member_name="dbo",
    resource_group_name="sqlcrudtest-6852",
    sql_pool_name="sqlcrudtest-9187",
    workload_classifier_name="wlm_workloadclassifier",
    workload_group_name="wlm_workloadgroup",
    workspace_name="sqlcrudtest-2080")
Copy
resources:
  sqlPoolWorkloadClassifier:
    type: azure-native:synapse:SqlPoolWorkloadClassifier
    properties:
      memberName: dbo
      resourceGroupName: sqlcrudtest-6852
      sqlPoolName: sqlcrudtest-9187
      workloadClassifierName: wlm_workloadclassifier
      workloadGroupName: wlm_workloadgroup
      workspaceName: sqlcrudtest-2080
Copy

Create SqlPoolWorkloadClassifier Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new SqlPoolWorkloadClassifier(name: string, args: SqlPoolWorkloadClassifierArgs, opts?: CustomResourceOptions);
@overload
def SqlPoolWorkloadClassifier(resource_name: str,
                              args: SqlPoolWorkloadClassifierArgs,
                              opts: Optional[ResourceOptions] = None)

@overload
def SqlPoolWorkloadClassifier(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              member_name: Optional[str] = None,
                              resource_group_name: Optional[str] = None,
                              sql_pool_name: Optional[str] = None,
                              workload_group_name: Optional[str] = None,
                              workspace_name: Optional[str] = None,
                              context: Optional[str] = None,
                              end_time: Optional[str] = None,
                              importance: Optional[str] = None,
                              label: Optional[str] = None,
                              start_time: Optional[str] = None,
                              workload_classifier_name: Optional[str] = None)
func NewSqlPoolWorkloadClassifier(ctx *Context, name string, args SqlPoolWorkloadClassifierArgs, opts ...ResourceOption) (*SqlPoolWorkloadClassifier, error)
public SqlPoolWorkloadClassifier(string name, SqlPoolWorkloadClassifierArgs args, CustomResourceOptions? opts = null)
public SqlPoolWorkloadClassifier(String name, SqlPoolWorkloadClassifierArgs args)
public SqlPoolWorkloadClassifier(String name, SqlPoolWorkloadClassifierArgs args, CustomResourceOptions options)
type: azure-native:synapse:SqlPoolWorkloadClassifier
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SqlPoolWorkloadClassifierArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SqlPoolWorkloadClassifierArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SqlPoolWorkloadClassifierArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SqlPoolWorkloadClassifierArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SqlPoolWorkloadClassifierArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var sqlPoolWorkloadClassifierResource = new AzureNative.Synapse.SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifierResource", new()
{
    MemberName = "string",
    ResourceGroupName = "string",
    SqlPoolName = "string",
    WorkloadGroupName = "string",
    WorkspaceName = "string",
    Context = "string",
    EndTime = "string",
    Importance = "string",
    Label = "string",
    StartTime = "string",
    WorkloadClassifierName = "string",
});
Copy
example, err := synapse.NewSqlPoolWorkloadClassifier(ctx, "sqlPoolWorkloadClassifierResource", &synapse.SqlPoolWorkloadClassifierArgs{
	MemberName:             "string",
	ResourceGroupName:      "string",
	SqlPoolName:            "string",
	WorkloadGroupName:      "string",
	WorkspaceName:          "string",
	Context:                "string",
	EndTime:                "string",
	Importance:             "string",
	Label:                  "string",
	StartTime:              "string",
	WorkloadClassifierName: "string",
})
Copy
var sqlPoolWorkloadClassifierResource = new SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifierResource", SqlPoolWorkloadClassifierArgs.builder()
    .memberName("string")
    .resourceGroupName("string")
    .sqlPoolName("string")
    .workloadGroupName("string")
    .workspaceName("string")
    .context("string")
    .endTime("string")
    .importance("string")
    .label("string")
    .startTime("string")
    .workloadClassifierName("string")
    .build());
Copy
sql_pool_workload_classifier_resource = azure_native.synapse.SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifierResource",
    member_name=string,
    resource_group_name=string,
    sql_pool_name=string,
    workload_group_name=string,
    workspace_name=string,
    context=string,
    end_time=string,
    importance=string,
    label=string,
    start_time=string,
    workload_classifier_name=string)
Copy
const sqlPoolWorkloadClassifierResource = new azure_native.synapse.SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifierResource", {
    memberName: "string",
    resourceGroupName: "string",
    sqlPoolName: "string",
    workloadGroupName: "string",
    workspaceName: "string",
    context: "string",
    endTime: "string",
    importance: "string",
    label: "string",
    startTime: "string",
    workloadClassifierName: "string",
});
Copy
type: azure-native:synapse:SqlPoolWorkloadClassifier
properties:
    context: string
    endTime: string
    importance: string
    label: string
    memberName: string
    resourceGroupName: string
    sqlPoolName: string
    startTime: string
    workloadClassifierName: string
    workloadGroupName: string
    workspaceName: string
Copy

SqlPoolWorkloadClassifier Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The SqlPoolWorkloadClassifier resource accepts the following input properties:

MemberName This property is required. string
The workload classifier member name.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
SqlPoolName
This property is required.
Changes to this property will trigger replacement.
string
SQL pool name
WorkloadGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workload group.
WorkspaceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workspace.
Context string
The workload classifier context.
EndTime string
The workload classifier end time for classification.
Importance string
The workload classifier importance.
Label string
The workload classifier label.
StartTime string
The workload classifier start time for classification.
WorkloadClassifierName Changes to this property will trigger replacement. string
The name of the workload classifier.
MemberName This property is required. string
The workload classifier member name.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
SqlPoolName
This property is required.
Changes to this property will trigger replacement.
string
SQL pool name
WorkloadGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workload group.
WorkspaceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workspace.
Context string
The workload classifier context.
EndTime string
The workload classifier end time for classification.
Importance string
The workload classifier importance.
Label string
The workload classifier label.
StartTime string
The workload classifier start time for classification.
WorkloadClassifierName Changes to this property will trigger replacement. string
The name of the workload classifier.
memberName This property is required. String
The workload classifier member name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
sqlPoolName
This property is required.
Changes to this property will trigger replacement.
String
SQL pool name
workloadGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the workload group.
workspaceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the workspace.
context String
The workload classifier context.
endTime String
The workload classifier end time for classification.
importance String
The workload classifier importance.
label String
The workload classifier label.
startTime String
The workload classifier start time for classification.
workloadClassifierName Changes to this property will trigger replacement. String
The name of the workload classifier.
memberName This property is required. string
The workload classifier member name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
sqlPoolName
This property is required.
Changes to this property will trigger replacement.
string
SQL pool name
workloadGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workload group.
workspaceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workspace.
context string
The workload classifier context.
endTime string
The workload classifier end time for classification.
importance string
The workload classifier importance.
label string
The workload classifier label.
startTime string
The workload classifier start time for classification.
workloadClassifierName Changes to this property will trigger replacement. string
The name of the workload classifier.
member_name This property is required. str
The workload classifier member name.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
sql_pool_name
This property is required.
Changes to this property will trigger replacement.
str
SQL pool name
workload_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the workload group.
workspace_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the workspace.
context str
The workload classifier context.
end_time str
The workload classifier end time for classification.
importance str
The workload classifier importance.
label str
The workload classifier label.
start_time str
The workload classifier start time for classification.
workload_classifier_name Changes to this property will trigger replacement. str
The name of the workload classifier.
memberName This property is required. String
The workload classifier member name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
sqlPoolName
This property is required.
Changes to this property will trigger replacement.
String
SQL pool name
workloadGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the workload group.
workspaceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the workspace.
context String
The workload classifier context.
endTime String
The workload classifier end time for classification.
importance String
The workload classifier importance.
label String
The workload classifier label.
startTime String
The workload classifier start time for classification.
workloadClassifierName Changes to this property will trigger replacement. String
The name of the workload classifier.

Outputs

All input properties are implicitly available as output properties. Additionally, the SqlPoolWorkloadClassifier resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:synapse:SqlPoolWorkloadClassifier wlm_workloadclassifier /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0