Represents a ScalingPlanPersonalSchedule definition.
Uses Azure REST API version 2024-04-03. In version 2.x of the Azure Native provider, it used API version 2024-11-01-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-08-preview, 2024-08-08-preview, 2024-11-01-preview, 2025-03-01-preview, 2025-04-01-preview, 2025-08-01-preview, 2025-09-01-preview, 2025-10-10, 2025-11-01-preview, 2026-01-01-preview, 2026-03-01-preview, 2026-04-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native desktopvirtualization [ApiVersion]. See the version guide for details.
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 =
{
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/v3"
"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
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_desktopvirtualization_scaling_plan_personal_schedule" "scalingPlanPersonalSchedule" {
lifecycle {
create_before_destroy = true
}
days_of_week = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"]
off_peak_action_on_disconnect = "None"
off_peak_action_on_logoff = "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 = "Enable"
peak_action_on_disconnect = "None"
peak_action_on_logoff = "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 = "Enable"
ramp_down_action_on_disconnect = "None"
ramp_down_action_on_logoff = "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 = "Enable"
ramp_up_action_on_disconnect = "None"
ramp_up_action_on_logoff = "None"
ramp_up_auto_start_hosts = "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 = "Enable"
resource_group_name = "resourceGroup1"
scaling_plan_name = "scalingPlan1"
scaling_plan_schedule_name = "scalingPlanScheduleWeekdays1"
}
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.ArrayList;
import java.util.Arrays;
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
@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,
off_peak_action_on_logoff: Optional[Union[str, SessionHandlingOperation]] = None,
off_peak_minutes_to_wait_on_logoff: Optional[int] = 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_minutes_to_wait_on_logoff: Optional[int] = None,
off_peak_minutes_to_wait_on_disconnect: Optional[int] = None,
days_of_week: Optional[Sequence[Union[str, DayOfWeek]]] = None,
ramp_down_action_on_disconnect: Optional[Union[str, SessionHandlingOperation]] = 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_up_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,
ramp_down_minutes_to_wait_on_disconnect: Optional[int] = None,
off_peak_action_on_disconnect: Optional[Union[str, SessionHandlingOperation]] = None,
scaling_plan_schedule_name: Optional[str] = None)
type: azure-native:desktopvirtualization:ScalingPlanPersonalSchedule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure-native_desktopvirtualization_scaling_plan_personal_schedule" "name" {
# resource properties
}
Parameters
- 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",
OffPeakActionOnLogoff = "string",
OffPeakMinutesToWaitOnLogoff = 0,
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",
RampDownMinutesToWaitOnLogoff = 0,
OffPeakMinutesToWaitOnDisconnect = 0,
DaysOfWeek =
{
"string",
},
RampDownActionOnDisconnect = "string",
RampDownStartTime = new AzureNative.DesktopVirtualization.Inputs.TimeArgs
{
Hour = 0,
Minute = 0,
},
RampDownStartVMOnConnect = "string",
RampUpActionOnDisconnect = "string",
RampUpActionOnLogoff = "string",
RampUpAutoStartHosts = "string",
RampUpMinutesToWaitOnDisconnect = 0,
RampUpMinutesToWaitOnLogoff = 0,
RampUpStartTime = new AzureNative.DesktopVirtualization.Inputs.TimeArgs
{
Hour = 0,
Minute = 0,
},
RampUpStartVMOnConnect = "string",
RampDownMinutesToWaitOnDisconnect = 0,
OffPeakActionOnDisconnect = "string",
ScalingPlanScheduleName = "string",
});
example, err := desktopvirtualization.NewScalingPlanPersonalSchedule(ctx, "scalingPlanPersonalScheduleResource", &desktopvirtualization.ScalingPlanPersonalScheduleArgs{
ResourceGroupName: pulumi.String("string"),
ScalingPlanName: pulumi.String("string"),
RampDownActionOnLogoff: pulumi.String("string"),
OffPeakActionOnLogoff: pulumi.String("string"),
OffPeakMinutesToWaitOnLogoff: pulumi.Int(0),
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"),
RampDownMinutesToWaitOnLogoff: pulumi.Int(0),
OffPeakMinutesToWaitOnDisconnect: pulumi.Int(0),
DaysOfWeek: pulumi.StringArray{
pulumi.String("string"),
},
RampDownActionOnDisconnect: pulumi.String("string"),
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),
RampUpMinutesToWaitOnLogoff: pulumi.Int(0),
RampUpStartTime: &desktopvirtualization.TimeArgs{
Hour: pulumi.Int(0),
Minute: pulumi.Int(0),
},
RampUpStartVMOnConnect: pulumi.String("string"),
RampDownMinutesToWaitOnDisconnect: pulumi.Int(0),
OffPeakActionOnDisconnect: pulumi.String("string"),
ScalingPlanScheduleName: pulumi.String("string"),
})
resource "azure-native_desktopvirtualization_scaling_plan_personal_schedule" "scalingPlanPersonalScheduleResource" {
lifecycle {
create_before_destroy = true
}
resource_group_name = "string"
scaling_plan_name = "string"
ramp_down_action_on_logoff = "string"
off_peak_action_on_logoff = "string"
off_peak_minutes_to_wait_on_logoff = 0
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_minutes_to_wait_on_logoff = 0
off_peak_minutes_to_wait_on_disconnect = 0
days_of_week = ["string"]
ramp_down_action_on_disconnect = "string"
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_up_minutes_to_wait_on_logoff = 0
ramp_up_start_time = {
hour = 0
minute = 0
}
ramp_up_start_vm_on_connect = "string"
ramp_down_minutes_to_wait_on_disconnect = 0
off_peak_action_on_disconnect = "string"
scaling_plan_schedule_name = "string"
}
var scalingPlanPersonalScheduleResource = new ScalingPlanPersonalSchedule("scalingPlanPersonalScheduleResource", ScalingPlanPersonalScheduleArgs.builder()
.resourceGroupName("string")
.scalingPlanName("string")
.rampDownActionOnLogoff("string")
.offPeakActionOnLogoff("string")
.offPeakMinutesToWaitOnLogoff(0)
.offPeakStartTime(com.pulumi.azurenative.desktopvirtualization.inputs.TimeArgs.builder()
.hour(0)
.minute(0)
.build())
.offPeakStartVMOnConnect("string")
.peakActionOnDisconnect("string")
.peakActionOnLogoff("string")
.peakMinutesToWaitOnDisconnect(0)
.peakMinutesToWaitOnLogoff(0)
.peakStartTime(com.pulumi.azurenative.desktopvirtualization.inputs.TimeArgs.builder()
.hour(0)
.minute(0)
.build())
.peakStartVMOnConnect("string")
.rampDownMinutesToWaitOnLogoff(0)
.offPeakMinutesToWaitOnDisconnect(0)
.daysOfWeek("string")
.rampDownActionOnDisconnect("string")
.rampDownStartTime(com.pulumi.azurenative.desktopvirtualization.inputs.TimeArgs.builder()
.hour(0)
.minute(0)
.build())
.rampDownStartVMOnConnect("string")
.rampUpActionOnDisconnect("string")
.rampUpActionOnLogoff("string")
.rampUpAutoStartHosts("string")
.rampUpMinutesToWaitOnDisconnect(0)
.rampUpMinutesToWaitOnLogoff(0)
.rampUpStartTime(com.pulumi.azurenative.desktopvirtualization.inputs.TimeArgs.builder()
.hour(0)
.minute(0)
.build())
.rampUpStartVMOnConnect("string")
.rampDownMinutesToWaitOnDisconnect(0)
.offPeakActionOnDisconnect("string")
.scalingPlanScheduleName("string")
.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",
off_peak_action_on_logoff="string",
off_peak_minutes_to_wait_on_logoff=0,
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_minutes_to_wait_on_logoff=0,
off_peak_minutes_to_wait_on_disconnect=0,
days_of_week=["string"],
ramp_down_action_on_disconnect="string",
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_up_minutes_to_wait_on_logoff=0,
ramp_up_start_time={
"hour": 0,
"minute": 0,
},
ramp_up_start_vm_on_connect="string",
ramp_down_minutes_to_wait_on_disconnect=0,
off_peak_action_on_disconnect="string",
scaling_plan_schedule_name="string")
const scalingPlanPersonalScheduleResource = new azure_native.desktopvirtualization.ScalingPlanPersonalSchedule("scalingPlanPersonalScheduleResource", {
resourceGroupName: "string",
scalingPlanName: "string",
rampDownActionOnLogoff: "string",
offPeakActionOnLogoff: "string",
offPeakMinutesToWaitOnLogoff: 0,
offPeakStartTime: {
hour: 0,
minute: 0,
},
offPeakStartVMOnConnect: "string",
peakActionOnDisconnect: "string",
peakActionOnLogoff: "string",
peakMinutesToWaitOnDisconnect: 0,
peakMinutesToWaitOnLogoff: 0,
peakStartTime: {
hour: 0,
minute: 0,
},
peakStartVMOnConnect: "string",
rampDownMinutesToWaitOnLogoff: 0,
offPeakMinutesToWaitOnDisconnect: 0,
daysOfWeek: ["string"],
rampDownActionOnDisconnect: "string",
rampDownStartTime: {
hour: 0,
minute: 0,
},
rampDownStartVMOnConnect: "string",
rampUpActionOnDisconnect: "string",
rampUpActionOnLogoff: "string",
rampUpAutoStartHosts: "string",
rampUpMinutesToWaitOnDisconnect: 0,
rampUpMinutesToWaitOnLogoff: 0,
rampUpStartTime: {
hour: 0,
minute: 0,
},
rampUpStartVMOnConnect: "string",
rampDownMinutesToWaitOnDisconnect: 0,
offPeakActionOnDisconnect: "string",
scalingPlanScheduleName: "string",
});
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.
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:
Outputs
All input properties are implicitly available as output properties. Additionally, the ScalingPlanPersonalSchedule resource produces the following output properties:
- AzureApiVersion
string
- The Azure API version of the resource.
- Id
string
- The provider-assigned unique ID for this managed resource.
- Name
string
- The name of the resource
- SystemData
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_api_version
string
- The Azure API version of the resource.
- id
string
- The provider-assigned unique ID for this managed resource.
- name
string
- The name of the resource
- system_data
object
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azureApiVersion
String
- The Azure API version of the resource.
- id
String
- The provider-assigned unique ID for this managed resource.
- name
String
- The name of the resource
- systemData
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azureApiVersion
string
- The Azure API version of the resource.
- id
string
- The provider-assigned unique ID for this managed resource.
- name
string
- The name of the resource
- systemData
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_api_version
str
- The Azure API version of the resource.
- id
str
- The provider-assigned unique ID for this managed resource.
- name
str
- The name of the resource
- system_data
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azureApiVersion
String
- The Azure API version of the resource.
- id
String
- The provider-assigned unique ID for this managed resource.
- name
String
- The name of the resource
- systemData
Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
DayOfWeek, DayOfWeekArgs
| Name | Value |
|---|
| Monday | Monday |
| Tuesday | Tuesday |
| Wednesday | Wednesday |
| Thursday | Thursday |
| Friday | Friday |
| Saturday | Saturday |
| Sunday | Sunday |
| Name | Value |
|---|
| DayOfWeekMonday | Monday |
| DayOfWeekTuesday | Tuesday |
| DayOfWeekWednesday | Wednesday |
| DayOfWeekThursday | Thursday |
| DayOfWeekFriday | Friday |
| DayOfWeekSaturday | Saturday |
| DayOfWeekSunday | Sunday |
| Value |
|---|
Monday |
Tuesday |
Wednesday |
Thursday |
Friday |
Saturday |
Sunday |
| Name | Value |
|---|
| Monday | Monday |
| Tuesday | Tuesday |
| Wednesday | Wednesday |
| Thursday | Thursday |
| Friday | Friday |
| Saturday | Saturday |
| Sunday | Sunday |
| Name | Value |
|---|
| Monday | Monday |
| Tuesday | Tuesday |
| Wednesday | Wednesday |
| Thursday | Thursday |
| Friday | Friday |
| Saturday | Saturday |
| Sunday | Sunday |
| Name | Value |
|---|
| MONDAY | Monday |
| TUESDAY | Tuesday |
| WEDNESDAY | Wednesday |
| THURSDAY | Thursday |
| FRIDAY | Friday |
| SATURDAY | Saturday |
| SUNDAY | Sunday |
| Value |
|---|
Monday |
Tuesday |
Wednesday |
Thursday |
Friday |
Saturday |
Sunday |
SessionHandlingOperation, SessionHandlingOperationArgs
| Name | Value |
|---|
| None | None |
| Deallocate | Deallocate |
| Name | Value |
|---|
| SessionHandlingOperationNone | None |
| SessionHandlingOperationDeallocate | Deallocate |
| Name | Value |
|---|
| None | None |
| Deallocate | Deallocate |
| Name | Value |
|---|
| None | None |
| Deallocate | Deallocate |
| Name | Value |
|---|
| NONE | None |
| DEALLOCATE | Deallocate |
SetStartVMOnConnect, SetStartVMOnConnectArgs
| Name | Value |
|---|
| Enable | Enable |
| Disable | Disable |
| Name | Value |
|---|
| SetStartVMOnConnectEnable | Enable |
| SetStartVMOnConnectDisable | Disable |
| Name | Value |
|---|
| Enable | Enable |
| Disable | Disable |
| Name | Value |
|---|
| Enable | Enable |
| Disable | Disable |
| Name | Value |
|---|
| ENABLE | Enable |
| DISABLE | Disable |
StartupBehavior, StartupBehaviorArgs
| Name | Value | Description |
|---|
| None | None | Session 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 | WithAssignedUser | Session hosts with an assigned user will be started during Ramp Up |
| All | All | All personal session hosts in the hostpool will be started during ramp up. |
| Name | Value | Description |
|---|
| StartupBehaviorNone | None | Session 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 | WithAssignedUser | Session hosts with an assigned user will be started during Ramp Up |
| StartupBehaviorAll | All | All personal session hosts in the hostpool will be started during ramp up. |
| Value | Description |
|---|
None | Session 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 | Session hosts with an assigned user will be started during Ramp Up |
All | All personal session hosts in the hostpool will be started during ramp up. |
| Name | Value | Description |
|---|
| None | None | Session 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 | WithAssignedUser | Session hosts with an assigned user will be started during Ramp Up |
| All | All | All personal session hosts in the hostpool will be started during ramp up. |
| Name | Value | Description |
|---|
| None | None | Session 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 | WithAssignedUser | Session hosts with an assigned user will be started during Ramp Up |
| All | All | All personal session hosts in the hostpool will be started during ramp up. |
| Name | Value | Description |
|---|
| NONE | None | Session 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 | WithAssignedUser | Session hosts with an assigned user will be started during Ramp Up |
| ALL | All | All personal session hosts in the hostpool will be started during ramp up. |
| Value | Description |
|---|
None | Session 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 | Session hosts with an assigned user will be started during Ramp Up |
All | All personal session hosts in the hostpool will be started during ramp up. |
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of 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.
- 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.
Time, TimeArgs
The time for a scaling action to occur.TimeResponse, TimeResponseArgs
The time for a scaling action to occur.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