Scheduler Args
data class SchedulerArgs(val location: Output<String>? = null, val properties: Output<SchedulerPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val schedulerName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<SchedulerArgs>
A Durable Task Scheduler resource Uses Azure REST API version 2024-10-01-preview. In version 2.x of the Azure Native provider, it used API version 2024-10-01-preview. Other available API versions: 2025-04-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native durabletask [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
Schedulers_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var scheduler = new AzureNative.DurableTask.Scheduler("scheduler", new()
{
Location = "northcentralus",
Properties = new AzureNative.DurableTask.Inputs.SchedulerPropertiesArgs
{
IpAllowlist = new[]
{
"10.0.0.0/8",
},
Sku = new AzureNative.DurableTask.Inputs.SchedulerSkuArgs
{
Name = "Dedicated",
},
},
ResourceGroupName = "rgopenapi",
SchedulerName = "testscheduler",
Tags =
{
{ "key2138", "fjaeecgnvqd" },
{ "key7131", "ryohwcoiccwsnewjigfmijz" },
},
});
});
Content copied to clipboard
package main
import (
durabletask "github.com/pulumi/pulumi-azure-native-sdk/durabletask/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := durabletask.NewScheduler(ctx, "scheduler", &durabletask.SchedulerArgs{
Location: pulumi.String("northcentralus"),
Properties: &durabletask.SchedulerPropertiesArgs{
IpAllowlist: pulumi.StringArray{
pulumi.String("10.0.0.0/8"),
},
Sku: &durabletask.SchedulerSkuArgs{
Name: pulumi.String("Dedicated"),
},
},
ResourceGroupName: pulumi.String("rgopenapi"),
SchedulerName: pulumi.String("testscheduler"),
Tags: pulumi.StringMap{
"key2138": pulumi.String("fjaeecgnvqd"),
"key7131": pulumi.String("ryohwcoiccwsnewjigfmijz"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.durabletask.Scheduler;
import com.pulumi.azurenative.durabletask.SchedulerArgs;
import com.pulumi.azurenative.durabletask.inputs.SchedulerPropertiesArgs;
import com.pulumi.azurenative.durabletask.inputs.SchedulerSkuArgs;
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 scheduler = new Scheduler("scheduler", SchedulerArgs.builder()
.location("northcentralus")
.properties(SchedulerPropertiesArgs.builder()
.ipAllowlist("10.0.0.0/8")
.sku(SchedulerSkuArgs.builder()
.name("Dedicated")
.build())
.build())
.resourceGroupName("rgopenapi")
.schedulerName("testscheduler")
.tags(Map.ofEntries(
Map.entry("key2138", "fjaeecgnvqd"),
Map.entry("key7131", "ryohwcoiccwsnewjigfmijz")
))
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:durabletask:Scheduler fwxpolhofploqzwdooyg /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}
Content copied to clipboard