ScheduleArgs

data class ScheduleArgs(val labId: Output<String>? = null, val name: Output<String>? = null, val notes: Output<String>? = null, val recurrence: Output<ScheduleRecurrenceArgs>? = null, val startTime: Output<String>? = null, val stopTime: Output<String>? = null, val timeZone: Output<String>? = null) : ConvertibleToJava<ScheduleArgs>

Manages a Lab Service Schedule.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.lab.Lab;
import com.pulumi.azure.lab.LabArgs;
import com.pulumi.azure.lab.inputs.LabSecurityArgs;
import com.pulumi.azure.lab.inputs.LabVirtualMachineArgs;
import com.pulumi.azure.lab.inputs.LabVirtualMachineAdminUserArgs;
import com.pulumi.azure.lab.inputs.LabVirtualMachineImageReferenceArgs;
import com.pulumi.azure.lab.inputs.LabVirtualMachineSkuArgs;
import com.pulumi.azure.lab.Schedule;
import com.pulumi.azure.lab.ScheduleArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleLab = new Lab("exampleLab", LabArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.title("Test Title")
.security(LabSecurityArgs.builder()
.openAccessEnabled(false)
.build())
.virtualMachine(LabVirtualMachineArgs.builder()
.adminUser(LabVirtualMachineAdminUserArgs.builder()
.username("testadmin")
.password("Password1234!")
.build())
.imageReference(LabVirtualMachineImageReferenceArgs.builder()
.offer("0001-com-ubuntu-server-focal")
.publisher("canonical")
.sku("20_04-lts")
.version("latest")
.build())
.sku(LabVirtualMachineSkuArgs.builder()
.name("Classic_Fsv2_2_4GB_128_S_SSD")
.capacity(1)
.build())
.build())
.build());
var exampleSchedule = new Schedule("exampleSchedule", ScheduleArgs.builder()
.labId(exampleLab.id())
.stopTime("2022-11-28T00:00:00Z")
.timeZone("America/Los_Angeles")
.build());
}
}

Import

Lab Service Schedules can be imported using the resource id, e.g.

$ pulumi import azure:lab/schedule:Schedule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.LabServices/labs/lab1/schedules/schedule1

Constructors

Link copied to clipboard
fun ScheduleArgs(labId: Output<String>? = null, name: Output<String>? = null, notes: Output<String>? = null, recurrence: Output<ScheduleRecurrenceArgs>? = null, startTime: Output<String>? = null, stopTime: Output<String>? = null, timeZone: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ScheduleArgs

Properties

Link copied to clipboard
val labId: Output<String>? = null

The resource ID of the Lab Service Schedule. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>? = null

The name which should be used for this Lab Service Schedule. Changing this forces a new resource to be created.

Link copied to clipboard
val notes: Output<String>? = null

The notes for the Schedule.

Link copied to clipboard
val recurrence: Output<ScheduleRecurrenceArgs>? = null

A recurrence block as defined below.

Link copied to clipboard
val startTime: Output<String>? = null

When Lab User Virtual Machines will be started in RFC-3339 format.

Link copied to clipboard
val stopTime: Output<String>? = null

When Lab User Virtual Machines will be stopped in RFC-3339 format.

Link copied to clipboard
val timeZone: Output<String>? = null

The IANA Time Zone ID for the Schedule.