Skip to main content

schedules

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

Overview

Nameschedules
TypeResource
Idazure.developer_devcenter.schedules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringDisplay name for the Schedule. Required.
frequencystringThe frequency of this scheduled task. Required. "Daily" (Daily)
timestringThe target time to trigger the action. The format is HH:MM. Required.
timeZonestringThe IANA timezone id at which the schedule should execute. Required.
typestringSupported type this scheduled task represents. Required. "StopDevBox" (StopDevBox)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_scheduleselectproject_name, pool_name, schedule_name, endpointGets a schedule.
list_schedulesselectproject_name, pool_name, endpointLists all schedules within a pool that are configured by your project administrator.

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
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
pool_namestringThe name of a pool of Dev Boxes. Required.
project_namestringThe DevCenter Project upon which to execute operations. Required.
schedule_namestringDisplay name for the Schedule. Required.

SELECT examples

Gets a schedule.

SELECT
name,
frequency,
time,
timeZone,
type
FROM azure.developer_devcenter.schedules
WHERE project_name = '{{ project_name }}' -- required
AND pool_name = '{{ pool_name }}' -- required
AND schedule_name = '{{ schedule_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;