Use Pulumi's new import command to generate code from existing cloud resources. Learn More

SqlPoolWorkloadGroup

Workload group operations for a sql pool

Example Usage

Create a workload group with all properties specified.

using Pulumi;
using AzureNextGen = Pulumi.AzureNextGen;

class MyStack : Stack
{
    public MyStack()
    {
        var sqlPoolWorkloadGroup = new AzureNextGen.Synapse.V20190601Preview.SqlPoolWorkloadGroup("sqlPoolWorkloadGroup", new AzureNextGen.Synapse.V20190601Preview.SqlPoolWorkloadGroupArgs
        {
            Importance = "normal",
            MaxResourcePercent = 100,
            MaxResourcePercentPerRequest = 3,
            MinResourcePercent = 0,
            MinResourcePercentPerRequest = 3,
            QueryExecutionTimeout = 0,
            ResourceGroupName = "sqlcrudtest-6852",
            SqlPoolName = "sqlcrudtest-9187",
            WorkloadGroupName = "smallrc",
            WorkspaceName = "sqlcrudtest-2080",
        });
    }

}
package main

import (
    synapse "github.com/pulumi/pulumi-azure-nextgen/sdk/go/azure/synapse/v20190601preview"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := synapse.NewSqlPoolWorkloadGroup(ctx, "sqlPoolWorkloadGroup", &synapse.SqlPoolWorkloadGroupArgs{
            Importance:                   pulumi.String("normal"),
            MaxResourcePercent:           pulumi.Int(100),
            MaxResourcePercentPerRequest: pulumi.Float64(3),
            MinResourcePercent:           pulumi.Int(0),
            MinResourcePercentPerRequest: pulumi.Float64(3),
            QueryExecutionTimeout:        pulumi.Int(0),
            ResourceGroupName:            pulumi.String("sqlcrudtest-6852"),
            SqlPoolName:                  pulumi.String("sqlcrudtest-9187"),
            WorkloadGroupName:            pulumi.String("smallrc"),
            WorkspaceName:                pulumi.String("sqlcrudtest-2080"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure_nextgen as azure_nextgen

sql_pool_workload_group = azure_nextgen.synapse.v20190601preview.SqlPoolWorkloadGroup("sqlPoolWorkloadGroup",
    importance="normal",
    max_resource_percent=100,
    max_resource_percent_per_request=3,
    min_resource_percent=0,
    min_resource_percent_per_request=3,
    query_execution_timeout=0,
    resource_group_name="sqlcrudtest-6852",
    sql_pool_name="sqlcrudtest-9187",
    workload_group_name="smallrc",
    workspace_name="sqlcrudtest-2080")
import * as pulumi from "@pulumi/pulumi";
import * as azure_nextgen from "@pulumi/azure-nextgen";

const sqlPoolWorkloadGroup = new azure_nextgen.synapse.v20190601preview.SqlPoolWorkloadGroup("sqlPoolWorkloadGroup", {
    importance: "normal",
    maxResourcePercent: 100,
    maxResourcePercentPerRequest: 3,
    minResourcePercent: 0,
    minResourcePercentPerRequest: 3,
    queryExecutionTimeout: 0,
    resourceGroupName: "sqlcrudtest-6852",
    sqlPoolName: "sqlcrudtest-9187",
    workloadGroupName: "smallrc",
    workspaceName: "sqlcrudtest-2080",
});

Create a workload group with the required properties specified.

using Pulumi;
using AzureNextGen = Pulumi.AzureNextGen;

class MyStack : Stack
{
    public MyStack()
    {
        var sqlPoolWorkloadGroup = new AzureNextGen.Synapse.V20190601Preview.SqlPoolWorkloadGroup("sqlPoolWorkloadGroup", new AzureNextGen.Synapse.V20190601Preview.SqlPoolWorkloadGroupArgs
        {
            MaxResourcePercent = 100,
            MinResourcePercent = 0,
            MinResourcePercentPerRequest = 3,
            ResourceGroupName = "sqlcrudtest-6852",
            SqlPoolName = "sqlcrudtest-9187",
            WorkloadGroupName = "smallrc",
            WorkspaceName = "sqlcrudtest-2080",
        });
    }

}
package main

import (
    synapse "github.com/pulumi/pulumi-azure-nextgen/sdk/go/azure/synapse/v20190601preview"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := synapse.NewSqlPoolWorkloadGroup(ctx, "sqlPoolWorkloadGroup", &synapse.SqlPoolWorkloadGroupArgs{
            MaxResourcePercent:           pulumi.Int(100),
            MinResourcePercent:           pulumi.Int(0),
            MinResourcePercentPerRequest: pulumi.Float64(3),
            ResourceGroupName:            pulumi.String("sqlcrudtest-6852"),
            SqlPoolName:                  pulumi.String("sqlcrudtest-9187"),
            WorkloadGroupName:            pulumi.String("smallrc"),
            WorkspaceName:                pulumi.String("sqlcrudtest-2080"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure_nextgen as azure_nextgen

sql_pool_workload_group = azure_nextgen.synapse.v20190601preview.SqlPoolWorkloadGroup("sqlPoolWorkloadGroup",
    max_resource_percent=100,
    min_resource_percent=0,
    min_resource_percent_per_request=3,
    resource_group_name="sqlcrudtest-6852",
    sql_pool_name="sqlcrudtest-9187",
    workload_group_name="smallrc",
    workspace_name="sqlcrudtest-2080")
import * as pulumi from "@pulumi/pulumi";
import * as azure_nextgen from "@pulumi/azure-nextgen";

const sqlPoolWorkloadGroup = new azure_nextgen.synapse.v20190601preview.SqlPoolWorkloadGroup("sqlPoolWorkloadGroup", {
    maxResourcePercent: 100,
    minResourcePercent: 0,
    minResourcePercentPerRequest: 3,
    resourceGroupName: "sqlcrudtest-6852",
    sqlPoolName: "sqlcrudtest-9187",
    workloadGroupName: "smallrc",
    workspaceName: "sqlcrudtest-2080",
});

Create a SqlPoolWorkloadGroup Resource

new SqlPoolWorkloadGroup(name: string, args: SqlPoolWorkloadGroupArgs, opts?: CustomResourceOptions);
def SqlPoolWorkloadGroup(resource_name: str, opts: Optional[ResourceOptions] = None, importance: Optional[str] = None, max_resource_percent: Optional[int] = None, max_resource_percent_per_request: Optional[float] = None, min_resource_percent: Optional[int] = None, min_resource_percent_per_request: Optional[float] = None, query_execution_timeout: Optional[int] = None, resource_group_name: Optional[str] = None, sql_pool_name: Optional[str] = None, workload_group_name: Optional[str] = None, workspace_name: Optional[str] = None)
func NewSqlPoolWorkloadGroup(ctx *Context, name string, args SqlPoolWorkloadGroupArgs, opts ...ResourceOption) (*SqlPoolWorkloadGroup, error)
public SqlPoolWorkloadGroup(string name, SqlPoolWorkloadGroupArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args SqlPoolWorkloadGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args SqlPoolWorkloadGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SqlPoolWorkloadGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

SqlPoolWorkloadGroup Resource Properties

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

Inputs

The SqlPoolWorkloadGroup resource accepts the following input properties:

MaxResourcePercent int
The workload group cap percentage resource.
MinResourcePercent int
The workload group minimum percentage resource.
MinResourcePercentPerRequest double
The workload group request minimum grant percentage.
ResourceGroupName string
The name of the resource group. The name is case insensitive.
SqlPoolName string
SQL pool name
WorkloadGroupName string
The name of the workload group.
WorkspaceName string
The name of the workspace
Importance string
The workload group importance level.
MaxResourcePercentPerRequest double
The workload group request maximum grant percentage.
QueryExecutionTimeout int
The workload group query execution timeout.
MaxResourcePercent int
The workload group cap percentage resource.
MinResourcePercent int
The workload group minimum percentage resource.
MinResourcePercentPerRequest float64
The workload group request minimum grant percentage.
ResourceGroupName string
The name of the resource group. The name is case insensitive.
SqlPoolName string
SQL pool name
WorkloadGroupName string
The name of the workload group.
WorkspaceName string
The name of the workspace
Importance string
The workload group importance level.
MaxResourcePercentPerRequest float64
The workload group request maximum grant percentage.
QueryExecutionTimeout int
The workload group query execution timeout.
maxResourcePercent number
The workload group cap percentage resource.
minResourcePercent number
The workload group minimum percentage resource.
minResourcePercentPerRequest number
The workload group request minimum grant percentage.
resourceGroupName string
The name of the resource group. The name is case insensitive.
sqlPoolName string
SQL pool name
workloadGroupName string
The name of the workload group.
workspaceName string
The name of the workspace
importance string
The workload group importance level.
maxResourcePercentPerRequest number
The workload group request maximum grant percentage.
queryExecutionTimeout number
The workload group query execution timeout.
max_resource_percent int
The workload group cap percentage resource.
min_resource_percent int
The workload group minimum percentage resource.
min_resource_percent_per_request float
The workload group request minimum grant percentage.
resource_group_name str
The name of the resource group. The name is case insensitive.
sql_pool_name str
SQL pool name
workload_group_name str
The name of the workload group.
workspace_name str
The name of the workspace
importance str
The workload group importance level.
max_resource_percent_per_request float
The workload group request maximum grant percentage.
query_execution_timeout int
The workload group query execution timeout.

Outputs

All input properties are implicitly available as output properties. Additionally, the SqlPoolWorkloadGroup 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 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”

Import

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

$ pulumi import azure-nextgen:synapse/v20190601preview:SqlPoolWorkloadGroup smallrc /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/workloadGroups/smallrc 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-nextgen
License
Apache-2.0