azure-native.desktopvirtualization.ScalingPlanPersonalSchedule
Explore with Pulumi AI
Represents a ScalingPlanPersonalSchedule definition. Azure REST API version: 2023-07-07-preview.
Other available API versions: 2023-09-05, 2023-10-04-preview, 2023-11-01-preview, 2024-01-16-preview, 2024-03-06-preview, 2024-04-03, 2024-04-08-preview, 2024-08-08-preview.
Example Usage
ScalingPlanPersonalSchedules_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var scalingPlanPersonalSchedule = new AzureNative.DesktopVirtualization.ScalingPlanPersonalSchedule("scalingPlanPersonalSchedule", new()
    {
        DaysOfWeek = new[]
        {
            AzureNative.DesktopVirtualization.DayOfWeek.Monday,
            AzureNative.DesktopVirtualization.DayOfWeek.Tuesday,
            AzureNative.DesktopVirtualization.DayOfWeek.Wednesday,
            AzureNative.DesktopVirtualization.DayOfWeek.Thursday,
            AzureNative.DesktopVirtualization.DayOfWeek.Friday,
        },
        OffPeakActionOnDisconnect = AzureNative.DesktopVirtualization.SessionHandlingOperation.None,
        OffPeakActionOnLogoff = AzureNative.DesktopVirtualization.SessionHandlingOperation.Deallocate,
        OffPeakMinutesToWaitOnDisconnect = 10,
        OffPeakMinutesToWaitOnLogoff = 10,
        OffPeakStartTime = new AzureNative.DesktopVirtualization.Inputs.TimeArgs
        {
            Hour = 20,
            Minute = 0,
        },
        OffPeakStartVMOnConnect = AzureNative.DesktopVirtualization.SetStartVMOnConnect.Enable,
        PeakActionOnDisconnect = AzureNative.DesktopVirtualization.SessionHandlingOperation.None,
        PeakActionOnLogoff = AzureNative.DesktopVirtualization.SessionHandlingOperation.Deallocate,
        PeakMinutesToWaitOnDisconnect = 10,
        PeakMinutesToWaitOnLogoff = 10,
        PeakStartTime = new AzureNative.DesktopVirtualization.Inputs.TimeArgs
        {
            Hour = 8,
            Minute = 0,
        },
        PeakStartVMOnConnect = AzureNative.DesktopVirtualization.SetStartVMOnConnect.Enable,
        RampDownActionOnDisconnect = AzureNative.DesktopVirtualization.SessionHandlingOperation.None,
        RampDownActionOnLogoff = AzureNative.DesktopVirtualization.SessionHandlingOperation.Deallocate,
        RampDownMinutesToWaitOnDisconnect = 10,
        RampDownMinutesToWaitOnLogoff = 10,
        RampDownStartTime = new AzureNative.DesktopVirtualization.Inputs.TimeArgs
        {
            Hour = 18,
            Minute = 0,
        },
        RampDownStartVMOnConnect = AzureNative.DesktopVirtualization.SetStartVMOnConnect.Enable,
        RampUpActionOnDisconnect = AzureNative.DesktopVirtualization.SessionHandlingOperation.None,
        RampUpActionOnLogoff = AzureNative.DesktopVirtualization.SessionHandlingOperation.None,
        RampUpAutoStartHosts = AzureNative.DesktopVirtualization.StartupBehavior.All,
        RampUpMinutesToWaitOnDisconnect = 10,
        RampUpMinutesToWaitOnLogoff = 10,
        RampUpStartTime = new AzureNative.DesktopVirtualization.Inputs.TimeArgs
        {
            Hour = 6,
            Minute = 0,
        },
        RampUpStartVMOnConnect = AzureNative.DesktopVirtualization.SetStartVMOnConnect.Enable,
        ResourceGroupName = "resourceGroup1",
        ScalingPlanName = "scalingPlan1",
        ScalingPlanScheduleName = "scalingPlanScheduleWeekdays1",
    });
});
package main
import (
	desktopvirtualization "github.com/pulumi/pulumi-azure-native-sdk/desktopvirtualization/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := desktopvirtualization.NewScalingPlanPersonalSchedule(ctx, "scalingPlanPersonalSchedule", &desktopvirtualization.ScalingPlanPersonalScheduleArgs{
			DaysOfWeek: pulumi.StringArray{
				pulumi.String(desktopvirtualization.DayOfWeekMonday),
				pulumi.String(desktopvirtualization.DayOfWeekTuesday),
				pulumi.String(desktopvirtualization.DayOfWeekWednesday),
				pulumi.String(desktopvirtualization.DayOfWeekThursday),
				pulumi.String(desktopvirtualization.DayOfWeekFriday),
			},
			OffPeakActionOnDisconnect:        pulumi.String(desktopvirtualization.SessionHandlingOperationNone),
			OffPeakActionOnLogoff:            pulumi.String(desktopvirtualization.SessionHandlingOperationDeallocate),
			OffPeakMinutesToWaitOnDisconnect: pulumi.Int(10),
			OffPeakMinutesToWaitOnLogoff:     pulumi.Int(10),
			OffPeakStartTime: &desktopvirtualization.TimeArgs{
				Hour:   pulumi.Int(20),
				Minute: pulumi.Int(0),
			},
			OffPeakStartVMOnConnect:       pulumi.String(desktopvirtualization.SetStartVMOnConnectEnable),
			PeakActionOnDisconnect:        pulumi.String(desktopvirtualization.SessionHandlingOperationNone),
			PeakActionOnLogoff:            pulumi.String(desktopvirtualization.SessionHandlingOperationDeallocate),
			PeakMinutesToWaitOnDisconnect: pulumi.Int(10),
			PeakMinutesToWaitOnLogoff:     pulumi.Int(10),
			PeakStartTime: &desktopvirtualization.TimeArgs{
				Hour:   pulumi.Int(8),
				Minute: pulumi.Int(0),
			},
			PeakStartVMOnConnect:              pulumi.String(desktopvirtualization.SetStartVMOnConnectEnable),
			RampDownActionOnDisconnect:        pulumi.String(desktopvirtualization.SessionHandlingOperationNone),
			RampDownActionOnLogoff:            pulumi.String(desktopvirtualization.SessionHandlingOperationDeallocate),
			RampDownMinutesToWaitOnDisconnect: pulumi.Int(10),
			RampDownMinutesToWaitOnLogoff:     pulumi.Int(10),
			RampDownStartTime: &desktopvirtualization.TimeArgs{
				Hour:   pulumi.Int(18),
				Minute: pulumi.Int(0),
			},
			RampDownStartVMOnConnect:        pulumi.String(desktopvirtualization.SetStartVMOnConnectEnable),
			RampUpActionOnDisconnect:        pulumi.String(desktopvirtualization.SessionHandlingOperationNone),
			RampUpActionOnLogoff:            pulumi.String(desktopvirtualization.SessionHandlingOperationNone),
			RampUpAutoStartHosts:            pulumi.String(desktopvirtualization.StartupBehaviorAll),
			RampUpMinutesToWaitOnDisconnect: pulumi.Int(10),
			RampUpMinutesToWaitOnLogoff:     pulumi.Int(10),
			RampUpStartTime: &desktopvirtualization.TimeArgs{
				Hour:   pulumi.Int(6),
				Minute: pulumi.Int(0),
			},
			RampUpStartVMOnConnect:  pulumi.String(desktopvirtualization.SetStartVMOnConnectEnable),
			ResourceGroupName:       pulumi.String("resourceGroup1"),
			ScalingPlanName:         pulumi.String("scalingPlan1"),
			ScalingPlanScheduleName: pulumi.String("scalingPlanScheduleWeekdays1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.desktopvirtualization.ScalingPlanPersonalSchedule;
import com.pulumi.azurenative.desktopvirtualization.ScalingPlanPersonalScheduleArgs;
import com.pulumi.azurenative.desktopvirtualization.inputs.TimeArgs;
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 scalingPlanPersonalSchedule = new ScalingPlanPersonalSchedule("scalingPlanPersonalSchedule", ScalingPlanPersonalScheduleArgs.builder()
            .daysOfWeek(            
                "Monday",
                "Tuesday",
                "Wednesday",
                "Thursday",
                "Friday")
            .offPeakActionOnDisconnect("None")
            .offPeakActionOnLogoff("Deallocate")
            .offPeakMinutesToWaitOnDisconnect(10)
            .offPeakMinutesToWaitOnLogoff(10)
            .offPeakStartTime(TimeArgs.builder()
                .hour(20)
                .minute(0)
                .build())
            .offPeakStartVMOnConnect("Enable")
            .peakActionOnDisconnect("None")
            .peakActionOnLogoff("Deallocate")
            .peakMinutesToWaitOnDisconnect(10)
            .peakMinutesToWaitOnLogoff(10)
            .peakStartTime(TimeArgs.builder()
                .hour(8)
                .minute(0)
                .build())
            .peakStartVMOnConnect("Enable")
            .rampDownActionOnDisconnect("None")
            .rampDownActionOnLogoff("Deallocate")
            .rampDownMinutesToWaitOnDisconnect(10)
            .rampDownMinutesToWaitOnLogoff(10)
            .rampDownStartTime(TimeArgs.builder()
                .hour(18)
                .minute(0)
                .build())
            .rampDownStartVMOnConnect("Enable")
            .rampUpActionOnDisconnect("None")
            .rampUpActionOnLogoff("None")
            .rampUpAutoStartHosts("All")
            .rampUpMinutesToWaitOnDisconnect(10)
            .rampUpMinutesToWaitOnLogoff(10)
            .rampUpStartTime(TimeArgs.builder()
                .hour(6)
                .minute(0)
                .build())
            .rampUpStartVMOnConnect("Enable")
            .resourceGroupName("resourceGroup1")
            .scalingPlanName("scalingPlan1")
            .scalingPlanScheduleName("scalingPlanScheduleWeekdays1")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const scalingPlanPersonalSchedule = new azure_native.desktopvirtualization.ScalingPlanPersonalSchedule("scalingPlanPersonalSchedule", {
    daysOfWeek: [
        azure_native.desktopvirtualization.DayOfWeek.Monday,
        azure_native.desktopvirtualization.DayOfWeek.Tuesday,
        azure_native.desktopvirtualization.DayOfWeek.Wednesday,
        azure_native.desktopvirtualization.DayOfWeek.Thursday,
        azure_native.desktopvirtualization.DayOfWeek.Friday,
    ],
    offPeakActionOnDisconnect: azure_native.desktopvirtualization.SessionHandlingOperation.None,
    offPeakActionOnLogoff: azure_native.desktopvirtualization.SessionHandlingOperation.Deallocate,
    offPeakMinutesToWaitOnDisconnect: 10,
    offPeakMinutesToWaitOnLogoff: 10,
    offPeakStartTime: {
        hour: 20,
        minute: 0,
    },
    offPeakStartVMOnConnect: azure_native.desktopvirtualization.SetStartVMOnConnect.Enable,
    peakActionOnDisconnect: azure_native.desktopvirtualization.SessionHandlingOperation.None,
    peakActionOnLogoff: azure_native.desktopvirtualization.SessionHandlingOperation.Deallocate,
    peakMinutesToWaitOnDisconnect: 10,
    peakMinutesToWaitOnLogoff: 10,
    peakStartTime: {
        hour: 8,
        minute: 0,
    },
    peakStartVMOnConnect: azure_native.desktopvirtualization.SetStartVMOnConnect.Enable,
    rampDownActionOnDisconnect: azure_native.desktopvirtualization.SessionHandlingOperation.None,
    rampDownActionOnLogoff: azure_native.desktopvirtualization.SessionHandlingOperation.Deallocate,
    rampDownMinutesToWaitOnDisconnect: 10,
    rampDownMinutesToWaitOnLogoff: 10,
    rampDownStartTime: {
        hour: 18,
        minute: 0,
    },
    rampDownStartVMOnConnect: azure_native.desktopvirtualization.SetStartVMOnConnect.Enable,
    rampUpActionOnDisconnect: azure_native.desktopvirtualization.SessionHandlingOperation.None,
    rampUpActionOnLogoff: azure_native.desktopvirtualization.SessionHandlingOperation.None,
    rampUpAutoStartHosts: azure_native.desktopvirtualization.StartupBehavior.All,
    rampUpMinutesToWaitOnDisconnect: 10,
    rampUpMinutesToWaitOnLogoff: 10,
    rampUpStartTime: {
        hour: 6,
        minute: 0,
    },
    rampUpStartVMOnConnect: azure_native.desktopvirtualization.SetStartVMOnConnect.Enable,
    resourceGroupName: "resourceGroup1",
    scalingPlanName: "scalingPlan1",
    scalingPlanScheduleName: "scalingPlanScheduleWeekdays1",
});
import pulumi
import pulumi_azure_native as azure_native
scaling_plan_personal_schedule = azure_native.desktopvirtualization.ScalingPlanPersonalSchedule("scalingPlanPersonalSchedule",
    days_of_week=[
        azure_native.desktopvirtualization.DayOfWeek.MONDAY,
        azure_native.desktopvirtualization.DayOfWeek.TUESDAY,
        azure_native.desktopvirtualization.DayOfWeek.WEDNESDAY,
        azure_native.desktopvirtualization.DayOfWeek.THURSDAY,
        azure_native.desktopvirtualization.DayOfWeek.FRIDAY,
    ],
    off_peak_action_on_disconnect=azure_native.desktopvirtualization.SessionHandlingOperation.NONE,
    off_peak_action_on_logoff=azure_native.desktopvirtualization.SessionHandlingOperation.DEALLOCATE,
    off_peak_minutes_to_wait_on_disconnect=10,
    off_peak_minutes_to_wait_on_logoff=10,
    off_peak_start_time={
        "hour": 20,
        "minute": 0,
    },
    off_peak_start_vm_on_connect=azure_native.desktopvirtualization.SetStartVMOnConnect.ENABLE,
    peak_action_on_disconnect=azure_native.desktopvirtualization.SessionHandlingOperation.NONE,
    peak_action_on_logoff=azure_native.desktopvirtualization.SessionHandlingOperation.DEALLOCATE,
    peak_minutes_to_wait_on_disconnect=10,
    peak_minutes_to_wait_on_logoff=10,
    peak_start_time={
        "hour": 8,
        "minute": 0,
    },
    peak_start_vm_on_connect=azure_native.desktopvirtualization.SetStartVMOnConnect.ENABLE,
    ramp_down_action_on_disconnect=azure_native.desktopvirtualization.SessionHandlingOperation.NONE,
    ramp_down_action_on_logoff=azure_native.desktopvirtualization.SessionHandlingOperation.DEALLOCATE,
    ramp_down_minutes_to_wait_on_disconnect=10,
    ramp_down_minutes_to_wait_on_logoff=10,
    ramp_down_start_time={
        "hour": 18,
        "minute": 0,
    },
    ramp_down_start_vm_on_connect=azure_native.desktopvirtualization.SetStartVMOnConnect.ENABLE,
    ramp_up_action_on_disconnect=azure_native.desktopvirtualization.SessionHandlingOperation.NONE,
    ramp_up_action_on_logoff=azure_native.desktopvirtualization.SessionHandlingOperation.NONE,
    ramp_up_auto_start_hosts=azure_native.desktopvirtualization.StartupBehavior.ALL,
    ramp_up_minutes_to_wait_on_disconnect=10,
    ramp_up_minutes_to_wait_on_logoff=10,
    ramp_up_start_time={
        "hour": 6,
        "minute": 0,
    },
    ramp_up_start_vm_on_connect=azure_native.desktopvirtualization.SetStartVMOnConnect.ENABLE,
    resource_group_name="resourceGroup1",
    scaling_plan_name="scalingPlan1",
    scaling_plan_schedule_name="scalingPlanScheduleWeekdays1")
resources:
  scalingPlanPersonalSchedule:
    type: azure-native:desktopvirtualization:ScalingPlanPersonalSchedule
    properties:
      daysOfWeek:
        - Monday
        - Tuesday
        - Wednesday
        - Thursday
        - Friday
      offPeakActionOnDisconnect: None
      offPeakActionOnLogoff: Deallocate
      offPeakMinutesToWaitOnDisconnect: 10
      offPeakMinutesToWaitOnLogoff: 10
      offPeakStartTime:
        hour: 20
        minute: 0
      offPeakStartVMOnConnect: Enable
      peakActionOnDisconnect: None
      peakActionOnLogoff: Deallocate
      peakMinutesToWaitOnDisconnect: 10
      peakMinutesToWaitOnLogoff: 10
      peakStartTime:
        hour: 8
        minute: 0
      peakStartVMOnConnect: Enable
      rampDownActionOnDisconnect: None
      rampDownActionOnLogoff: Deallocate
      rampDownMinutesToWaitOnDisconnect: 10
      rampDownMinutesToWaitOnLogoff: 10
      rampDownStartTime:
        hour: 18
        minute: 0
      rampDownStartVMOnConnect: Enable
      rampUpActionOnDisconnect: None
      rampUpActionOnLogoff: None
      rampUpAutoStartHosts: All
      rampUpMinutesToWaitOnDisconnect: 10
      rampUpMinutesToWaitOnLogoff: 10
      rampUpStartTime:
        hour: 6
        minute: 0
      rampUpStartVMOnConnect: Enable
      resourceGroupName: resourceGroup1
      scalingPlanName: scalingPlan1
      scalingPlanScheduleName: scalingPlanScheduleWeekdays1
Create ScalingPlanPersonalSchedule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ScalingPlanPersonalSchedule(name: string, args: ScalingPlanPersonalScheduleArgs, opts?: CustomResourceOptions);@overload
def ScalingPlanPersonalSchedule(resource_name: str,
                                args: ScalingPlanPersonalScheduleArgs,
                                opts: Optional[ResourceOptions] = None)
@overload
def ScalingPlanPersonalSchedule(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                resource_group_name: Optional[str] = None,
                                scaling_plan_name: Optional[str] = None,
                                ramp_down_action_on_logoff: Optional[Union[str, SessionHandlingOperation]] = None,
                                scaling_plan_schedule_name: Optional[str] = None,
                                days_of_week: Optional[Sequence[Union[str, DayOfWeek]]] = None,
                                off_peak_start_time: Optional[TimeArgs] = None,
                                off_peak_start_vm_on_connect: Optional[Union[str, SetStartVMOnConnect]] = None,
                                peak_action_on_disconnect: Optional[Union[str, SessionHandlingOperation]] = None,
                                peak_action_on_logoff: Optional[Union[str, SessionHandlingOperation]] = None,
                                peak_minutes_to_wait_on_disconnect: Optional[int] = None,
                                peak_minutes_to_wait_on_logoff: Optional[int] = None,
                                peak_start_time: Optional[TimeArgs] = None,
                                peak_start_vm_on_connect: Optional[Union[str, SetStartVMOnConnect]] = None,
                                ramp_down_action_on_disconnect: Optional[Union[str, SessionHandlingOperation]] = None,
                                off_peak_minutes_to_wait_on_logoff: Optional[int] = None,
                                off_peak_minutes_to_wait_on_disconnect: Optional[int] = None,
                                ramp_up_minutes_to_wait_on_logoff: Optional[int] = None,
                                ramp_down_start_time: Optional[TimeArgs] = None,
                                ramp_down_start_vm_on_connect: Optional[Union[str, SetStartVMOnConnect]] = None,
                                ramp_up_action_on_disconnect: Optional[Union[str, SessionHandlingOperation]] = None,
                                ramp_up_action_on_logoff: Optional[Union[str, SessionHandlingOperation]] = None,
                                ramp_up_auto_start_hosts: Optional[Union[str, StartupBehavior]] = None,
                                ramp_up_minutes_to_wait_on_disconnect: Optional[int] = None,
                                ramp_down_minutes_to_wait_on_logoff: Optional[int] = None,
                                ramp_up_start_time: Optional[TimeArgs] = None,
                                ramp_up_start_vm_on_connect: Optional[Union[str, SetStartVMOnConnect]] = None,
                                off_peak_action_on_logoff: Optional[Union[str, SessionHandlingOperation]] = None,
                                off_peak_action_on_disconnect: Optional[Union[str, SessionHandlingOperation]] = None,
                                ramp_down_minutes_to_wait_on_disconnect: Optional[int] = None)func NewScalingPlanPersonalSchedule(ctx *Context, name string, args ScalingPlanPersonalScheduleArgs, opts ...ResourceOption) (*ScalingPlanPersonalSchedule, error)public ScalingPlanPersonalSchedule(string name, ScalingPlanPersonalScheduleArgs args, CustomResourceOptions? opts = null)
public ScalingPlanPersonalSchedule(String name, ScalingPlanPersonalScheduleArgs args)
public ScalingPlanPersonalSchedule(String name, ScalingPlanPersonalScheduleArgs args, CustomResourceOptions options)
type: azure-native:desktopvirtualization:ScalingPlanPersonalSchedule
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 ScalingPlanPersonalScheduleArgs
- 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 ScalingPlanPersonalScheduleArgs
- 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 ScalingPlanPersonalScheduleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScalingPlanPersonalScheduleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScalingPlanPersonalScheduleArgs
- 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 scalingPlanPersonalScheduleResource = new AzureNative.DesktopVirtualization.ScalingPlanPersonalSchedule("scalingPlanPersonalScheduleResource", new()
{
    ResourceGroupName = "string",
    ScalingPlanName = "string",
    RampDownActionOnLogoff = "string",
    ScalingPlanScheduleName = "string",
    DaysOfWeek = new[]
    {
        "string",
    },
    OffPeakStartTime = new AzureNative.DesktopVirtualization.Inputs.TimeArgs
    {
        Hour = 0,
        Minute = 0,
    },
    OffPeakStartVMOnConnect = "string",
    PeakActionOnDisconnect = "string",
    PeakActionOnLogoff = "string",
    PeakMinutesToWaitOnDisconnect = 0,
    PeakMinutesToWaitOnLogoff = 0,
    PeakStartTime = new AzureNative.DesktopVirtualization.Inputs.TimeArgs
    {
        Hour = 0,
        Minute = 0,
    },
    PeakStartVMOnConnect = "string",
    RampDownActionOnDisconnect = "string",
    OffPeakMinutesToWaitOnLogoff = 0,
    OffPeakMinutesToWaitOnDisconnect = 0,
    RampUpMinutesToWaitOnLogoff = 0,
    RampDownStartTime = new AzureNative.DesktopVirtualization.Inputs.TimeArgs
    {
        Hour = 0,
        Minute = 0,
    },
    RampDownStartVMOnConnect = "string",
    RampUpActionOnDisconnect = "string",
    RampUpActionOnLogoff = "string",
    RampUpAutoStartHosts = "string",
    RampUpMinutesToWaitOnDisconnect = 0,
    RampDownMinutesToWaitOnLogoff = 0,
    RampUpStartTime = new AzureNative.DesktopVirtualization.Inputs.TimeArgs
    {
        Hour = 0,
        Minute = 0,
    },
    RampUpStartVMOnConnect = "string",
    OffPeakActionOnLogoff = "string",
    OffPeakActionOnDisconnect = "string",
    RampDownMinutesToWaitOnDisconnect = 0,
});
example, err := desktopvirtualization.NewScalingPlanPersonalSchedule(ctx, "scalingPlanPersonalScheduleResource", &desktopvirtualization.ScalingPlanPersonalScheduleArgs{
	ResourceGroupName:       pulumi.String("string"),
	ScalingPlanName:         pulumi.String("string"),
	RampDownActionOnLogoff:  pulumi.String("string"),
	ScalingPlanScheduleName: pulumi.String("string"),
	DaysOfWeek: pulumi.StringArray{
		pulumi.String("string"),
	},
	OffPeakStartTime: &desktopvirtualization.TimeArgs{
		Hour:   pulumi.Int(0),
		Minute: pulumi.Int(0),
	},
	OffPeakStartVMOnConnect:       pulumi.String("string"),
	PeakActionOnDisconnect:        pulumi.String("string"),
	PeakActionOnLogoff:            pulumi.String("string"),
	PeakMinutesToWaitOnDisconnect: pulumi.Int(0),
	PeakMinutesToWaitOnLogoff:     pulumi.Int(0),
	PeakStartTime: &desktopvirtualization.TimeArgs{
		Hour:   pulumi.Int(0),
		Minute: pulumi.Int(0),
	},
	PeakStartVMOnConnect:             pulumi.String("string"),
	RampDownActionOnDisconnect:       pulumi.String("string"),
	OffPeakMinutesToWaitOnLogoff:     pulumi.Int(0),
	OffPeakMinutesToWaitOnDisconnect: pulumi.Int(0),
	RampUpMinutesToWaitOnLogoff:      pulumi.Int(0),
	RampDownStartTime: &desktopvirtualization.TimeArgs{
		Hour:   pulumi.Int(0),
		Minute: pulumi.Int(0),
	},
	RampDownStartVMOnConnect:        pulumi.String("string"),
	RampUpActionOnDisconnect:        pulumi.String("string"),
	RampUpActionOnLogoff:            pulumi.String("string"),
	RampUpAutoStartHosts:            pulumi.String("string"),
	RampUpMinutesToWaitOnDisconnect: pulumi.Int(0),
	RampDownMinutesToWaitOnLogoff:   pulumi.Int(0),
	RampUpStartTime: &desktopvirtualization.TimeArgs{
		Hour:   pulumi.Int(0),
		Minute: pulumi.Int(0),
	},
	RampUpStartVMOnConnect:            pulumi.String("string"),
	OffPeakActionOnLogoff:             pulumi.String("string"),
	OffPeakActionOnDisconnect:         pulumi.String("string"),
	RampDownMinutesToWaitOnDisconnect: pulumi.Int(0),
})
var scalingPlanPersonalScheduleResource = new ScalingPlanPersonalSchedule("scalingPlanPersonalScheduleResource", ScalingPlanPersonalScheduleArgs.builder()
    .resourceGroupName("string")
    .scalingPlanName("string")
    .rampDownActionOnLogoff("string")
    .scalingPlanScheduleName("string")
    .daysOfWeek("string")
    .offPeakStartTime(TimeArgs.builder()
        .hour(0)
        .minute(0)
        .build())
    .offPeakStartVMOnConnect("string")
    .peakActionOnDisconnect("string")
    .peakActionOnLogoff("string")
    .peakMinutesToWaitOnDisconnect(0)
    .peakMinutesToWaitOnLogoff(0)
    .peakStartTime(TimeArgs.builder()
        .hour(0)
        .minute(0)
        .build())
    .peakStartVMOnConnect("string")
    .rampDownActionOnDisconnect("string")
    .offPeakMinutesToWaitOnLogoff(0)
    .offPeakMinutesToWaitOnDisconnect(0)
    .rampUpMinutesToWaitOnLogoff(0)
    .rampDownStartTime(TimeArgs.builder()
        .hour(0)
        .minute(0)
        .build())
    .rampDownStartVMOnConnect("string")
    .rampUpActionOnDisconnect("string")
    .rampUpActionOnLogoff("string")
    .rampUpAutoStartHosts("string")
    .rampUpMinutesToWaitOnDisconnect(0)
    .rampDownMinutesToWaitOnLogoff(0)
    .rampUpStartTime(TimeArgs.builder()
        .hour(0)
        .minute(0)
        .build())
    .rampUpStartVMOnConnect("string")
    .offPeakActionOnLogoff("string")
    .offPeakActionOnDisconnect("string")
    .rampDownMinutesToWaitOnDisconnect(0)
    .build());
scaling_plan_personal_schedule_resource = azure_native.desktopvirtualization.ScalingPlanPersonalSchedule("scalingPlanPersonalScheduleResource",
    resource_group_name="string",
    scaling_plan_name="string",
    ramp_down_action_on_logoff="string",
    scaling_plan_schedule_name="string",
    days_of_week=["string"],
    off_peak_start_time={
        "hour": 0,
        "minute": 0,
    },
    off_peak_start_vm_on_connect="string",
    peak_action_on_disconnect="string",
    peak_action_on_logoff="string",
    peak_minutes_to_wait_on_disconnect=0,
    peak_minutes_to_wait_on_logoff=0,
    peak_start_time={
        "hour": 0,
        "minute": 0,
    },
    peak_start_vm_on_connect="string",
    ramp_down_action_on_disconnect="string",
    off_peak_minutes_to_wait_on_logoff=0,
    off_peak_minutes_to_wait_on_disconnect=0,
    ramp_up_minutes_to_wait_on_logoff=0,
    ramp_down_start_time={
        "hour": 0,
        "minute": 0,
    },
    ramp_down_start_vm_on_connect="string",
    ramp_up_action_on_disconnect="string",
    ramp_up_action_on_logoff="string",
    ramp_up_auto_start_hosts="string",
    ramp_up_minutes_to_wait_on_disconnect=0,
    ramp_down_minutes_to_wait_on_logoff=0,
    ramp_up_start_time={
        "hour": 0,
        "minute": 0,
    },
    ramp_up_start_vm_on_connect="string",
    off_peak_action_on_logoff="string",
    off_peak_action_on_disconnect="string",
    ramp_down_minutes_to_wait_on_disconnect=0)
const scalingPlanPersonalScheduleResource = new azure_native.desktopvirtualization.ScalingPlanPersonalSchedule("scalingPlanPersonalScheduleResource", {
    resourceGroupName: "string",
    scalingPlanName: "string",
    rampDownActionOnLogoff: "string",
    scalingPlanScheduleName: "string",
    daysOfWeek: ["string"],
    offPeakStartTime: {
        hour: 0,
        minute: 0,
    },
    offPeakStartVMOnConnect: "string",
    peakActionOnDisconnect: "string",
    peakActionOnLogoff: "string",
    peakMinutesToWaitOnDisconnect: 0,
    peakMinutesToWaitOnLogoff: 0,
    peakStartTime: {
        hour: 0,
        minute: 0,
    },
    peakStartVMOnConnect: "string",
    rampDownActionOnDisconnect: "string",
    offPeakMinutesToWaitOnLogoff: 0,
    offPeakMinutesToWaitOnDisconnect: 0,
    rampUpMinutesToWaitOnLogoff: 0,
    rampDownStartTime: {
        hour: 0,
        minute: 0,
    },
    rampDownStartVMOnConnect: "string",
    rampUpActionOnDisconnect: "string",
    rampUpActionOnLogoff: "string",
    rampUpAutoStartHosts: "string",
    rampUpMinutesToWaitOnDisconnect: 0,
    rampDownMinutesToWaitOnLogoff: 0,
    rampUpStartTime: {
        hour: 0,
        minute: 0,
    },
    rampUpStartVMOnConnect: "string",
    offPeakActionOnLogoff: "string",
    offPeakActionOnDisconnect: "string",
    rampDownMinutesToWaitOnDisconnect: 0,
});
type: azure-native:desktopvirtualization:ScalingPlanPersonalSchedule
properties:
    daysOfWeek:
        - string
    offPeakActionOnDisconnect: string
    offPeakActionOnLogoff: string
    offPeakMinutesToWaitOnDisconnect: 0
    offPeakMinutesToWaitOnLogoff: 0
    offPeakStartTime:
        hour: 0
        minute: 0
    offPeakStartVMOnConnect: string
    peakActionOnDisconnect: string
    peakActionOnLogoff: string
    peakMinutesToWaitOnDisconnect: 0
    peakMinutesToWaitOnLogoff: 0
    peakStartTime:
        hour: 0
        minute: 0
    peakStartVMOnConnect: string
    rampDownActionOnDisconnect: string
    rampDownActionOnLogoff: string
    rampDownMinutesToWaitOnDisconnect: 0
    rampDownMinutesToWaitOnLogoff: 0
    rampDownStartTime:
        hour: 0
        minute: 0
    rampDownStartVMOnConnect: string
    rampUpActionOnDisconnect: string
    rampUpActionOnLogoff: string
    rampUpAutoStartHosts: string
    rampUpMinutesToWaitOnDisconnect: 0
    rampUpMinutesToWaitOnLogoff: 0
    rampUpStartTime:
        hour: 0
        minute: 0
    rampUpStartVMOnConnect: string
    resourceGroupName: string
    scalingPlanName: string
    scalingPlanScheduleName: string
ScalingPlanPersonalSchedule 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 ScalingPlanPersonalSchedule resource accepts the following input properties:
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ScalingPlan stringName 
- The name of the scaling plan.
- DaysOf List<Union<string, Pulumi.Week Azure Native. Desktop Virtualization. Day Of Week>> 
- Set of days of the week on which this schedule is active.
- OffPeak string | Pulumi.Action On Disconnect Azure Native. Desktop Virtualization. Session Handling Operation 
- Action to be taken after a user disconnect during the off-peak period.
- OffPeak string | Pulumi.Action On Logoff Azure Native. Desktop Virtualization. Session Handling Operation 
- Action to be taken after a logoff during the off-peak period.
- OffPeak intMinutes To Wait On Disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the off-peak period.
- OffPeak intMinutes To Wait On Logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the off-peak period.
- OffPeak Pulumi.Start Time Azure Native. Desktop Virtualization. Inputs. Time 
- Starting time for off-peak period.
- OffPeak string | Pulumi.Start VMOn Connect Azure Native. Desktop Virtualization. Set Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the off-peak phase.
- PeakAction string | Pulumi.On Disconnect Azure Native. Desktop Virtualization. Session Handling Operation 
- Action to be taken after a user disconnect during the peak period.
- PeakAction string | Pulumi.On Logoff Azure Native. Desktop Virtualization. Session Handling Operation 
- Action to be taken after a logoff during the peak period.
- PeakMinutes intTo Wait On Disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the peak period.
- PeakMinutes intTo Wait On Logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the peak period.
- PeakStart Pulumi.Time Azure Native. Desktop Virtualization. Inputs. Time 
- Starting time for peak period.
- PeakStart string | Pulumi.VMOn Connect Azure Native. Desktop Virtualization. Set Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the peak phase.
- RampDown string | Pulumi.Action On Disconnect Azure Native. Desktop Virtualization. Session Handling Operation 
- Action to be taken after a user disconnect during the ramp down period.
- RampDown string | Pulumi.Action On Logoff Azure Native. Desktop Virtualization. Session Handling Operation 
- Action to be taken after a logoff during the ramp down period.
- RampDown intMinutes To Wait On Disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp down period.
- RampDown intMinutes To Wait On Logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp down period.
- RampDown Pulumi.Start Time Azure Native. Desktop Virtualization. Inputs. Time 
- Starting time for ramp down period.
- RampDown string | Pulumi.Start VMOn Connect Azure Native. Desktop Virtualization. Set Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the ramp down phase.
- RampUp string | Pulumi.Action On Disconnect Azure Native. Desktop Virtualization. Session Handling Operation 
- Action to be taken after a user disconnect during the ramp up period.
- RampUp string | Pulumi.Action On Logoff Azure Native. Desktop Virtualization. Session Handling Operation 
- Action to be taken after a logoff during the ramp up period.
- RampUp string | Pulumi.Auto Start Hosts Azure Native. Desktop Virtualization. Startup Behavior 
- The desired startup behavior during the ramp up period for personal vms in the hostpool.
- RampUp intMinutes To Wait On Disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp up period.
- RampUp intMinutes To Wait On Logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp up period.
- RampUp Pulumi.Start Time Azure Native. Desktop Virtualization. Inputs. Time 
- Starting time for ramp up period.
- RampUp string | Pulumi.Start VMOn Connect Azure Native. Desktop Virtualization. Set Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the ramp up phase. If this is disabled, session hosts must be turned on using rampUpAutoStartHosts or by turning them on manually.
- ScalingPlan stringSchedule Name 
- The name of the ScalingPlanSchedule
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ScalingPlan stringName 
- The name of the scaling plan.
- DaysOf []stringWeek 
- Set of days of the week on which this schedule is active.
- OffPeak string | SessionAction On Disconnect Handling Operation 
- Action to be taken after a user disconnect during the off-peak period.
- OffPeak string | SessionAction On Logoff Handling Operation 
- Action to be taken after a logoff during the off-peak period.
- OffPeak intMinutes To Wait On Disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the off-peak period.
- OffPeak intMinutes To Wait On Logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the off-peak period.
- OffPeak TimeStart Time Args 
- Starting time for off-peak period.
- OffPeak string | SetStart VMOn Connect Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the off-peak phase.
- PeakAction string | SessionOn Disconnect Handling Operation 
- Action to be taken after a user disconnect during the peak period.
- PeakAction string | SessionOn Logoff Handling Operation 
- Action to be taken after a logoff during the peak period.
- PeakMinutes intTo Wait On Disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the peak period.
- PeakMinutes intTo Wait On Logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the peak period.
- PeakStart TimeTime Args 
- Starting time for peak period.
- PeakStart string | SetVMOn Connect Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the peak phase.
- RampDown string | SessionAction On Disconnect Handling Operation 
- Action to be taken after a user disconnect during the ramp down period.
- RampDown string | SessionAction On Logoff Handling Operation 
- Action to be taken after a logoff during the ramp down period.
- RampDown intMinutes To Wait On Disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp down period.
- RampDown intMinutes To Wait On Logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp down period.
- RampDown TimeStart Time Args 
- Starting time for ramp down period.
- RampDown string | SetStart VMOn Connect Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the ramp down phase.
- RampUp string | SessionAction On Disconnect Handling Operation 
- Action to be taken after a user disconnect during the ramp up period.
- RampUp string | SessionAction On Logoff Handling Operation 
- Action to be taken after a logoff during the ramp up period.
- RampUp string | StartupAuto Start Hosts Behavior 
- The desired startup behavior during the ramp up period for personal vms in the hostpool.
- RampUp intMinutes To Wait On Disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp up period.
- RampUp intMinutes To Wait On Logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp up period.
- RampUp TimeStart Time Args 
- Starting time for ramp up period.
- RampUp string | SetStart VMOn Connect Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the ramp up phase. If this is disabled, session hosts must be turned on using rampUpAutoStartHosts or by turning them on manually.
- ScalingPlan stringSchedule Name 
- The name of the ScalingPlanSchedule
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- scalingPlan StringName 
- The name of the scaling plan.
- daysOf List<Either<String,DayWeek Of Week>> 
- Set of days of the week on which this schedule is active.
- offPeak String | SessionAction On Disconnect Handling Operation 
- Action to be taken after a user disconnect during the off-peak period.
- offPeak String | SessionAction On Logoff Handling Operation 
- Action to be taken after a logoff during the off-peak period.
- offPeak IntegerMinutes To Wait On Disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the off-peak period.
- offPeak IntegerMinutes To Wait On Logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the off-peak period.
- offPeak TimeStart Time 
- Starting time for off-peak period.
- offPeak String | SetStart VMOn Connect Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the off-peak phase.
- peakAction String | SessionOn Disconnect Handling Operation 
- Action to be taken after a user disconnect during the peak period.
- peakAction String | SessionOn Logoff Handling Operation 
- Action to be taken after a logoff during the peak period.
- peakMinutes IntegerTo Wait On Disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the peak period.
- peakMinutes IntegerTo Wait On Logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the peak period.
- peakStart TimeTime 
- Starting time for peak period.
- peakStart String | SetVMOn Connect Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the peak phase.
- rampDown String | SessionAction On Disconnect Handling Operation 
- Action to be taken after a user disconnect during the ramp down period.
- rampDown String | SessionAction On Logoff Handling Operation 
- Action to be taken after a logoff during the ramp down period.
- rampDown IntegerMinutes To Wait On Disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp down period.
- rampDown IntegerMinutes To Wait On Logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp down period.
- rampDown TimeStart Time 
- Starting time for ramp down period.
- rampDown String | SetStart VMOn Connect Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the ramp down phase.
- rampUp String | SessionAction On Disconnect Handling Operation 
- Action to be taken after a user disconnect during the ramp up period.
- rampUp String | SessionAction On Logoff Handling Operation 
- Action to be taken after a logoff during the ramp up period.
- rampUp String | StartupAuto Start Hosts Behavior 
- The desired startup behavior during the ramp up period for personal vms in the hostpool.
- rampUp IntegerMinutes To Wait On Disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp up period.
- rampUp IntegerMinutes To Wait On Logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp up period.
- rampUp TimeStart Time 
- Starting time for ramp up period.
- rampUp String | SetStart VMOn Connect Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the ramp up phase. If this is disabled, session hosts must be turned on using rampUpAutoStartHosts or by turning them on manually.
- scalingPlan StringSchedule Name 
- The name of the ScalingPlanSchedule
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- scalingPlan stringName 
- The name of the scaling plan.
- daysOf (string | DayWeek Of Week)[] 
- Set of days of the week on which this schedule is active.
- offPeak string | SessionAction On Disconnect Handling Operation 
- Action to be taken after a user disconnect during the off-peak period.
- offPeak string | SessionAction On Logoff Handling Operation 
- Action to be taken after a logoff during the off-peak period.
- offPeak numberMinutes To Wait On Disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the off-peak period.
- offPeak numberMinutes To Wait On Logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the off-peak period.
- offPeak TimeStart Time 
- Starting time for off-peak period.
- offPeak string | SetStart VMOn Connect Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the off-peak phase.
- peakAction string | SessionOn Disconnect Handling Operation 
- Action to be taken after a user disconnect during the peak period.
- peakAction string | SessionOn Logoff Handling Operation 
- Action to be taken after a logoff during the peak period.
- peakMinutes numberTo Wait On Disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the peak period.
- peakMinutes numberTo Wait On Logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the peak period.
- peakStart TimeTime 
- Starting time for peak period.
- peakStart string | SetVMOn Connect Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the peak phase.
- rampDown string | SessionAction On Disconnect Handling Operation 
- Action to be taken after a user disconnect during the ramp down period.
- rampDown string | SessionAction On Logoff Handling Operation 
- Action to be taken after a logoff during the ramp down period.
- rampDown numberMinutes To Wait On Disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp down period.
- rampDown numberMinutes To Wait On Logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp down period.
- rampDown TimeStart Time 
- Starting time for ramp down period.
- rampDown string | SetStart VMOn Connect Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the ramp down phase.
- rampUp string | SessionAction On Disconnect Handling Operation 
- Action to be taken after a user disconnect during the ramp up period.
- rampUp string | SessionAction On Logoff Handling Operation 
- Action to be taken after a logoff during the ramp up period.
- rampUp string | StartupAuto Start Hosts Behavior 
- The desired startup behavior during the ramp up period for personal vms in the hostpool.
- rampUp numberMinutes To Wait On Disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp up period.
- rampUp numberMinutes To Wait On Logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp up period.
- rampUp TimeStart Time 
- Starting time for ramp up period.
- rampUp string | SetStart VMOn Connect Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the ramp up phase. If this is disabled, session hosts must be turned on using rampUpAutoStartHosts or by turning them on manually.
- scalingPlan stringSchedule Name 
- The name of the ScalingPlanSchedule
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- scaling_plan_ strname 
- The name of the scaling plan.
- days_of_ Sequence[Union[str, Dayweek Of Week]] 
- Set of days of the week on which this schedule is active.
- off_peak_ str | Sessionaction_ on_ disconnect Handling Operation 
- Action to be taken after a user disconnect during the off-peak period.
- off_peak_ str | Sessionaction_ on_ logoff Handling Operation 
- Action to be taken after a logoff during the off-peak period.
- off_peak_ intminutes_ to_ wait_ on_ disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the off-peak period.
- off_peak_ intminutes_ to_ wait_ on_ logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the off-peak period.
- off_peak_ Timestart_ time Args 
- Starting time for off-peak period.
- off_peak_ str | Setstart_ vm_ on_ connect Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the off-peak phase.
- peak_action_ str | Sessionon_ disconnect Handling Operation 
- Action to be taken after a user disconnect during the peak period.
- peak_action_ str | Sessionon_ logoff Handling Operation 
- Action to be taken after a logoff during the peak period.
- peak_minutes_ intto_ wait_ on_ disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the peak period.
- peak_minutes_ intto_ wait_ on_ logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the peak period.
- peak_start_ Timetime Args 
- Starting time for peak period.
- peak_start_ str | Setvm_ on_ connect Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the peak phase.
- ramp_down_ str | Sessionaction_ on_ disconnect Handling Operation 
- Action to be taken after a user disconnect during the ramp down period.
- ramp_down_ str | Sessionaction_ on_ logoff Handling Operation 
- Action to be taken after a logoff during the ramp down period.
- ramp_down_ intminutes_ to_ wait_ on_ disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp down period.
- ramp_down_ intminutes_ to_ wait_ on_ logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp down period.
- ramp_down_ Timestart_ time Args 
- Starting time for ramp down period.
- ramp_down_ str | Setstart_ vm_ on_ connect Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the ramp down phase.
- ramp_up_ str | Sessionaction_ on_ disconnect Handling Operation 
- Action to be taken after a user disconnect during the ramp up period.
- ramp_up_ str | Sessionaction_ on_ logoff Handling Operation 
- Action to be taken after a logoff during the ramp up period.
- ramp_up_ str | Startupauto_ start_ hosts Behavior 
- The desired startup behavior during the ramp up period for personal vms in the hostpool.
- ramp_up_ intminutes_ to_ wait_ on_ disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp up period.
- ramp_up_ intminutes_ to_ wait_ on_ logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp up period.
- ramp_up_ Timestart_ time Args 
- Starting time for ramp up period.
- ramp_up_ str | Setstart_ vm_ on_ connect Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the ramp up phase. If this is disabled, session hosts must be turned on using rampUpAutoStartHosts or by turning them on manually.
- scaling_plan_ strschedule_ name 
- The name of the ScalingPlanSchedule
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- scalingPlan StringName 
- The name of the scaling plan.
- daysOf List<String | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday">Week 
- Set of days of the week on which this schedule is active.
- offPeak String | "None" | "Deallocate"Action On Disconnect 
- Action to be taken after a user disconnect during the off-peak period.
- offPeak String | "None" | "Deallocate"Action On Logoff 
- Action to be taken after a logoff during the off-peak period.
- offPeak NumberMinutes To Wait On Disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the off-peak period.
- offPeak NumberMinutes To Wait On Logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the off-peak period.
- offPeak Property MapStart Time 
- Starting time for off-peak period.
- offPeak String | "Enable" | "Disable"Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the off-peak phase.
- peakAction String | "None" | "Deallocate"On Disconnect 
- Action to be taken after a user disconnect during the peak period.
- peakAction String | "None" | "Deallocate"On Logoff 
- Action to be taken after a logoff during the peak period.
- peakMinutes NumberTo Wait On Disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the peak period.
- peakMinutes NumberTo Wait On Logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the peak period.
- peakStart Property MapTime 
- Starting time for peak period.
- peakStart String | "Enable" | "Disable"VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the peak phase.
- rampDown String | "None" | "Deallocate"Action On Disconnect 
- Action to be taken after a user disconnect during the ramp down period.
- rampDown String | "None" | "Deallocate"Action On Logoff 
- Action to be taken after a logoff during the ramp down period.
- rampDown NumberMinutes To Wait On Disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp down period.
- rampDown NumberMinutes To Wait On Logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp down period.
- rampDown Property MapStart Time 
- Starting time for ramp down period.
- rampDown String | "Enable" | "Disable"Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the ramp down phase.
- rampUp String | "None" | "Deallocate"Action On Disconnect 
- Action to be taken after a user disconnect during the ramp up period.
- rampUp String | "None" | "Deallocate"Action On Logoff 
- Action to be taken after a logoff during the ramp up period.
- rampUp String | "None" | "WithAuto Start Hosts Assigned User" | "All" 
- The desired startup behavior during the ramp up period for personal vms in the hostpool.
- rampUp NumberMinutes To Wait On Disconnect 
- The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp up period.
- rampUp NumberMinutes To Wait On Logoff 
- The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp up period.
- rampUp Property MapStart Time 
- Starting time for ramp up period.
- rampUp String | "Enable" | "Disable"Start VMOn Connect 
- The desired configuration of Start VM On Connect for the hostpool during the ramp up phase. If this is disabled, session hosts must be turned on using rampUpAutoStartHosts or by turning them on manually.
- scalingPlan StringSchedule Name 
- The name of the ScalingPlanSchedule
Outputs
All input properties are implicitly available as output properties. Additionally, the ScalingPlanPersonalSchedule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- SystemData Pulumi.Azure Native. Desktop Virtualization. Outputs. System Data Response 
- Metadata pertaining to creation and last modification 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
- SystemData SystemData Response 
- Metadata pertaining to creation and last modification 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
- systemData SystemData Response 
- Metadata pertaining to creation and last modification 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
- systemData SystemData Response 
- Metadata pertaining to creation and last modification 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
- system_data SystemData Response 
- Metadata pertaining to creation and last modification of the resource.
- type str
- 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
- systemData Property Map
- Metadata pertaining to creation and last modification of the resource.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
DayOfWeek, DayOfWeekArgs      
- Monday
- Monday
- Tuesday
- Tuesday
- Wednesday
- Wednesday
- Thursday
- Thursday
- Friday
- Friday
- Saturday
- Saturday
- Sunday
- Sunday
- DayOf Week Monday 
- Monday
- DayOf Week Tuesday 
- Tuesday
- DayOf Week Wednesday 
- Wednesday
- DayOf Week Thursday 
- Thursday
- DayOf Week Friday 
- Friday
- DayOf Week Saturday 
- Saturday
- DayOf Week Sunday 
- Sunday
- Monday
- Monday
- Tuesday
- Tuesday
- Wednesday
- Wednesday
- Thursday
- Thursday
- Friday
- Friday
- Saturday
- Saturday
- Sunday
- Sunday
- Monday
- Monday
- Tuesday
- Tuesday
- Wednesday
- Wednesday
- Thursday
- Thursday
- Friday
- Friday
- Saturday
- Saturday
- Sunday
- Sunday
- MONDAY
- Monday
- TUESDAY
- Tuesday
- WEDNESDAY
- Wednesday
- THURSDAY
- Thursday
- FRIDAY
- Friday
- SATURDAY
- Saturday
- SUNDAY
- Sunday
- "Monday"
- Monday
- "Tuesday"
- Tuesday
- "Wednesday"
- Wednesday
- "Thursday"
- Thursday
- "Friday"
- Friday
- "Saturday"
- Saturday
- "Sunday"
- Sunday
SessionHandlingOperation, SessionHandlingOperationArgs      
- None
- None
- Deallocate
- Deallocate
- SessionHandling Operation None 
- None
- SessionHandling Operation Deallocate 
- Deallocate
- None
- None
- Deallocate
- Deallocate
- None
- None
- Deallocate
- Deallocate
- NONE
- None
- DEALLOCATE
- Deallocate
- "None"
- None
- "Deallocate"
- Deallocate
SetStartVMOnConnect, SetStartVMOnConnectArgs        
- Enable
- Enable
- Disable
- Disable
- SetStart VMOn Connect Enable 
- Enable
- SetStart VMOn Connect Disable 
- Disable
- Enable
- Enable
- Disable
- Disable
- Enable
- Enable
- Disable
- Disable
- ENABLE
- Enable
- DISABLE
- Disable
- "Enable"
- Enable
- "Disable"
- Disable
StartupBehavior, StartupBehaviorArgs    
- None
- NoneSession hosts will not be started by the service. This setting depends on Start VM on Connect to be enabled to start the session hosts.
- WithAssigned User 
- WithAssignedUserSession hosts with an assigned user will be started during Ramp Up
- All
- AllAll personal session hosts in the hostpool will be started during ramp up.
- StartupBehavior None 
- NoneSession hosts will not be started by the service. This setting depends on Start VM on Connect to be enabled to start the session hosts.
- StartupBehavior With Assigned User 
- WithAssignedUserSession hosts with an assigned user will be started during Ramp Up
- StartupBehavior All 
- AllAll personal session hosts in the hostpool will be started during ramp up.
- None
- NoneSession hosts will not be started by the service. This setting depends on Start VM on Connect to be enabled to start the session hosts.
- WithAssigned User 
- WithAssignedUserSession hosts with an assigned user will be started during Ramp Up
- All
- AllAll personal session hosts in the hostpool will be started during ramp up.
- None
- NoneSession hosts will not be started by the service. This setting depends on Start VM on Connect to be enabled to start the session hosts.
- WithAssigned User 
- WithAssignedUserSession hosts with an assigned user will be started during Ramp Up
- All
- AllAll personal session hosts in the hostpool will be started during ramp up.
- NONE
- NoneSession hosts will not be started by the service. This setting depends on Start VM on Connect to be enabled to start the session hosts.
- WITH_ASSIGNED_USER
- WithAssignedUserSession hosts with an assigned user will be started during Ramp Up
- ALL
- AllAll personal session hosts in the hostpool will be started during ramp up.
- "None"
- NoneSession hosts will not be started by the service. This setting depends on Start VM on Connect to be enabled to start the session hosts.
- "WithAssigned User" 
- WithAssignedUserSession hosts with an assigned user will be started during Ramp Up
- "All"
- AllAll personal session hosts in the hostpool will be started during ramp up.
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- 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_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Time, TimeArgs  
TimeResponse, TimeResponseArgs    
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:desktopvirtualization:ScalingPlanPersonalSchedule scalingPlanScheduleWeekdays1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0