Skip to main content

scaling_plan_personal_schedules

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

Overview

Namescaling_plan_personal_schedules
TypeResource
Idazure.desktop_virtualization.scaling_plan_personal_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.
offPeakActionOnDisconnectstringAction to be taken after a user disconnect during the off-peak period. Known values are: "None", "Deallocate", and "Hibernate".
offPeakActionOnLogoffstringAction to be taken after a logoff during the off-peak period. Known values are: "None", "Deallocate", and "Hibernate".
offPeakMinutesToWaitOnDisconnectintegerThe time in minutes to wait before performing the desired session handling action when a user disconnects during the off-peak period.
offPeakMinutesToWaitOnLogoffintegerThe time in minutes to wait before performing the desired session handling action when a user logs off during the off-peak period.
offPeakStartTimeobjectStarting time for off-peak period.
offPeakStartVMOnConnectstringThe desired configuration of Start VM On Connect for the hostpool during the off-peak phase. Known values are: "Enable" and "Disable".
peakActionOnDisconnectstringAction to be taken after a user disconnect during the peak period. Known values are: "None", "Deallocate", and "Hibernate".
peakActionOnLogoffstringAction to be taken after a logoff during the peak period. Known values are: "None", "Deallocate", and "Hibernate".
peakMinutesToWaitOnDisconnectintegerThe time in minutes to wait before performing the desired session handling action when a user disconnects during the peak period.
peakMinutesToWaitOnLogoffintegerThe time in minutes to wait before performing the desired session handling action when a user logs off during the peak period.
peakStartTimeobjectStarting time for peak period.
peakStartVMOnConnectstringThe desired configuration of Start VM On Connect for the hostpool during the peak phase. Known values are: "Enable" and "Disable".
rampDownActionOnDisconnectstringAction to be taken after a user disconnect during the ramp down period. Known values are: "None", "Deallocate", and "Hibernate".
rampDownActionOnLogoffstringAction to be taken after a logoff during the ramp down period. Known values are: "None", "Deallocate", and "Hibernate".
rampDownMinutesToWaitOnDisconnectintegerThe time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp down period.
rampDownMinutesToWaitOnLogoffintegerThe time in minutes to wait before performing the desired session handling action when a user logs off during the ramp down period.
rampDownStartTimeobjectStarting time for ramp down period.
rampDownStartVMOnConnectstringThe desired configuration of Start VM On Connect for the hostpool during the ramp down phase. Known values are: "Enable" and "Disable".
rampUpActionOnDisconnectstringAction to be taken after a user disconnect during the ramp up period. Known values are: "None", "Deallocate", and "Hibernate".
rampUpActionOnLogoffstringAction to be taken after a logoff during the ramp up period. Known values are: "None", "Deallocate", and "Hibernate".
rampUpAutoStartHostsstringThe desired startup behavior during the ramp up period for personal vms in the hostpool. Known values are: "None", "WithAssignedUser", and "All".
rampUpMinutesToWaitOnDisconnectintegerThe time in minutes to wait before performing the desired session handling action when a user disconnects during the ramp up period.
rampUpMinutesToWaitOnLogoffintegerThe time in minutes to wait before performing the desired session handling action when a user logs off during the ramp up period.
rampUpStartTimeobjectStarting time for ramp up period.
rampUpStartVMOnConnectstringThe 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. Known values are: "Enable" and "Disable".
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 ScalingPlanPersonalSchedule.
listselectresource_group_name, scaling_plan_name, subscription_idpageSize, isDescending, initialSkipList ScalingPlanPersonalSchedules.
createinsertresource_group_name, scaling_plan_name, scaling_plan_schedule_name, subscription_idCreate or update a ScalingPlanPersonalSchedule.
updateupdateresource_group_name, scaling_plan_name, scaling_plan_schedule_name, subscription_idUpdate a ScalingPlanPersonalSchedule.
deletedeleteresource_group_name, scaling_plan_name, scaling_plan_schedule_name, subscription_idRemove a ScalingPlanPersonalSchedule.

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 ScalingPlanPersonalSchedule.

SELECT
id,
name,
daysOfWeek,
offPeakActionOnDisconnect,
offPeakActionOnLogoff,
offPeakMinutesToWaitOnDisconnect,
offPeakMinutesToWaitOnLogoff,
offPeakStartTime,
offPeakStartVMOnConnect,
peakActionOnDisconnect,
peakActionOnLogoff,
peakMinutesToWaitOnDisconnect,
peakMinutesToWaitOnLogoff,
peakStartTime,
peakStartVMOnConnect,
rampDownActionOnDisconnect,
rampDownActionOnLogoff,
rampDownMinutesToWaitOnDisconnect,
rampDownMinutesToWaitOnLogoff,
rampDownStartTime,
rampDownStartVMOnConnect,
rampUpActionOnDisconnect,
rampUpActionOnLogoff,
rampUpAutoStartHosts,
rampUpMinutesToWaitOnDisconnect,
rampUpMinutesToWaitOnLogoff,
rampUpStartTime,
rampUpStartVMOnConnect,
systemData,
type
FROM azure.desktop_virtualization.scaling_plan_personal_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 ScalingPlanPersonalSchedule.

INSERT INTO azure.desktop_virtualization.scaling_plan_personal_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 ScalingPlanPersonalSchedule.

UPDATE azure.desktop_virtualization.scaling_plan_personal_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 ScalingPlanPersonalSchedule.

DELETE FROM azure.desktop_virtualization.scaling_plan_personal_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
;