1. Packages
  2. Azure Native
  3. API Docs
  4. labservices
  5. Schedule
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.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.labservices.Schedule

Explore with Pulumi AI

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.2.0 published on Monday, Apr 14, 2025 by Pulumi

Schedule for automatically turning virtual machines in a lab on and off at specified times.

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

Other available API versions: 2021-10-01-preview, 2021-11-15-preview, 2022-08-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native labservices [ApiVersion]. See the version guide for details.

Example Usage

putSchedule

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

return await Deployment.RunAsync(() => 
{
    var schedule = new AzureNative.LabServices.Schedule("schedule", new()
    {
        LabName = "testlab",
        Notes = "Schedule 1 for students",
        RecurrencePattern = new AzureNative.LabServices.Inputs.RecurrencePatternArgs
        {
            ExpirationDate = "2020-08-14T23:59:59Z",
            Frequency = AzureNative.LabServices.RecurrenceFrequency.Daily,
            Interval = 2,
        },
        ResourceGroupName = "testrg123",
        ScheduleName = "schedule1",
        StartAt = "2020-05-26T12:00:00Z",
        StopAt = "2020-05-26T18:00:00Z",
        TimeZoneId = "America/Los_Angeles",
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := labservices.NewSchedule(ctx, "schedule", &labservices.ScheduleArgs{
			LabName: pulumi.String("testlab"),
			Notes:   pulumi.String("Schedule 1 for students"),
			RecurrencePattern: &labservices.RecurrencePatternArgs{
				ExpirationDate: pulumi.String("2020-08-14T23:59:59Z"),
				Frequency:      labservices.RecurrenceFrequencyDaily,
				Interval:       pulumi.Int(2),
			},
			ResourceGroupName: pulumi.String("testrg123"),
			ScheduleName:      pulumi.String("schedule1"),
			StartAt:           pulumi.String("2020-05-26T12:00:00Z"),
			StopAt:            pulumi.String("2020-05-26T18:00:00Z"),
			TimeZoneId:        pulumi.String("America/Los_Angeles"),
		})
		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.labservices.Schedule;
import com.pulumi.azurenative.labservices.ScheduleArgs;
import com.pulumi.azurenative.labservices.inputs.RecurrencePatternArgs;
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 schedule = new Schedule("schedule", ScheduleArgs.builder()
            .labName("testlab")
            .notes("Schedule 1 for students")
            .recurrencePattern(RecurrencePatternArgs.builder()
                .expirationDate("2020-08-14T23:59:59Z")
                .frequency("Daily")
                .interval(2)
                .build())
            .resourceGroupName("testrg123")
            .scheduleName("schedule1")
            .startAt("2020-05-26T12:00:00Z")
            .stopAt("2020-05-26T18:00:00Z")
            .timeZoneId("America/Los_Angeles")
            .build());

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

const schedule = new azure_native.labservices.Schedule("schedule", {
    labName: "testlab",
    notes: "Schedule 1 for students",
    recurrencePattern: {
        expirationDate: "2020-08-14T23:59:59Z",
        frequency: azure_native.labservices.RecurrenceFrequency.Daily,
        interval: 2,
    },
    resourceGroupName: "testrg123",
    scheduleName: "schedule1",
    startAt: "2020-05-26T12:00:00Z",
    stopAt: "2020-05-26T18:00:00Z",
    timeZoneId: "America/Los_Angeles",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

schedule = azure_native.labservices.Schedule("schedule",
    lab_name="testlab",
    notes="Schedule 1 for students",
    recurrence_pattern={
        "expiration_date": "2020-08-14T23:59:59Z",
        "frequency": azure_native.labservices.RecurrenceFrequency.DAILY,
        "interval": 2,
    },
    resource_group_name="testrg123",
    schedule_name="schedule1",
    start_at="2020-05-26T12:00:00Z",
    stop_at="2020-05-26T18:00:00Z",
    time_zone_id="America/Los_Angeles")
Copy
resources:
  schedule:
    type: azure-native:labservices:Schedule
    properties:
      labName: testlab
      notes: Schedule 1 for students
      recurrencePattern:
        expirationDate: 2020-08-14T23:59:59Z
        frequency: Daily
        interval: 2
      resourceGroupName: testrg123
      scheduleName: schedule1
      startAt: 2020-05-26T12:00:00Z
      stopAt: 2020-05-26T18:00:00Z
      timeZoneId: America/Los_Angeles
Copy

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,
             resource_group_name: Optional[str] = None,
             stop_at: Optional[str] = None,
             time_zone_id: Optional[str] = None,
             notes: Optional[str] = None,
             recurrence_pattern: Optional[RecurrencePatternArgs] = None,
             schedule_name: Optional[str] = None,
             start_at: Optional[str] = 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-native:labservices:Schedule
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. ScheduleArgs
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. 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 This property is required. string
The unique name of the resource.
args This property is required. ScheduleArgs
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. ScheduleArgs
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. 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 examplescheduleResourceResourceFromLabservices = new AzureNative.LabServices.Schedule("examplescheduleResourceResourceFromLabservices", new()
{
    LabName = "string",
    ResourceGroupName = "string",
    StopAt = "string",
    TimeZoneId = "string",
    Notes = "string",
    RecurrencePattern = new AzureNative.LabServices.Inputs.RecurrencePatternArgs
    {
        ExpirationDate = "string",
        Frequency = AzureNative.LabServices.RecurrenceFrequency.Daily,
        Interval = 0,
        WeekDays = new[]
        {
            AzureNative.LabServices.WeekDay.Sunday,
        },
    },
    ScheduleName = "string",
    StartAt = "string",
});
Copy
example, err := labservices.NewSchedule(ctx, "examplescheduleResourceResourceFromLabservices", &labservices.ScheduleArgs{
	LabName:           pulumi.String("string"),
	ResourceGroupName: pulumi.String("string"),
	StopAt:            pulumi.String("string"),
	TimeZoneId:        pulumi.String("string"),
	Notes:             pulumi.String("string"),
	RecurrencePattern: &labservices.RecurrencePatternArgs{
		ExpirationDate: pulumi.String("string"),
		Frequency:      labservices.RecurrenceFrequencyDaily,
		Interval:       pulumi.Int(0),
		WeekDays: labservices.WeekDayArray{
			labservices.WeekDaySunday,
		},
	},
	ScheduleName: pulumi.String("string"),
	StartAt:      pulumi.String("string"),
})
Copy
var examplescheduleResourceResourceFromLabservices = new Schedule("examplescheduleResourceResourceFromLabservices", ScheduleArgs.builder()
    .labName("string")
    .resourceGroupName("string")
    .stopAt("string")
    .timeZoneId("string")
    .notes("string")
    .recurrencePattern(RecurrencePatternArgs.builder()
        .expirationDate("string")
        .frequency("Daily")
        .interval(0)
        .weekDays("Sunday")
        .build())
    .scheduleName("string")
    .startAt("string")
    .build());
Copy
exampleschedule_resource_resource_from_labservices = azure_native.labservices.Schedule("examplescheduleResourceResourceFromLabservices",
    lab_name="string",
    resource_group_name="string",
    stop_at="string",
    time_zone_id="string",
    notes="string",
    recurrence_pattern={
        "expiration_date": "string",
        "frequency": azure_native.labservices.RecurrenceFrequency.DAILY,
        "interval": 0,
        "week_days": [azure_native.labservices.WeekDay.SUNDAY],
    },
    schedule_name="string",
    start_at="string")
Copy
const examplescheduleResourceResourceFromLabservices = new azure_native.labservices.Schedule("examplescheduleResourceResourceFromLabservices", {
    labName: "string",
    resourceGroupName: "string",
    stopAt: "string",
    timeZoneId: "string",
    notes: "string",
    recurrencePattern: {
        expirationDate: "string",
        frequency: azure_native.labservices.RecurrenceFrequency.Daily,
        interval: 0,
        weekDays: [azure_native.labservices.WeekDay.Sunday],
    },
    scheduleName: "string",
    startAt: "string",
});
Copy
type: azure-native:labservices:Schedule
properties:
    labName: string
    notes: string
    recurrencePattern:
        expirationDate: string
        frequency: Daily
        interval: 0
        weekDays:
            - Sunday
    resourceGroupName: string
    scheduleName: string
    startAt: string
    stopAt: string
    timeZoneId: string
Copy

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
This property is required.
Changes to this property will trigger replacement.
string
The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
StopAt This property is required. string
When lab user virtual machines will be stopped. Timestamp offsets will be ignored and timeZoneId is used instead.
TimeZoneId This property is required. string
The IANA timezone id for the schedule.
Notes string
Notes for this schedule.
RecurrencePattern Pulumi.AzureNative.LabServices.Inputs.RecurrencePattern
The recurrence pattern of the scheduled actions.
ScheduleName Changes to this property will trigger replacement. string
The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.
StartAt string
When lab user virtual machines will be started. Timestamp offsets will be ignored and timeZoneId is used instead.
LabName
This property is required.
Changes to this property will trigger replacement.
string
The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
StopAt This property is required. string
When lab user virtual machines will be stopped. Timestamp offsets will be ignored and timeZoneId is used instead.
TimeZoneId This property is required. string
The IANA timezone id for the schedule.
Notes string
Notes for this schedule.
RecurrencePattern RecurrencePatternArgs
The recurrence pattern of the scheduled actions.
ScheduleName Changes to this property will trigger replacement. string
The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.
StartAt string
When lab user virtual machines will be started. Timestamp offsets will be ignored and timeZoneId is used instead.
labName
This property is required.
Changes to this property will trigger replacement.
String
The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
stopAt This property is required. String
When lab user virtual machines will be stopped. Timestamp offsets will be ignored and timeZoneId is used instead.
timeZoneId This property is required. String
The IANA timezone id for the schedule.
notes String
Notes for this schedule.
recurrencePattern RecurrencePattern
The recurrence pattern of the scheduled actions.
scheduleName Changes to this property will trigger replacement. String
The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.
startAt String
When lab user virtual machines will be started. Timestamp offsets will be ignored and timeZoneId is used instead.
labName
This property is required.
Changes to this property will trigger replacement.
string
The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
stopAt This property is required. string
When lab user virtual machines will be stopped. Timestamp offsets will be ignored and timeZoneId is used instead.
timeZoneId This property is required. string
The IANA timezone id for the schedule.
notes string
Notes for this schedule.
recurrencePattern RecurrencePattern
The recurrence pattern of the scheduled actions.
scheduleName Changes to this property will trigger replacement. string
The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.
startAt string
When lab user virtual machines will be started. Timestamp offsets will be ignored and timeZoneId is used instead.
lab_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
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.
stop_at This property is required. str
When lab user virtual machines will be stopped. Timestamp offsets will be ignored and timeZoneId is used instead.
time_zone_id This property is required. str
The IANA timezone id for the schedule.
notes str
Notes for this schedule.
recurrence_pattern RecurrencePatternArgs
The recurrence pattern of the scheduled actions.
schedule_name Changes to this property will trigger replacement. str
The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.
start_at str
When lab user virtual machines will be started. Timestamp offsets will be ignored and timeZoneId is used instead.
labName
This property is required.
Changes to this property will trigger replacement.
String
The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
stopAt This property is required. String
When lab user virtual machines will be stopped. Timestamp offsets will be ignored and timeZoneId is used instead.
timeZoneId This property is required. String
The IANA timezone id for the schedule.
notes String
Notes for this schedule.
recurrencePattern Property Map
The recurrence pattern of the scheduled actions.
scheduleName Changes to this property will trigger replacement. String
The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.
startAt String
When lab user virtual machines will be started. Timestamp offsets will be ignored and timeZoneId is used instead.

Outputs

All input properties are implicitly available as output properties. Additionally, the Schedule 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
The name of the resource
ProvisioningState string
Current provisioning state of the schedule.
ResourceOperationError Pulumi.AzureNative.LabServices.Outputs.ResourceOperationErrorResponse
Error details of last operation done on schedule.
SystemData Pulumi.AzureNative.LabServices.Outputs.SystemDataResponse
Metadata pertaining to creation and last modification of the schedule.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
ProvisioningState string
Current provisioning state of the schedule.
ResourceOperationError ResourceOperationErrorResponse
Error details of last operation done on schedule.
SystemData SystemDataResponse
Metadata pertaining to creation and last modification of the schedule.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
provisioningState String
Current provisioning state of the schedule.
resourceOperationError ResourceOperationErrorResponse
Error details of last operation done on schedule.
systemData SystemDataResponse
Metadata pertaining to creation and last modification of the schedule.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azureApiVersion string
The Azure API version of the resource.
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource
provisioningState string
Current provisioning state of the schedule.
resourceOperationError ResourceOperationErrorResponse
Error details of last operation done on schedule.
systemData SystemDataResponse
Metadata pertaining to creation and last modification of the schedule.
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azure_api_version str
The Azure API version of the resource.
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource
provisioning_state str
Current provisioning state of the schedule.
resource_operation_error ResourceOperationErrorResponse
Error details of last operation done on schedule.
system_data SystemDataResponse
Metadata pertaining to creation and last modification of the schedule.
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
provisioningState String
Current provisioning state of the schedule.
resourceOperationError Property Map
Error details of last operation done on schedule.
systemData Property Map
Metadata pertaining to creation and last modification of the schedule.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

RecurrenceFrequency
, RecurrenceFrequencyArgs

Daily
DailySchedule will run every days.
Weekly
WeeklySchedule will run every week on days specified in weekDays.
RecurrenceFrequencyDaily
DailySchedule will run every days.
RecurrenceFrequencyWeekly
WeeklySchedule will run every week on days specified in weekDays.
Daily
DailySchedule will run every days.
Weekly
WeeklySchedule will run every week on days specified in weekDays.
Daily
DailySchedule will run every days.
Weekly
WeeklySchedule will run every week on days specified in weekDays.
DAILY
DailySchedule will run every days.
WEEKLY
WeeklySchedule will run every week on days specified in weekDays.
"Daily"
DailySchedule will run every days.
"Weekly"
WeeklySchedule will run every week on days specified in weekDays.

RecurrencePattern
, RecurrencePatternArgs

ExpirationDate This property is required. string
When the recurrence will expire. This date is inclusive.
Frequency This property is required. Pulumi.AzureNative.LabServices.RecurrenceFrequency
The frequency of the recurrence.
Interval int
The interval to invoke the schedule on. For example, interval = 2 and RecurrenceFrequency.Daily will run every 2 days. When no interval is supplied, an interval of 1 is used.
WeekDays List<Pulumi.AzureNative.LabServices.WeekDay>
The week days the schedule runs. Used for when the Frequency is set to Weekly.
ExpirationDate This property is required. string
When the recurrence will expire. This date is inclusive.
Frequency This property is required. RecurrenceFrequency
The frequency of the recurrence.
Interval int
The interval to invoke the schedule on. For example, interval = 2 and RecurrenceFrequency.Daily will run every 2 days. When no interval is supplied, an interval of 1 is used.
WeekDays []WeekDay
The week days the schedule runs. Used for when the Frequency is set to Weekly.
expirationDate This property is required. String
When the recurrence will expire. This date is inclusive.
frequency This property is required. RecurrenceFrequency
The frequency of the recurrence.
interval Integer
The interval to invoke the schedule on. For example, interval = 2 and RecurrenceFrequency.Daily will run every 2 days. When no interval is supplied, an interval of 1 is used.
weekDays List<WeekDay>
The week days the schedule runs. Used for when the Frequency is set to Weekly.
expirationDate This property is required. string
When the recurrence will expire. This date is inclusive.
frequency This property is required. RecurrenceFrequency
The frequency of the recurrence.
interval number
The interval to invoke the schedule on. For example, interval = 2 and RecurrenceFrequency.Daily will run every 2 days. When no interval is supplied, an interval of 1 is used.
weekDays WeekDay[]
The week days the schedule runs. Used for when the Frequency is set to Weekly.
expiration_date This property is required. str
When the recurrence will expire. This date is inclusive.
frequency This property is required. RecurrenceFrequency
The frequency of the recurrence.
interval int
The interval to invoke the schedule on. For example, interval = 2 and RecurrenceFrequency.Daily will run every 2 days. When no interval is supplied, an interval of 1 is used.
week_days Sequence[WeekDay]
The week days the schedule runs. Used for when the Frequency is set to Weekly.
expirationDate This property is required. String
When the recurrence will expire. This date is inclusive.
frequency This property is required. "Daily" | "Weekly"
The frequency of the recurrence.
interval Number
The interval to invoke the schedule on. For example, interval = 2 and RecurrenceFrequency.Daily will run every 2 days. When no interval is supplied, an interval of 1 is used.
weekDays List<"Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday">
The week days the schedule runs. Used for when the Frequency is set to Weekly.

RecurrencePatternResponse
, RecurrencePatternResponseArgs

ExpirationDate This property is required. string
When the recurrence will expire. This date is inclusive.
Frequency This property is required. string
The frequency of the recurrence.
Interval int
The interval to invoke the schedule on. For example, interval = 2 and RecurrenceFrequency.Daily will run every 2 days. When no interval is supplied, an interval of 1 is used.
WeekDays List<string>
The week days the schedule runs. Used for when the Frequency is set to Weekly.
ExpirationDate This property is required. string
When the recurrence will expire. This date is inclusive.
Frequency This property is required. string
The frequency of the recurrence.
Interval int
The interval to invoke the schedule on. For example, interval = 2 and RecurrenceFrequency.Daily will run every 2 days. When no interval is supplied, an interval of 1 is used.
WeekDays []string
The week days the schedule runs. Used for when the Frequency is set to Weekly.
expirationDate This property is required. String
When the recurrence will expire. This date is inclusive.
frequency This property is required. String
The frequency of the recurrence.
interval Integer
The interval to invoke the schedule on. For example, interval = 2 and RecurrenceFrequency.Daily will run every 2 days. When no interval is supplied, an interval of 1 is used.
weekDays List<String>
The week days the schedule runs. Used for when the Frequency is set to Weekly.
expirationDate This property is required. string
When the recurrence will expire. This date is inclusive.
frequency This property is required. string
The frequency of the recurrence.
interval number
The interval to invoke the schedule on. For example, interval = 2 and RecurrenceFrequency.Daily will run every 2 days. When no interval is supplied, an interval of 1 is used.
weekDays string[]
The week days the schedule runs. Used for when the Frequency is set to Weekly.
expiration_date This property is required. str
When the recurrence will expire. This date is inclusive.
frequency This property is required. str
The frequency of the recurrence.
interval int
The interval to invoke the schedule on. For example, interval = 2 and RecurrenceFrequency.Daily will run every 2 days. When no interval is supplied, an interval of 1 is used.
week_days Sequence[str]
The week days the schedule runs. Used for when the Frequency is set to Weekly.
expirationDate This property is required. String
When the recurrence will expire. This date is inclusive.
frequency This property is required. String
The frequency of the recurrence.
interval Number
The interval to invoke the schedule on. For example, interval = 2 and RecurrenceFrequency.Daily will run every 2 days. When no interval is supplied, an interval of 1 is used.
weekDays List<String>
The week days the schedule runs. Used for when the Frequency is set to Weekly.

ResourceOperationErrorResponse
, ResourceOperationErrorResponseArgs

Action string
The operation action that failed
Code string
The code that corresponds to the type of operation failure
Message string
The operation failure message
Timestamp string
The datetime of when the error occured
Action string
The operation action that failed
Code string
The code that corresponds to the type of operation failure
Message string
The operation failure message
Timestamp string
The datetime of when the error occured
action String
The operation action that failed
code String
The code that corresponds to the type of operation failure
message String
The operation failure message
timestamp String
The datetime of when the error occured
action string
The operation action that failed
code string
The code that corresponds to the type of operation failure
message string
The operation failure message
timestamp string
The datetime of when the error occured
action str
The operation action that failed
code str
The code that corresponds to the type of operation failure
message str
The operation failure message
timestamp str
The datetime of when the error occured
action String
The operation action that failed
code String
The code that corresponds to the type of operation failure
message String
The operation failure message
timestamp String
The datetime of when the error occured

SystemDataResponse
, SystemDataResponseArgs

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The timestamp of resource creation (UTC).
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

WeekDay
, WeekDayArgs

Sunday
SundaySchedule will run on Sunday
Monday
MondaySchedule will run on Monday
Tuesday
TuesdaySchedule will run on Tuesday
Wednesday
WednesdaySchedule will run on Wednesday
Thursday
ThursdaySchedule will run on Thursday
Friday
FridaySchedule will run on Friday
Saturday
SaturdaySchedule will run on Saturday
WeekDaySunday
SundaySchedule will run on Sunday
WeekDayMonday
MondaySchedule will run on Monday
WeekDayTuesday
TuesdaySchedule will run on Tuesday
WeekDayWednesday
WednesdaySchedule will run on Wednesday
WeekDayThursday
ThursdaySchedule will run on Thursday
WeekDayFriday
FridaySchedule will run on Friday
WeekDaySaturday
SaturdaySchedule will run on Saturday
Sunday
SundaySchedule will run on Sunday
Monday
MondaySchedule will run on Monday
Tuesday
TuesdaySchedule will run on Tuesday
Wednesday
WednesdaySchedule will run on Wednesday
Thursday
ThursdaySchedule will run on Thursday
Friday
FridaySchedule will run on Friday
Saturday
SaturdaySchedule will run on Saturday
Sunday
SundaySchedule will run on Sunday
Monday
MondaySchedule will run on Monday
Tuesday
TuesdaySchedule will run on Tuesday
Wednesday
WednesdaySchedule will run on Wednesday
Thursday
ThursdaySchedule will run on Thursday
Friday
FridaySchedule will run on Friday
Saturday
SaturdaySchedule will run on Saturday
SUNDAY
SundaySchedule will run on Sunday
MONDAY
MondaySchedule will run on Monday
TUESDAY
TuesdaySchedule will run on Tuesday
WEDNESDAY
WednesdaySchedule will run on Wednesday
THURSDAY
ThursdaySchedule will run on Thursday
FRIDAY
FridaySchedule will run on Friday
SATURDAY
SaturdaySchedule will run on Saturday
"Sunday"
SundaySchedule will run on Sunday
"Monday"
MondaySchedule will run on Monday
"Tuesday"
TuesdaySchedule will run on Tuesday
"Wednesday"
WednesdaySchedule will run on Wednesday
"Thursday"
ThursdaySchedule will run on Thursday
"Friday"
FridaySchedule will run on Friday
"Saturday"
SaturdaySchedule will run on Saturday

Import

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

$ pulumi import azure-native:labservices:Schedule schedule1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labs/{labName}/schedules/{scheduleName} 
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
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.2.0 published on Monday, Apr 14, 2025 by Pulumi