1. Packages
  2. Azure Classic
  3. API Docs
  4. devtest
  5. Schedule

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Manages automated startup and shutdown schedules for Azure Dev Test Lab.

    Example Usage

    using Pulumi;
    using Azure = Pulumi.Azure;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
            {
                Location = "West Europe",
            });
            var exampleLab = new Azure.DevTest.Lab("exampleLab", new Azure.DevTest.LabArgs
            {
                Location = exampleResourceGroup.Location,
                ResourceGroupName = exampleResourceGroup.Name,
            });
            var exampleSchedule = new Azure.DevTest.Schedule("exampleSchedule", new Azure.DevTest.ScheduleArgs
            {
                Location = exampleResourceGroup.Location,
                ResourceGroupName = exampleResourceGroup.Name,
                LabName = exampleLab.Name,
                WeeklyRecurrence = new Azure.DevTest.Inputs.ScheduleWeeklyRecurrenceArgs
                {
                    Time = "1100",
                    WeekDays = 
                    {
                        "Monday",
                        "Tuesday",
                    },
                },
                TimeZoneId = "Pacific Standard Time",
                TaskType = "LabVmsStartupTask",
                NotificationSettings = ,
                Tags = 
                {
                    { "environment", "Production" },
                },
            });
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/devtest"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleLab, err := devtest.NewLab(ctx, "exampleLab", &devtest.LabArgs{
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = devtest.NewSchedule(ctx, "exampleSchedule", &devtest.ScheduleArgs{
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    			LabName:           exampleLab.Name,
    			WeeklyRecurrence: &devtest.ScheduleWeeklyRecurrenceArgs{
    				Time: pulumi.String("1100"),
    				WeekDays: pulumi.StringArray{
    					pulumi.String("Monday"),
    					pulumi.String("Tuesday"),
    				},
    			},
    			TimeZoneId:           pulumi.String("Pacific Standard Time"),
    			TaskType:             pulumi.String("LabVmsStartupTask"),
    			NotificationSettings: nil,
    			Tags: pulumi.StringMap{
    				"environment": pulumi.String("Production"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
    const exampleLab = new azure.devtest.Lab("exampleLab", {
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
    });
    const exampleSchedule = new azure.devtest.Schedule("exampleSchedule", {
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
        labName: exampleLab.name,
        weeklyRecurrence: {
            time: "1100",
            weekDays: [
                "Monday",
                "Tuesday",
            ],
        },
        timeZoneId: "Pacific Standard Time",
        taskType: "LabVmsStartupTask",
        notificationSettings: {},
        tags: {
            environment: "Production",
        },
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
    example_lab = azure.devtest.Lab("exampleLab",
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name)
    example_schedule = azure.devtest.Schedule("exampleSchedule",
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name,
        lab_name=example_lab.name,
        weekly_recurrence=azure.devtest.ScheduleWeeklyRecurrenceArgs(
            time="1100",
            week_days=[
                "Monday",
                "Tuesday",
            ],
        ),
        time_zone_id="Pacific Standard Time",
        task_type="LabVmsStartupTask",
        notification_settings=azure.devtest.ScheduleNotificationSettingsArgs(),
        tags={
            "environment": "Production",
        })
    

    Example coming soon!

    Create Schedule Resource

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

    Constructor syntax

    new Schedule(name: string, args: ScheduleArgs, opts?: CustomResourceOptions);
    @overload
    def Schedule(resource_name: str,
                 args: ScheduleArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Schedule(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 lab_name: Optional[str] = None,
                 notification_settings: Optional[ScheduleNotificationSettingsArgs] = None,
                 resource_group_name: Optional[str] = None,
                 task_type: Optional[str] = None,
                 time_zone_id: Optional[str] = None,
                 daily_recurrence: Optional[ScheduleDailyRecurrenceArgs] = None,
                 hourly_recurrence: Optional[ScheduleHourlyRecurrenceArgs] = None,
                 location: Optional[str] = None,
                 name: Optional[str] = None,
                 status: Optional[str] = None,
                 tags: Optional[Mapping[str, str]] = None,
                 weekly_recurrence: Optional[ScheduleWeeklyRecurrenceArgs] = None)
    func NewSchedule(ctx *Context, name string, args ScheduleArgs, opts ...ResourceOption) (*Schedule, error)
    public Schedule(string name, ScheduleArgs args, CustomResourceOptions? opts = null)
    public Schedule(String name, ScheduleArgs args)
    public Schedule(String name, ScheduleArgs args, CustomResourceOptions options)
    
    type: azure:devtest:Schedule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ScheduleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ScheduleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ScheduleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ScheduleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ScheduleArgs
    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 azureScheduleResource = new Azure.DevTest.Schedule("azureScheduleResource", new()
    {
        LabName = "string",
        NotificationSettings = new Azure.DevTest.Inputs.ScheduleNotificationSettingsArgs
        {
            Status = "string",
            TimeInMinutes = 0,
            WebhookUrl = "string",
        },
        ResourceGroupName = "string",
        TaskType = "string",
        TimeZoneId = "string",
        DailyRecurrence = new Azure.DevTest.Inputs.ScheduleDailyRecurrenceArgs
        {
            Time = "string",
        },
        HourlyRecurrence = new Azure.DevTest.Inputs.ScheduleHourlyRecurrenceArgs
        {
            Minute = 0,
        },
        Location = "string",
        Name = "string",
        Status = "string",
        Tags = 
        {
            { "string", "string" },
        },
        WeeklyRecurrence = new Azure.DevTest.Inputs.ScheduleWeeklyRecurrenceArgs
        {
            Time = "string",
            WeekDays = new[]
            {
                "string",
            },
        },
    });
    
    example, err := devtest.NewSchedule(ctx, "azureScheduleResource", &devtest.ScheduleArgs{
    	LabName: pulumi.String("string"),
    	NotificationSettings: &devtest.ScheduleNotificationSettingsArgs{
    		Status:        pulumi.String("string"),
    		TimeInMinutes: pulumi.Int(0),
    		WebhookUrl:    pulumi.String("string"),
    	},
    	ResourceGroupName: pulumi.String("string"),
    	TaskType:          pulumi.String("string"),
    	TimeZoneId:        pulumi.String("string"),
    	DailyRecurrence: &devtest.ScheduleDailyRecurrenceArgs{
    		Time: pulumi.String("string"),
    	},
    	HourlyRecurrence: &devtest.ScheduleHourlyRecurrenceArgs{
    		Minute: pulumi.Int(0),
    	},
    	Location: pulumi.String("string"),
    	Name:     pulumi.String("string"),
    	Status:   pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	WeeklyRecurrence: &devtest.ScheduleWeeklyRecurrenceArgs{
    		Time: pulumi.String("string"),
    		WeekDays: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    })
    
    var azureScheduleResource = new com.pulumi.azure.devtest.Schedule("azureScheduleResource", com.pulumi.azure.devtest.ScheduleArgs.builder()
        .labName("string")
        .notificationSettings(ScheduleNotificationSettingsArgs.builder()
            .status("string")
            .timeInMinutes(0)
            .webhookUrl("string")
            .build())
        .resourceGroupName("string")
        .taskType("string")
        .timeZoneId("string")
        .dailyRecurrence(ScheduleDailyRecurrenceArgs.builder()
            .time("string")
            .build())
        .hourlyRecurrence(ScheduleHourlyRecurrenceArgs.builder()
            .minute(0)
            .build())
        .location("string")
        .name("string")
        .status("string")
        .tags(Map.of("string", "string"))
        .weeklyRecurrence(ScheduleWeeklyRecurrenceArgs.builder()
            .time("string")
            .weekDays("string")
            .build())
        .build());
    
    azure_schedule_resource = azure.devtest.Schedule("azureScheduleResource",
        lab_name="string",
        notification_settings={
            "status": "string",
            "time_in_minutes": 0,
            "webhook_url": "string",
        },
        resource_group_name="string",
        task_type="string",
        time_zone_id="string",
        daily_recurrence={
            "time": "string",
        },
        hourly_recurrence={
            "minute": 0,
        },
        location="string",
        name="string",
        status="string",
        tags={
            "string": "string",
        },
        weekly_recurrence={
            "time": "string",
            "week_days": ["string"],
        })
    
    const azureScheduleResource = new azure.devtest.Schedule("azureScheduleResource", {
        labName: "string",
        notificationSettings: {
            status: "string",
            timeInMinutes: 0,
            webhookUrl: "string",
        },
        resourceGroupName: "string",
        taskType: "string",
        timeZoneId: "string",
        dailyRecurrence: {
            time: "string",
        },
        hourlyRecurrence: {
            minute: 0,
        },
        location: "string",
        name: "string",
        status: "string",
        tags: {
            string: "string",
        },
        weeklyRecurrence: {
            time: "string",
            weekDays: ["string"],
        },
    });
    
    type: azure:devtest:Schedule
    properties:
        dailyRecurrence:
            time: string
        hourlyRecurrence:
            minute: 0
        labName: string
        location: string
        name: string
        notificationSettings:
            status: string
            timeInMinutes: 0
            webhookUrl: string
        resourceGroupName: string
        status: string
        tags:
            string: string
        taskType: string
        timeZoneId: string
        weeklyRecurrence:
            time: string
            weekDays:
                - string
    

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

    LabName string
    The name of the dev test lab. Changing this forces a new resource to be created.
    NotificationSettings ScheduleNotificationSettings
    ResourceGroupName string
    The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
    TaskType string
    The task type of the schedule. Possible values include LabVmsShutdownTask and LabVmAutoStart.
    TimeZoneId string
    The time zone ID (e.g. Pacific Standard time).
    DailyRecurrence ScheduleDailyRecurrence
    HourlyRecurrence ScheduleHourlyRecurrence
    Location string
    The location where the schedule is created. Changing this forces a new resource to be created.
    Name string
    The name of the dev test lab schedule. Valid value for name depends on the task_type. For instance for task_type LabVmsStartupTask the name needs to be LabVmAutoStart.
    Status string
    The status of this schedule. Possible values are Enabled and Disabled. Defaults to Disabled.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    WeeklyRecurrence ScheduleWeeklyRecurrence
    LabName string
    The name of the dev test lab. Changing this forces a new resource to be created.
    NotificationSettings ScheduleNotificationSettingsArgs
    ResourceGroupName string
    The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
    TaskType string
    The task type of the schedule. Possible values include LabVmsShutdownTask and LabVmAutoStart.
    TimeZoneId string
    The time zone ID (e.g. Pacific Standard time).
    DailyRecurrence ScheduleDailyRecurrenceArgs
    HourlyRecurrence ScheduleHourlyRecurrenceArgs
    Location string
    The location where the schedule is created. Changing this forces a new resource to be created.
    Name string
    The name of the dev test lab schedule. Valid value for name depends on the task_type. For instance for task_type LabVmsStartupTask the name needs to be LabVmAutoStart.
    Status string
    The status of this schedule. Possible values are Enabled and Disabled. Defaults to Disabled.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    WeeklyRecurrence ScheduleWeeklyRecurrenceArgs
    labName String
    The name of the dev test lab. Changing this forces a new resource to be created.
    notificationSettings ScheduleNotificationSettings
    resourceGroupName String
    The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
    taskType String
    The task type of the schedule. Possible values include LabVmsShutdownTask and LabVmAutoStart.
    timeZoneId String
    The time zone ID (e.g. Pacific Standard time).
    dailyRecurrence ScheduleDailyRecurrence
    hourlyRecurrence ScheduleHourlyRecurrence
    location String
    The location where the schedule is created. Changing this forces a new resource to be created.
    name String
    The name of the dev test lab schedule. Valid value for name depends on the task_type. For instance for task_type LabVmsStartupTask the name needs to be LabVmAutoStart.
    status String
    The status of this schedule. Possible values are Enabled and Disabled. Defaults to Disabled.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    weeklyRecurrence ScheduleWeeklyRecurrence
    labName string
    The name of the dev test lab. Changing this forces a new resource to be created.
    notificationSettings ScheduleNotificationSettings
    resourceGroupName string
    The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
    taskType string
    The task type of the schedule. Possible values include LabVmsShutdownTask and LabVmAutoStart.
    timeZoneId string
    The time zone ID (e.g. Pacific Standard time).
    dailyRecurrence ScheduleDailyRecurrence
    hourlyRecurrence ScheduleHourlyRecurrence
    location string
    The location where the schedule is created. Changing this forces a new resource to be created.
    name string
    The name of the dev test lab schedule. Valid value for name depends on the task_type. For instance for task_type LabVmsStartupTask the name needs to be LabVmAutoStart.
    status string
    The status of this schedule. Possible values are Enabled and Disabled. Defaults to Disabled.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    weeklyRecurrence ScheduleWeeklyRecurrence
    lab_name str
    The name of the dev test lab. Changing this forces a new resource to be created.
    notification_settings ScheduleNotificationSettingsArgs
    resource_group_name str
    The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
    task_type str
    The task type of the schedule. Possible values include LabVmsShutdownTask and LabVmAutoStart.
    time_zone_id str
    The time zone ID (e.g. Pacific Standard time).
    daily_recurrence ScheduleDailyRecurrenceArgs
    hourly_recurrence ScheduleHourlyRecurrenceArgs
    location str
    The location where the schedule is created. Changing this forces a new resource to be created.
    name str
    The name of the dev test lab schedule. Valid value for name depends on the task_type. For instance for task_type LabVmsStartupTask the name needs to be LabVmAutoStart.
    status str
    The status of this schedule. Possible values are Enabled and Disabled. Defaults to Disabled.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    weekly_recurrence ScheduleWeeklyRecurrenceArgs
    labName String
    The name of the dev test lab. Changing this forces a new resource to be created.
    notificationSettings Property Map
    resourceGroupName String
    The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
    taskType String
    The task type of the schedule. Possible values include LabVmsShutdownTask and LabVmAutoStart.
    timeZoneId String
    The time zone ID (e.g. Pacific Standard time).
    dailyRecurrence Property Map
    hourlyRecurrence Property Map
    location String
    The location where the schedule is created. Changing this forces a new resource to be created.
    name String
    The name of the dev test lab schedule. Valid value for name depends on the task_type. For instance for task_type LabVmsStartupTask the name needs to be LabVmAutoStart.
    status String
    The status of this schedule. Possible values are Enabled and Disabled. Defaults to Disabled.
    tags Map<String>
    A mapping of tags to assign to the resource.
    weeklyRecurrence Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Schedule Resource

    Get an existing Schedule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ScheduleState, opts?: CustomResourceOptions): Schedule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            daily_recurrence: Optional[ScheduleDailyRecurrenceArgs] = None,
            hourly_recurrence: Optional[ScheduleHourlyRecurrenceArgs] = None,
            lab_name: Optional[str] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            notification_settings: Optional[ScheduleNotificationSettingsArgs] = None,
            resource_group_name: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            task_type: Optional[str] = None,
            time_zone_id: Optional[str] = None,
            weekly_recurrence: Optional[ScheduleWeeklyRecurrenceArgs] = None) -> Schedule
    func GetSchedule(ctx *Context, name string, id IDInput, state *ScheduleState, opts ...ResourceOption) (*Schedule, error)
    public static Schedule Get(string name, Input<string> id, ScheduleState? state, CustomResourceOptions? opts = null)
    public static Schedule get(String name, Output<String> id, ScheduleState state, CustomResourceOptions options)
    resources:  _:    type: azure:devtest:Schedule    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    DailyRecurrence ScheduleDailyRecurrence
    HourlyRecurrence ScheduleHourlyRecurrence
    LabName string
    The name of the dev test lab. Changing this forces a new resource to be created.
    Location string
    The location where the schedule is created. Changing this forces a new resource to be created.
    Name string
    The name of the dev test lab schedule. Valid value for name depends on the task_type. For instance for task_type LabVmsStartupTask the name needs to be LabVmAutoStart.
    NotificationSettings ScheduleNotificationSettings
    ResourceGroupName string
    The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
    Status string
    The status of this schedule. Possible values are Enabled and Disabled. Defaults to Disabled.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    TaskType string
    The task type of the schedule. Possible values include LabVmsShutdownTask and LabVmAutoStart.
    TimeZoneId string
    The time zone ID (e.g. Pacific Standard time).
    WeeklyRecurrence ScheduleWeeklyRecurrence
    DailyRecurrence ScheduleDailyRecurrenceArgs
    HourlyRecurrence ScheduleHourlyRecurrenceArgs
    LabName string
    The name of the dev test lab. Changing this forces a new resource to be created.
    Location string
    The location where the schedule is created. Changing this forces a new resource to be created.
    Name string
    The name of the dev test lab schedule. Valid value for name depends on the task_type. For instance for task_type LabVmsStartupTask the name needs to be LabVmAutoStart.
    NotificationSettings ScheduleNotificationSettingsArgs
    ResourceGroupName string
    The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
    Status string
    The status of this schedule. Possible values are Enabled and Disabled. Defaults to Disabled.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    TaskType string
    The task type of the schedule. Possible values include LabVmsShutdownTask and LabVmAutoStart.
    TimeZoneId string
    The time zone ID (e.g. Pacific Standard time).
    WeeklyRecurrence ScheduleWeeklyRecurrenceArgs
    dailyRecurrence ScheduleDailyRecurrence
    hourlyRecurrence ScheduleHourlyRecurrence
    labName String
    The name of the dev test lab. Changing this forces a new resource to be created.
    location String
    The location where the schedule is created. Changing this forces a new resource to be created.
    name String
    The name of the dev test lab schedule. Valid value for name depends on the task_type. For instance for task_type LabVmsStartupTask the name needs to be LabVmAutoStart.
    notificationSettings ScheduleNotificationSettings
    resourceGroupName String
    The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
    status String
    The status of this schedule. Possible values are Enabled and Disabled. Defaults to Disabled.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    taskType String
    The task type of the schedule. Possible values include LabVmsShutdownTask and LabVmAutoStart.
    timeZoneId String
    The time zone ID (e.g. Pacific Standard time).
    weeklyRecurrence ScheduleWeeklyRecurrence
    dailyRecurrence ScheduleDailyRecurrence
    hourlyRecurrence ScheduleHourlyRecurrence
    labName string
    The name of the dev test lab. Changing this forces a new resource to be created.
    location string
    The location where the schedule is created. Changing this forces a new resource to be created.
    name string
    The name of the dev test lab schedule. Valid value for name depends on the task_type. For instance for task_type LabVmsStartupTask the name needs to be LabVmAutoStart.
    notificationSettings ScheduleNotificationSettings
    resourceGroupName string
    The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
    status string
    The status of this schedule. Possible values are Enabled and Disabled. Defaults to Disabled.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    taskType string
    The task type of the schedule. Possible values include LabVmsShutdownTask and LabVmAutoStart.
    timeZoneId string
    The time zone ID (e.g. Pacific Standard time).
    weeklyRecurrence ScheduleWeeklyRecurrence
    daily_recurrence ScheduleDailyRecurrenceArgs
    hourly_recurrence ScheduleHourlyRecurrenceArgs
    lab_name str
    The name of the dev test lab. Changing this forces a new resource to be created.
    location str
    The location where the schedule is created. Changing this forces a new resource to be created.
    name str
    The name of the dev test lab schedule. Valid value for name depends on the task_type. For instance for task_type LabVmsStartupTask the name needs to be LabVmAutoStart.
    notification_settings ScheduleNotificationSettingsArgs
    resource_group_name str
    The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
    status str
    The status of this schedule. Possible values are Enabled and Disabled. Defaults to Disabled.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    task_type str
    The task type of the schedule. Possible values include LabVmsShutdownTask and LabVmAutoStart.
    time_zone_id str
    The time zone ID (e.g. Pacific Standard time).
    weekly_recurrence ScheduleWeeklyRecurrenceArgs
    dailyRecurrence Property Map
    hourlyRecurrence Property Map
    labName String
    The name of the dev test lab. Changing this forces a new resource to be created.
    location String
    The location where the schedule is created. Changing this forces a new resource to be created.
    name String
    The name of the dev test lab schedule. Valid value for name depends on the task_type. For instance for task_type LabVmsStartupTask the name needs to be LabVmAutoStart.
    notificationSettings Property Map
    resourceGroupName String
    The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
    status String
    The status of this schedule. Possible values are Enabled and Disabled. Defaults to Disabled.
    tags Map<String>
    A mapping of tags to assign to the resource.
    taskType String
    The task type of the schedule. Possible values include LabVmsShutdownTask and LabVmAutoStart.
    timeZoneId String
    The time zone ID (e.g. Pacific Standard time).
    weeklyRecurrence Property Map

    Supporting Types

    ScheduleDailyRecurrence, ScheduleDailyRecurrenceArgs

    Time string
    The time each day when the schedule takes effect.
    Time string
    The time each day when the schedule takes effect.
    time String
    The time each day when the schedule takes effect.
    time string
    The time each day when the schedule takes effect.
    time str
    The time each day when the schedule takes effect.
    time String
    The time each day when the schedule takes effect.

    ScheduleHourlyRecurrence, ScheduleHourlyRecurrenceArgs

    Minute int
    Minute int
    minute Integer
    minute number
    minute int
    minute Number

    ScheduleNotificationSettings, ScheduleNotificationSettingsArgs

    Status string
    The status of the notification. Possible values are Enabled and Disabled. Defaults to Disabled
    TimeInMinutes int
    Time in minutes before event at which notification will be sent.
    WebhookUrl string
    The webhook URL to which the notification will be sent.
    Status string
    The status of the notification. Possible values are Enabled and Disabled. Defaults to Disabled
    TimeInMinutes int
    Time in minutes before event at which notification will be sent.
    WebhookUrl string
    The webhook URL to which the notification will be sent.
    status String
    The status of the notification. Possible values are Enabled and Disabled. Defaults to Disabled
    timeInMinutes Integer
    Time in minutes before event at which notification will be sent.
    webhookUrl String
    The webhook URL to which the notification will be sent.
    status string
    The status of the notification. Possible values are Enabled and Disabled. Defaults to Disabled
    timeInMinutes number
    Time in minutes before event at which notification will be sent.
    webhookUrl string
    The webhook URL to which the notification will be sent.
    status str
    The status of the notification. Possible values are Enabled and Disabled. Defaults to Disabled
    time_in_minutes int
    Time in minutes before event at which notification will be sent.
    webhook_url str
    The webhook URL to which the notification will be sent.
    status String
    The status of the notification. Possible values are Enabled and Disabled. Defaults to Disabled
    timeInMinutes Number
    Time in minutes before event at which notification will be sent.
    webhookUrl String
    The webhook URL to which the notification will be sent.

    ScheduleWeeklyRecurrence, ScheduleWeeklyRecurrenceArgs

    Time string
    The time when the schedule takes effect.
    WeekDays List<string>
    A list of days that this schedule takes effect . Possible values include Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday.
    Time string
    The time when the schedule takes effect.
    WeekDays []string
    A list of days that this schedule takes effect . Possible values include Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday.
    time String
    The time when the schedule takes effect.
    weekDays List<String>
    A list of days that this schedule takes effect . Possible values include Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday.
    time string
    The time when the schedule takes effect.
    weekDays string[]
    A list of days that this schedule takes effect . Possible values include Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday.
    time str
    The time when the schedule takes effect.
    week_days Sequence[str]
    A list of days that this schedule takes effect . Possible values include Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday.
    time String
    The time when the schedule takes effect.
    weekDays List<String>
    A list of days that this schedule takes effect . Possible values include Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday.

    Import

    DevTest Schedule’s can be imported using the resource id, e.g.

     $ pulumi import azure:devtest/schedule:Schedule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.DevTestLab/labs/myDevTestLab/schedules/labvmautostart
    

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

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.