Skip to main content

scaling_plan_pooled_schedules

Creates, updates, deletes, gets or lists a scaling_plan_pooled_schedules resource.

Overview

Namescaling_plan_pooled_schedules
TypeResource
Idazure.desktop_virtualization.scaling_plan_pooled_schedules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
namestringThe name of the resource.
daysOfWeekarraySet of days of the week on which this schedule is active.
offPeakLoadBalancingAlgorithmstringLoad balancing algorithm for off-peak period. Known values are: "BreadthFirst" and "DepthFirst".
offPeakStartTimeobjectStarting time for off-peak period.
peakLoadBalancingAlgorithmstringLoad balancing algorithm for peak period. Known values are: "BreadthFirst" and "DepthFirst".
peakStartTimeobjectStarting time for peak period.
rampDownCapacityThresholdPctintegerCapacity threshold for ramp down period.
rampDownForceLogoffUsersbooleanShould users be logged off forcefully from hosts.
rampDownLoadBalancingAlgorithmstringLoad balancing algorithm for ramp down period. Known values are: "BreadthFirst" and "DepthFirst".
rampDownMinimumHostsPctintegerMinimum host percentage for ramp down period.
rampDownNotificationMessagestringNotification message for users during ramp down period.
rampDownStartTimeobjectStarting time for ramp down period.
rampDownStopHostsWhenstringSpecifies when to stop hosts during ramp down period. Known values are: "ZeroSessions" and "ZeroActiveSessions".
rampDownWaitTimeMinutesintegerNumber of minutes to wait to stop hosts during ramp down period.
rampUpCapacityThresholdPctintegerCapacity threshold for ramp up period.
rampUpLoadBalancingAlgorithmstringLoad balancing algorithm for ramp up period. Known values are: "BreadthFirst" and "DepthFirst".
rampUpMinimumHostsPctintegerMinimum host percentage for ramp up period.
rampUpStartTimeobjectStarting time for ramp up period.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, scaling_plan_name, scaling_plan_schedule_name, subscription_idGet a ScalingPlanPooledSchedule.
listselectresource_group_name, scaling_plan_name, subscription_idpageSize, isDescending, initialSkipList ScalingPlanPooledSchedules.
createinsertresource_group_name, scaling_plan_name, scaling_plan_schedule_name, subscription_idCreate or update a ScalingPlanPooledSchedule.
updateupdateresource_group_name, scaling_plan_name, scaling_plan_schedule_name, subscription_idUpdate a ScalingPlanPooledSchedule.
deletedeleteresource_group_name, scaling_plan_name, scaling_plan_schedule_name, subscription_idRemove a ScalingPlanPooledSchedule.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
scaling_plan_namestringThe name of the scaling plan. Required.
scaling_plan_schedule_namestringThe name of the ScalingPlanSchedule. Required.
subscription_idstring
initialSkipintegerInitial number of items to skip. Default value is None.
isDescendingbooleanIndicates whether the collection is descending. Default value is None.
pageSizeintegerNumber of items per page. Default value is None.

SELECT examples

Get a ScalingPlanPooledSchedule.

SELECT
id,
name,
daysOfWeek,
offPeakLoadBalancingAlgorithm,
offPeakStartTime,
peakLoadBalancingAlgorithm,
peakStartTime,
rampDownCapacityThresholdPct,
rampDownForceLogoffUsers,
rampDownLoadBalancingAlgorithm,
rampDownMinimumHostsPct,
rampDownNotificationMessage,
rampDownStartTime,
rampDownStopHostsWhen,
rampDownWaitTimeMinutes,
rampUpCapacityThresholdPct,
rampUpLoadBalancingAlgorithm,
rampUpMinimumHostsPct,
rampUpStartTime,
systemData,
type
FROM azure.desktop_virtualization.scaling_plan_pooled_schedules
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND scaling_plan_name = '{{ scaling_plan_name }}' -- required
AND scaling_plan_schedule_name = '{{ scaling_plan_schedule_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update a ScalingPlanPooledSchedule.

INSERT INTO azure.desktop_virtualization.scaling_plan_pooled_schedules (
properties,
resource_group_name,
scaling_plan_name,
scaling_plan_schedule_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ scaling_plan_name }}',
'{{ scaling_plan_schedule_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Update a ScalingPlanPooledSchedule.

UPDATE azure.desktop_virtualization.scaling_plan_pooled_schedules
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND scaling_plan_name = '{{ scaling_plan_name }}' --required
AND scaling_plan_schedule_name = '{{ scaling_plan_schedule_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Remove a ScalingPlanPooledSchedule.

DELETE FROM azure.desktop_virtualization.scaling_plan_pooled_schedules
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND scaling_plan_name = '{{ scaling_plan_name }}' --required
AND scaling_plan_schedule_name = '{{ scaling_plan_schedule_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;