1. Packages
  2. Azure Native
  3. API Docs
  4. sql
  5. WorkloadClassifier
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

azure-native.sql.WorkloadClassifier

Explore with Pulumi AI

Workload classifier operations for a data warehouse

Uses Azure REST API version 2023-08-01. In version 2.x of the Azure Native provider, it used API version 2021-11-01.

Other available API versions: 2019-06-01-preview, 2020-02-02-preview, 2020-08-01-preview, 2020-11-01-preview, 2021-02-01-preview, 2021-05-01-preview, 2021-08-01-preview, 2021-11-01, 2021-11-01-preview, 2022-02-01-preview, 2022-05-01-preview, 2022-08-01-preview, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native sql [ApiVersion]. See the version guide for details.

Example Usage

Create a workload group with all properties specified.

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

return await Deployment.RunAsync(() => 
{
    var workloadClassifier = new AzureNative.Sql.WorkloadClassifier("workloadClassifier", new()
    {
        Context = "test_context",
        DatabaseName = "testdb",
        EndTime = "14:00",
        Importance = "high",
        Label = "test_label",
        MemberName = "dbo",
        ResourceGroupName = "Default-SQL-SouthEastAsia",
        ServerName = "testsvr",
        StartTime = "12:00",
        WorkloadClassifierName = "wlm_workloadclassifier",
        WorkloadGroupName = "wlm_workloadgroup",
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sql.NewWorkloadClassifier(ctx, "workloadClassifier", &sql.WorkloadClassifierArgs{
			Context:                pulumi.String("test_context"),
			DatabaseName:           pulumi.String("testdb"),
			EndTime:                pulumi.String("14:00"),
			Importance:             pulumi.String("high"),
			Label:                  pulumi.String("test_label"),
			MemberName:             pulumi.String("dbo"),
			ResourceGroupName:      pulumi.String("Default-SQL-SouthEastAsia"),
			ServerName:             pulumi.String("testsvr"),
			StartTime:              pulumi.String("12:00"),
			WorkloadClassifierName: pulumi.String("wlm_workloadclassifier"),
			WorkloadGroupName:      pulumi.String("wlm_workloadgroup"),
		})
		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.sql.WorkloadClassifier;
import com.pulumi.azurenative.sql.WorkloadClassifierArgs;
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 workloadClassifier = new WorkloadClassifier("workloadClassifier", WorkloadClassifierArgs.builder()
            .context("test_context")
            .databaseName("testdb")
            .endTime("14:00")
            .importance("high")
            .label("test_label")
            .memberName("dbo")
            .resourceGroupName("Default-SQL-SouthEastAsia")
            .serverName("testsvr")
            .startTime("12:00")
            .workloadClassifierName("wlm_workloadclassifier")
            .workloadGroupName("wlm_workloadgroup")
            .build());

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

const workloadClassifier = new azure_native.sql.WorkloadClassifier("workloadClassifier", {
    context: "test_context",
    databaseName: "testdb",
    endTime: "14:00",
    importance: "high",
    label: "test_label",
    memberName: "dbo",
    resourceGroupName: "Default-SQL-SouthEastAsia",
    serverName: "testsvr",
    startTime: "12:00",
    workloadClassifierName: "wlm_workloadclassifier",
    workloadGroupName: "wlm_workloadgroup",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

workload_classifier = azure_native.sql.WorkloadClassifier("workloadClassifier",
    context="test_context",
    database_name="testdb",
    end_time="14:00",
    importance="high",
    label="test_label",
    member_name="dbo",
    resource_group_name="Default-SQL-SouthEastAsia",
    server_name="testsvr",
    start_time="12:00",
    workload_classifier_name="wlm_workloadclassifier",
    workload_group_name="wlm_workloadgroup")
Copy
resources:
  workloadClassifier:
    type: azure-native:sql:WorkloadClassifier
    properties:
      context: test_context
      databaseName: testdb
      endTime: 14:00
      importance: high
      label: test_label
      memberName: dbo
      resourceGroupName: Default-SQL-SouthEastAsia
      serverName: testsvr
      startTime: 12:00
      workloadClassifierName: wlm_workloadclassifier
      workloadGroupName: wlm_workloadgroup
Copy

Create a workload group with the required properties specified.

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

return await Deployment.RunAsync(() => 
{
    var workloadClassifier = new AzureNative.Sql.WorkloadClassifier("workloadClassifier", new()
    {
        DatabaseName = "testdb",
        MemberName = "dbo",
        ResourceGroupName = "Default-SQL-SouthEastAsia",
        ServerName = "testsvr",
        WorkloadClassifierName = "wlm_workloadclassifier",
        WorkloadGroupName = "wlm_workloadgroup",
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sql.NewWorkloadClassifier(ctx, "workloadClassifier", &sql.WorkloadClassifierArgs{
			DatabaseName:           pulumi.String("testdb"),
			MemberName:             pulumi.String("dbo"),
			ResourceGroupName:      pulumi.String("Default-SQL-SouthEastAsia"),
			ServerName:             pulumi.String("testsvr"),
			WorkloadClassifierName: pulumi.String("wlm_workloadclassifier"),
			WorkloadGroupName:      pulumi.String("wlm_workloadgroup"),
		})
		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.sql.WorkloadClassifier;
import com.pulumi.azurenative.sql.WorkloadClassifierArgs;
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 workloadClassifier = new WorkloadClassifier("workloadClassifier", WorkloadClassifierArgs.builder()
            .databaseName("testdb")
            .memberName("dbo")
            .resourceGroupName("Default-SQL-SouthEastAsia")
            .serverName("testsvr")
            .workloadClassifierName("wlm_workloadclassifier")
            .workloadGroupName("wlm_workloadgroup")
            .build());

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

const workloadClassifier = new azure_native.sql.WorkloadClassifier("workloadClassifier", {
    databaseName: "testdb",
    memberName: "dbo",
    resourceGroupName: "Default-SQL-SouthEastAsia",
    serverName: "testsvr",
    workloadClassifierName: "wlm_workloadclassifier",
    workloadGroupName: "wlm_workloadgroup",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

workload_classifier = azure_native.sql.WorkloadClassifier("workloadClassifier",
    database_name="testdb",
    member_name="dbo",
    resource_group_name="Default-SQL-SouthEastAsia",
    server_name="testsvr",
    workload_classifier_name="wlm_workloadclassifier",
    workload_group_name="wlm_workloadgroup")
Copy
resources:
  workloadClassifier:
    type: azure-native:sql:WorkloadClassifier
    properties:
      databaseName: testdb
      memberName: dbo
      resourceGroupName: Default-SQL-SouthEastAsia
      serverName: testsvr
      workloadClassifierName: wlm_workloadclassifier
      workloadGroupName: wlm_workloadgroup
Copy

Create WorkloadClassifier Resource

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

Constructor syntax

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

@overload
def WorkloadClassifier(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       database_name: Optional[str] = None,
                       member_name: Optional[str] = None,
                       resource_group_name: Optional[str] = None,
                       server_name: Optional[str] = None,
                       workload_group_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 NewWorkloadClassifier(ctx *Context, name string, args WorkloadClassifierArgs, opts ...ResourceOption) (*WorkloadClassifier, error)
public WorkloadClassifier(string name, WorkloadClassifierArgs args, CustomResourceOptions? opts = null)
public WorkloadClassifier(String name, WorkloadClassifierArgs args)
public WorkloadClassifier(String name, WorkloadClassifierArgs args, CustomResourceOptions options)
type: azure-native:sql:WorkloadClassifier
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. WorkloadClassifierArgs
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. WorkloadClassifierArgs
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. WorkloadClassifierArgs
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. WorkloadClassifierArgs
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. WorkloadClassifierArgs
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 workloadClassifierResource = new AzureNative.Sql.WorkloadClassifier("workloadClassifierResource", new()
{
    DatabaseName = "string",
    MemberName = "string",
    ResourceGroupName = "string",
    ServerName = "string",
    WorkloadGroupName = "string",
    Context = "string",
    EndTime = "string",
    Importance = "string",
    Label = "string",
    StartTime = "string",
    WorkloadClassifierName = "string",
});
Copy
example, err := sql.NewWorkloadClassifier(ctx, "workloadClassifierResource", &sql.WorkloadClassifierArgs{
	DatabaseName:           pulumi.String("string"),
	MemberName:             pulumi.String("string"),
	ResourceGroupName:      pulumi.String("string"),
	ServerName:             pulumi.String("string"),
	WorkloadGroupName:      pulumi.String("string"),
	Context:                pulumi.String("string"),
	EndTime:                pulumi.String("string"),
	Importance:             pulumi.String("string"),
	Label:                  pulumi.String("string"),
	StartTime:              pulumi.String("string"),
	WorkloadClassifierName: pulumi.String("string"),
})
Copy
var workloadClassifierResource = new WorkloadClassifier("workloadClassifierResource", WorkloadClassifierArgs.builder()
    .databaseName("string")
    .memberName("string")
    .resourceGroupName("string")
    .serverName("string")
    .workloadGroupName("string")
    .context("string")
    .endTime("string")
    .importance("string")
    .label("string")
    .startTime("string")
    .workloadClassifierName("string")
    .build());
Copy
workload_classifier_resource = azure_native.sql.WorkloadClassifier("workloadClassifierResource",
    database_name="string",
    member_name="string",
    resource_group_name="string",
    server_name="string",
    workload_group_name="string",
    context="string",
    end_time="string",
    importance="string",
    label="string",
    start_time="string",
    workload_classifier_name="string")
Copy
const workloadClassifierResource = new azure_native.sql.WorkloadClassifier("workloadClassifierResource", {
    databaseName: "string",
    memberName: "string",
    resourceGroupName: "string",
    serverName: "string",
    workloadGroupName: "string",
    context: "string",
    endTime: "string",
    importance: "string",
    label: "string",
    startTime: "string",
    workloadClassifierName: "string",
});
Copy
type: azure-native:sql:WorkloadClassifier
properties:
    context: string
    databaseName: string
    endTime: string
    importance: string
    label: string
    memberName: string
    resourceGroupName: string
    serverName: string
    startTime: string
    workloadClassifierName: string
    workloadGroupName: string
Copy

WorkloadClassifier 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 WorkloadClassifier resource accepts the following input properties:

DatabaseName
This property is required.
Changes to this property will trigger replacement.
string
The name of the database.
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 that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
ServerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the server.
WorkloadGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workload group from which to receive the classifier from.
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 to create/update.
DatabaseName
This property is required.
Changes to this property will trigger replacement.
string
The name of the database.
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 that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
ServerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the server.
WorkloadGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workload group from which to receive the classifier from.
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 to create/update.
databaseName
This property is required.
Changes to this property will trigger replacement.
String
The name of the database.
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 that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverName
This property is required.
Changes to this property will trigger replacement.
String
The name of the server.
workloadGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the workload group from which to receive the classifier from.
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 to create/update.
databaseName
This property is required.
Changes to this property will trigger replacement.
string
The name of the database.
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 that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverName
This property is required.
Changes to this property will trigger replacement.
string
The name of the server.
workloadGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workload group from which to receive the classifier from.
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 to create/update.
database_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the database.
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 that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
server_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the server.
workload_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the workload group from which to receive the classifier from.
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 to create/update.
databaseName
This property is required.
Changes to this property will trigger replacement.
String
The name of the database.
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 that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverName
This property is required.
Changes to this property will trigger replacement.
String
The name of the server.
workloadGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the workload group from which to receive the classifier from.
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 to create/update.

Outputs

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

AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name.
Type string
Resource type.
AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name.
Type string
Resource type.
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
Resource name.
type String
Resource type.
azureApiVersion string
The Azure API version of the resource.
id string
The provider-assigned unique ID for this managed resource.
name string
Resource name.
type string
Resource type.
azure_api_version str
The Azure API version of the resource.
id str
The provider-assigned unique ID for this managed resource.
name str
Resource name.
type str
Resource type.
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
Resource name.
type String
Resource type.

Import

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

$ pulumi import azure-native:sql:WorkloadClassifier wlm_workloadclassifier /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName} 
Copy

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

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0