1. Packages
  2. Azure Native
  3. API Docs
  4. desktopvirtualization
  5. ScalingPlanPersonalSchedule
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

azure-native.desktopvirtualization.ScalingPlanPersonalSchedule

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

    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.

    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 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")
    
    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",
    });
    
    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

    The ScalingPlanPersonalSchedule resource accepts the following input properties:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ScalingPlanName string
    The name of the scaling plan.
    DaysOfWeek List<Union<string, Pulumi.AzureNative.DesktopVirtualization.DayOfWeek>>
    Set of days of the week on which this schedule is active.
    OffPeakActionOnDisconnect string | Pulumi.AzureNative.DesktopVirtualization.SessionHandlingOperation
    Action to be taken after a user disconnect during the off-peak period.
    OffPeakActionOnLogoff string | Pulumi.AzureNative.DesktopVirtualization.SessionHandlingOperation
    Action to be taken after a logoff during the off-peak period.
    OffPeakMinutesToWaitOnDisconnect int
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the off-peak period.
    OffPeakMinutesToWaitOnLogoff int
    The time in minutes to wait before performing the desired session handling action when a user logs off during the off-peak period.
    OffPeakStartTime Pulumi.AzureNative.DesktopVirtualization.Inputs.Time
    Starting time for off-peak period.
    OffPeakStartVMOnConnect string | Pulumi.AzureNative.DesktopVirtualization.SetStartVMOnConnect
    The desired configuration of Start VM On Connect for the hostpool during the off-peak phase.
    PeakActionOnDisconnect string | Pulumi.AzureNative.DesktopVirtualization.SessionHandlingOperation
    Action to be taken after a user disconnect during the peak period.
    PeakActionOnLogoff string | Pulumi.AzureNative.DesktopVirtualization.SessionHandlingOperation
    Action to be taken after a logoff during the peak period.
    PeakMinutesToWaitOnDisconnect int
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the peak period.
    PeakMinutesToWaitOnLogoff int
    The time in minutes to wait before performing the desired session handling action when a user logs off during the peak period.
    PeakStartTime Pulumi.AzureNative.DesktopVirtualization.Inputs.Time
    Starting time for peak period.
    PeakStartVMOnConnect string | Pulumi.AzureNative.DesktopVirtualization.SetStartVMOnConnect
    The desired configuration of Start VM On Connect for the hostpool during the peak phase.
    RampDownActionOnDisconnect string | Pulumi.AzureNative.DesktopVirtualization.SessionHandlingOperation
    Action to be taken after a user disconnect during the ramp down period.
    RampDownActionOnLogoff string | Pulumi.AzureNative.DesktopVirtualization.SessionHandlingOperation
    Action to be taken after a logoff during the ramp down period.
    RampDownMinutesToWaitOnDisconnect int
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp down period.
    RampDownMinutesToWaitOnLogoff int
    The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp down period.
    RampDownStartTime Pulumi.AzureNative.DesktopVirtualization.Inputs.Time
    Starting time for ramp down period.
    RampDownStartVMOnConnect string | Pulumi.AzureNative.DesktopVirtualization.SetStartVMOnConnect
    The desired configuration of Start VM On Connect for the hostpool during the ramp down phase.
    RampUpActionOnDisconnect string | Pulumi.AzureNative.DesktopVirtualization.SessionHandlingOperation
    Action to be taken after a user disconnect during the ramp up period.
    RampUpActionOnLogoff string | Pulumi.AzureNative.DesktopVirtualization.SessionHandlingOperation
    Action to be taken after a logoff during the ramp up period.
    RampUpAutoStartHosts string | Pulumi.AzureNative.DesktopVirtualization.StartupBehavior
    The desired startup behavior during the ramp up period for personal vms in the hostpool.
    RampUpMinutesToWaitOnDisconnect int
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp up period.
    RampUpMinutesToWaitOnLogoff int
    The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp up period.
    RampUpStartTime Pulumi.AzureNative.DesktopVirtualization.Inputs.Time
    Starting time for ramp up period.
    RampUpStartVMOnConnect string | Pulumi.AzureNative.DesktopVirtualization.SetStartVMOnConnect
    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.
    ScalingPlanScheduleName string
    The name of the ScalingPlanSchedule
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ScalingPlanName string
    The name of the scaling plan.
    DaysOfWeek []string
    Set of days of the week on which this schedule is active.
    OffPeakActionOnDisconnect string | SessionHandlingOperation
    Action to be taken after a user disconnect during the off-peak period.
    OffPeakActionOnLogoff string | SessionHandlingOperation
    Action to be taken after a logoff during the off-peak period.
    OffPeakMinutesToWaitOnDisconnect int
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the off-peak period.
    OffPeakMinutesToWaitOnLogoff int
    The time in minutes to wait before performing the desired session handling action when a user logs off during the off-peak period.
    OffPeakStartTime TimeArgs
    Starting time for off-peak period.
    OffPeakStartVMOnConnect string | SetStartVMOnConnect
    The desired configuration of Start VM On Connect for the hostpool during the off-peak phase.
    PeakActionOnDisconnect string | SessionHandlingOperation
    Action to be taken after a user disconnect during the peak period.
    PeakActionOnLogoff string | SessionHandlingOperation
    Action to be taken after a logoff during the peak period.
    PeakMinutesToWaitOnDisconnect int
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the peak period.
    PeakMinutesToWaitOnLogoff int
    The time in minutes to wait before performing the desired session handling action when a user logs off during the peak period.
    PeakStartTime TimeArgs
    Starting time for peak period.
    PeakStartVMOnConnect string | SetStartVMOnConnect
    The desired configuration of Start VM On Connect for the hostpool during the peak phase.
    RampDownActionOnDisconnect string | SessionHandlingOperation
    Action to be taken after a user disconnect during the ramp down period.
    RampDownActionOnLogoff string | SessionHandlingOperation
    Action to be taken after a logoff during the ramp down period.
    RampDownMinutesToWaitOnDisconnect int
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp down period.
    RampDownMinutesToWaitOnLogoff int
    The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp down period.
    RampDownStartTime TimeArgs
    Starting time for ramp down period.
    RampDownStartVMOnConnect string | SetStartVMOnConnect
    The desired configuration of Start VM On Connect for the hostpool during the ramp down phase.
    RampUpActionOnDisconnect string | SessionHandlingOperation
    Action to be taken after a user disconnect during the ramp up period.
    RampUpActionOnLogoff string | SessionHandlingOperation
    Action to be taken after a logoff during the ramp up period.
    RampUpAutoStartHosts string | StartupBehavior
    The desired startup behavior during the ramp up period for personal vms in the hostpool.
    RampUpMinutesToWaitOnDisconnect int
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp up period.
    RampUpMinutesToWaitOnLogoff int
    The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp up period.
    RampUpStartTime TimeArgs
    Starting time for ramp up period.
    RampUpStartVMOnConnect string | SetStartVMOnConnect
    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.
    ScalingPlanScheduleName string
    The name of the ScalingPlanSchedule
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    scalingPlanName String
    The name of the scaling plan.
    daysOfWeek List<Either<String,DayOfWeek>>
    Set of days of the week on which this schedule is active.
    offPeakActionOnDisconnect String | SessionHandlingOperation
    Action to be taken after a user disconnect during the off-peak period.
    offPeakActionOnLogoff String | SessionHandlingOperation
    Action to be taken after a logoff during the off-peak period.
    offPeakMinutesToWaitOnDisconnect Integer
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the off-peak period.
    offPeakMinutesToWaitOnLogoff Integer
    The time in minutes to wait before performing the desired session handling action when a user logs off during the off-peak period.
    offPeakStartTime Time
    Starting time for off-peak period.
    offPeakStartVMOnConnect String | SetStartVMOnConnect
    The desired configuration of Start VM On Connect for the hostpool during the off-peak phase.
    peakActionOnDisconnect String | SessionHandlingOperation
    Action to be taken after a user disconnect during the peak period.
    peakActionOnLogoff String | SessionHandlingOperation
    Action to be taken after a logoff during the peak period.
    peakMinutesToWaitOnDisconnect Integer
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the peak period.
    peakMinutesToWaitOnLogoff Integer
    The time in minutes to wait before performing the desired session handling action when a user logs off during the peak period.
    peakStartTime Time
    Starting time for peak period.
    peakStartVMOnConnect String | SetStartVMOnConnect
    The desired configuration of Start VM On Connect for the hostpool during the peak phase.
    rampDownActionOnDisconnect String | SessionHandlingOperation
    Action to be taken after a user disconnect during the ramp down period.
    rampDownActionOnLogoff String | SessionHandlingOperation
    Action to be taken after a logoff during the ramp down period.
    rampDownMinutesToWaitOnDisconnect Integer
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp down period.
    rampDownMinutesToWaitOnLogoff Integer
    The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp down period.
    rampDownStartTime Time
    Starting time for ramp down period.
    rampDownStartVMOnConnect String | SetStartVMOnConnect
    The desired configuration of Start VM On Connect for the hostpool during the ramp down phase.
    rampUpActionOnDisconnect String | SessionHandlingOperation
    Action to be taken after a user disconnect during the ramp up period.
    rampUpActionOnLogoff String | SessionHandlingOperation
    Action to be taken after a logoff during the ramp up period.
    rampUpAutoStartHosts String | StartupBehavior
    The desired startup behavior during the ramp up period for personal vms in the hostpool.
    rampUpMinutesToWaitOnDisconnect Integer
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp up period.
    rampUpMinutesToWaitOnLogoff Integer
    The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp up period.
    rampUpStartTime Time
    Starting time for ramp up period.
    rampUpStartVMOnConnect String | SetStartVMOnConnect
    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.
    scalingPlanScheduleName String
    The name of the ScalingPlanSchedule
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    scalingPlanName string
    The name of the scaling plan.
    daysOfWeek (string | DayOfWeek)[]
    Set of days of the week on which this schedule is active.
    offPeakActionOnDisconnect string | SessionHandlingOperation
    Action to be taken after a user disconnect during the off-peak period.
    offPeakActionOnLogoff string | SessionHandlingOperation
    Action to be taken after a logoff during the off-peak period.
    offPeakMinutesToWaitOnDisconnect number
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the off-peak period.
    offPeakMinutesToWaitOnLogoff number
    The time in minutes to wait before performing the desired session handling action when a user logs off during the off-peak period.
    offPeakStartTime Time
    Starting time for off-peak period.
    offPeakStartVMOnConnect string | SetStartVMOnConnect
    The desired configuration of Start VM On Connect for the hostpool during the off-peak phase.
    peakActionOnDisconnect string | SessionHandlingOperation
    Action to be taken after a user disconnect during the peak period.
    peakActionOnLogoff string | SessionHandlingOperation
    Action to be taken after a logoff during the peak period.
    peakMinutesToWaitOnDisconnect number
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the peak period.
    peakMinutesToWaitOnLogoff number
    The time in minutes to wait before performing the desired session handling action when a user logs off during the peak period.
    peakStartTime Time
    Starting time for peak period.
    peakStartVMOnConnect string | SetStartVMOnConnect
    The desired configuration of Start VM On Connect for the hostpool during the peak phase.
    rampDownActionOnDisconnect string | SessionHandlingOperation
    Action to be taken after a user disconnect during the ramp down period.
    rampDownActionOnLogoff string | SessionHandlingOperation
    Action to be taken after a logoff during the ramp down period.
    rampDownMinutesToWaitOnDisconnect number
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp down period.
    rampDownMinutesToWaitOnLogoff number
    The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp down period.
    rampDownStartTime Time
    Starting time for ramp down period.
    rampDownStartVMOnConnect string | SetStartVMOnConnect
    The desired configuration of Start VM On Connect for the hostpool during the ramp down phase.
    rampUpActionOnDisconnect string | SessionHandlingOperation
    Action to be taken after a user disconnect during the ramp up period.
    rampUpActionOnLogoff string | SessionHandlingOperation
    Action to be taken after a logoff during the ramp up period.
    rampUpAutoStartHosts string | StartupBehavior
    The desired startup behavior during the ramp up period for personal vms in the hostpool.
    rampUpMinutesToWaitOnDisconnect number
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp up period.
    rampUpMinutesToWaitOnLogoff number
    The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp up period.
    rampUpStartTime Time
    Starting time for ramp up period.
    rampUpStartVMOnConnect string | SetStartVMOnConnect
    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.
    scalingPlanScheduleName string
    The name of the ScalingPlanSchedule
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    scaling_plan_name str
    The name of the scaling plan.
    days_of_week Sequence[Union[str, DayOfWeek]]
    Set of days of the week on which this schedule is active.
    off_peak_action_on_disconnect str | SessionHandlingOperation
    Action to be taken after a user disconnect during the off-peak period.
    off_peak_action_on_logoff str | SessionHandlingOperation
    Action to be taken after a logoff during the off-peak period.
    off_peak_minutes_to_wait_on_disconnect int
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the off-peak period.
    off_peak_minutes_to_wait_on_logoff int
    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_start_time TimeArgs
    Starting time for off-peak period.
    off_peak_start_vm_on_connect str | SetStartVMOnConnect
    The desired configuration of Start VM On Connect for the hostpool during the off-peak phase.
    peak_action_on_disconnect str | SessionHandlingOperation
    Action to be taken after a user disconnect during the peak period.
    peak_action_on_logoff str | SessionHandlingOperation
    Action to be taken after a logoff during the peak period.
    peak_minutes_to_wait_on_disconnect int
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the peak period.
    peak_minutes_to_wait_on_logoff int
    The time in minutes to wait before performing the desired session handling action when a user logs off during the peak period.
    peak_start_time TimeArgs
    Starting time for peak period.
    peak_start_vm_on_connect str | SetStartVMOnConnect
    The desired configuration of Start VM On Connect for the hostpool during the peak phase.
    ramp_down_action_on_disconnect str | SessionHandlingOperation
    Action to be taken after a user disconnect during the ramp down period.
    ramp_down_action_on_logoff str | SessionHandlingOperation
    Action to be taken after a logoff during the ramp down period.
    ramp_down_minutes_to_wait_on_disconnect int
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp down period.
    ramp_down_minutes_to_wait_on_logoff int
    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_start_time TimeArgs
    Starting time for ramp down period.
    ramp_down_start_vm_on_connect str | SetStartVMOnConnect
    The desired configuration of Start VM On Connect for the hostpool during the ramp down phase.
    ramp_up_action_on_disconnect str | SessionHandlingOperation
    Action to be taken after a user disconnect during the ramp up period.
    ramp_up_action_on_logoff str | SessionHandlingOperation
    Action to be taken after a logoff during the ramp up period.
    ramp_up_auto_start_hosts str | StartupBehavior
    The desired startup behavior during the ramp up period for personal vms in the hostpool.
    ramp_up_minutes_to_wait_on_disconnect int
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp up period.
    ramp_up_minutes_to_wait_on_logoff int
    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_start_time TimeArgs
    Starting time for ramp up period.
    ramp_up_start_vm_on_connect str | SetStartVMOnConnect
    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_schedule_name str
    The name of the ScalingPlanSchedule
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    scalingPlanName String
    The name of the scaling plan.
    daysOfWeek List<String | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday">
    Set of days of the week on which this schedule is active.
    offPeakActionOnDisconnect String | "None" | "Deallocate"
    Action to be taken after a user disconnect during the off-peak period.
    offPeakActionOnLogoff String | "None" | "Deallocate"
    Action to be taken after a logoff during the off-peak period.
    offPeakMinutesToWaitOnDisconnect Number
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the off-peak period.
    offPeakMinutesToWaitOnLogoff Number
    The time in minutes to wait before performing the desired session handling action when a user logs off during the off-peak period.
    offPeakStartTime Property Map
    Starting time for off-peak period.
    offPeakStartVMOnConnect String | "Enable" | "Disable"
    The desired configuration of Start VM On Connect for the hostpool during the off-peak phase.
    peakActionOnDisconnect String | "None" | "Deallocate"
    Action to be taken after a user disconnect during the peak period.
    peakActionOnLogoff String | "None" | "Deallocate"
    Action to be taken after a logoff during the peak period.
    peakMinutesToWaitOnDisconnect Number
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the peak period.
    peakMinutesToWaitOnLogoff Number
    The time in minutes to wait before performing the desired session handling action when a user logs off during the peak period.
    peakStartTime Property Map
    Starting time for peak period.
    peakStartVMOnConnect String | "Enable" | "Disable"
    The desired configuration of Start VM On Connect for the hostpool during the peak phase.
    rampDownActionOnDisconnect String | "None" | "Deallocate"
    Action to be taken after a user disconnect during the ramp down period.
    rampDownActionOnLogoff String | "None" | "Deallocate"
    Action to be taken after a logoff during the ramp down period.
    rampDownMinutesToWaitOnDisconnect Number
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp down period.
    rampDownMinutesToWaitOnLogoff Number
    The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp down period.
    rampDownStartTime Property Map
    Starting time for ramp down period.
    rampDownStartVMOnConnect String | "Enable" | "Disable"
    The desired configuration of Start VM On Connect for the hostpool during the ramp down phase.
    rampUpActionOnDisconnect String | "None" | "Deallocate"
    Action to be taken after a user disconnect during the ramp up period.
    rampUpActionOnLogoff String | "None" | "Deallocate"
    Action to be taken after a logoff during the ramp up period.
    rampUpAutoStartHosts String | "None" | "WithAssignedUser" | "All"
    The desired startup behavior during the ramp up period for personal vms in the hostpool.
    rampUpMinutesToWaitOnDisconnect Number
    The time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp up period.
    rampUpMinutesToWaitOnLogoff Number
    The time in minutes to wait before performing the desired session handling action when a user logs off during the ramp up period.
    rampUpStartTime Property Map
    Starting time for ramp up period.
    rampUpStartVMOnConnect String | "Enable" | "Disable"
    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.
    scalingPlanScheduleName String
    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.AzureNative.DesktopVirtualization.Outputs.SystemDataResponse
    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 SystemDataResponse
    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 SystemDataResponse
    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 SystemDataResponse
    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 SystemDataResponse
    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
    DayOfWeekMonday
    Monday
    DayOfWeekTuesday
    Tuesday
    DayOfWeekWednesday
    Wednesday
    DayOfWeekThursday
    Thursday
    DayOfWeekFriday
    Friday
    DayOfWeekSaturday
    Saturday
    DayOfWeekSunday
    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
    SessionHandlingOperationNone
    None
    SessionHandlingOperationDeallocate
    Deallocate
    None
    None
    Deallocate
    Deallocate
    None
    None
    Deallocate
    Deallocate
    NONE
    None
    DEALLOCATE
    Deallocate
    "None"
    None
    "Deallocate"
    Deallocate

    SetStartVMOnConnect, SetStartVMOnConnectArgs

    Enable
    Enable
    Disable
    Disable
    SetStartVMOnConnectEnable
    Enable
    SetStartVMOnConnectDisable
    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.
    WithAssignedUser
    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.
    StartupBehaviorNone
    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.
    StartupBehaviorWithAssignedUser
    WithAssignedUserSession hosts with an assigned user will be started during Ramp Up
    StartupBehaviorAll
    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.
    WithAssignedUser
    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.
    WithAssignedUser
    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.
    "WithAssignedUser"
    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.
    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.

    Time, TimeArgs

    Hour int
    The hour.
    Minute int
    The minute.
    Hour int
    The hour.
    Minute int
    The minute.
    hour Integer
    The hour.
    minute Integer
    The minute.
    hour number
    The hour.
    minute number
    The minute.
    hour int
    The hour.
    minute int
    The minute.
    hour Number
    The hour.
    minute Number
    The minute.

    TimeResponse, TimeResponseArgs

    Hour int
    The hour.
    Minute int
    The minute.
    Hour int
    The hour.
    Minute int
    The minute.
    hour Integer
    The hour.
    minute Integer
    The minute.
    hour number
    The hour.
    minute number
    The minute.
    hour int
    The hour.
    minute int
    The minute.
    hour Number
    The hour.
    minute Number
    The minute.

    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
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi