Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

New-AzWvdScalingPlanPooledSchedule

Create a ScalingPlanPooledSchedule.

Syntax

CreateExpanded (Default)

New-AzWvdScalingPlanPooledSchedule
 -ResourceGroupName <String>
 -ScalingPlanName <String>
 -ScalingPlanScheduleName <String>
 [-SubscriptionId <String>]
 [-DaysOfWeek <String[]>]
 [-OffPeakLoadBalancingAlgorithm <String>]
 [-OffPeakStartTimeHour <Int32>]
 [-OffPeakStartTimeMinute <Int32>]
 [-PeakLoadBalancingAlgorithm <String>]
 [-PeakStartTimeHour <Int32>]
 [-PeakStartTimeMinute <Int32>]
 [-RampDownCapacityThresholdPct <Int32>]
 [-RampDownForceLogoffUser]
 [-RampDownLoadBalancingAlgorithm <String>]
 [-RampDownMinimumHostsPct <Int32>]
 [-RampDownNotificationMessage <String>]
 [-RampDownStartTimeHour <Int32>]
 [-RampDownStartTimeMinute <Int32>]
 [-RampDownStopHostsWhen <String>]
 [-RampDownWaitTimeMinute <Int32>]
 [-RampUpCapacityThresholdPct <Int32>]
 [-RampUpLoadBalancingAlgorithm <String>]
 [-RampUpMinimumHostsPct <Int32>]
 [-RampUpStartTimeHour <Int32>]
 [-RampUpStartTimeMinute <Int32>]
 [-DefaultProfile <PSObject>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

CreateViaJsonFilePath

New-AzWvdScalingPlanPooledSchedule
 -ResourceGroupName <String>
 -ScalingPlanName <String>
 -ScalingPlanScheduleName <String>
 -JsonFilePath <String>
 [-SubscriptionId <String>]
 [-DefaultProfile <PSObject>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

CreateViaJsonString

New-AzWvdScalingPlanPooledSchedule
 -ResourceGroupName <String>
 -ScalingPlanName <String>
 -ScalingPlanScheduleName <String>
 -JsonString <String>
 [-SubscriptionId <String>]
 [-DefaultProfile <PSObject>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

Description

Create a ScalingPlanPooledSchedule.

Examples

Example 1: Create a Scaling Plan Pooled Schedule

New-AzWvdScalingPlanPooledSchedule -ResourceGroupName rgName `
 -ScalingPlanName spName `
 -ScalingPlanScheduleName scheduleName `
 -DaysOfWeek @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday') `
 -RampUpStartTimeHour 6 `
 -RampUpStartTimeMinute 30 `
 -RampUpLoadBalancingAlgorithm BreadthFirst `
 -RampUpMinimumHostsPct 20 `
 -RampUpCapacityThresholdPct 20 `
 -PeakStartTimeHour 8 `
 -PeakStartTimeMinute 30 `
 -PeakLoadBalancingAlgorithm DepthFirst `
 -RampDownStartTimeHour 16 `
 -RampDownStartTimeMinute 0 `
 -RampDownLoadBalancingAlgorithm BreadthFirst `
 -RampDownMinimumHostsPct 20 `
 -RampDownCapacityThresholdPct 20 `
 -RampDownForceLogoffUser:$true `
 -RampDownWaitTimeMinute 30 `
 -RampDownNotificationMessage "Log out now, please." `
 -RampDownStopHostsWhen ZeroSessions `
 -OffPeakStartTimeHour 22 `
 -OffPeakStartTimeMinute 45 `
 -OffPeakLoadBalancingAlgorithm DepthFirst
Name
----
scalingplan1/PooledSchedule1

Add a Scaling Plan Pooled Schedule to an existing Scaling Plan.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

-DaysOfWeek

Set of days of the week on which this schedule is active.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-DefaultProfile

The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

Parameter properties

Type:PSObject
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzureRMContext, AzureCredential

Parameter sets

-JsonFilePath

Path of Json file supplied to the Create operation

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-JsonString

Json string supplied to the Create operation

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-OffPeakLoadBalancingAlgorithm

Load balancing algorithm for off-peak period.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-OffPeakStartTimeHour

The hour.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-OffPeakStartTimeMinute

The minute.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-PeakLoadBalancingAlgorithm

Load balancing algorithm for peak period.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-PeakStartTimeHour

The hour.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-PeakStartTimeMinute

The minute.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-RampDownCapacityThresholdPct

Capacity threshold for ramp down period.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-RampDownForceLogoffUser

Should users be logged off forcefully from hosts.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-RampDownLoadBalancingAlgorithm

Load balancing algorithm for ramp down period.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-RampDownMinimumHostsPct

Minimum host percentage for ramp down period.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-RampDownNotificationMessage

Notification message for users during ramp down period.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-RampDownStartTimeHour

The hour.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-RampDownStartTimeMinute

The minute.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-RampDownStopHostsWhen

Specifies when to stop hosts during ramp down period.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-RampDownWaitTimeMinute

Number of minutes to wait to stop hosts during ramp down period.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-RampUpCapacityThresholdPct

Capacity threshold for ramp up period.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-RampUpLoadBalancingAlgorithm

Load balancing algorithm for ramp up period.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-RampUpMinimumHostsPct

Minimum host percentage for ramp up period.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-RampUpStartTimeHour

The hour.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-RampUpStartTimeMinute

The minute.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ResourceGroupName

The name of the resource group. The name is case insensitive.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ScalingPlanName

The name of the scaling plan.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ScalingPlanScheduleName

The name of the ScalingPlanSchedule

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-SubscriptionId

The ID of the target subscription. The value must be an UUID.

Parameter properties

Type:String
Default value:(Get-AzContext).Subscription.Id
Supports wildcards:False
DontShow:False

Parameter sets

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

IScalingPlanPooledSchedule


Feedback

Was this page helpful?