Skip to main content

schedules

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

Overview

Nameschedules
TypeResource
Idazure.lab_services.schedules

Fields

NameDatatypeDescription
labNametextfield from the properties object
notestextfield from the properties object
provisioning_statetextfield from the properties object
recurrence_patterntextfield from the properties object
resourceGroupNametextfield from the properties object
resource_operation_errortextfield from the properties object
scheduleNametextfield from the properties object
start_attextfield from the properties object
stop_attextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
time_zone_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTlabName, resourceGroupName, scheduleName, subscriptionIdReturns the properties of a lab Schedule.
list_by_labSELECTlabName, resourceGroupName, subscriptionIdReturns a list of all schedules for a lab.
create_or_updateINSERTlabName, resourceGroupName, scheduleName, subscriptionId, data__propertiesOperation to create or update a lab schedule.
deleteDELETElabName, resourceGroupName, scheduleName, subscriptionIdOperation to delete a schedule resource.
updateUPDATElabName, resourceGroupName, scheduleName, subscriptionIdOperation to update a lab schedule.

SELECT examples

Returns a list of all schedules for a lab.

SELECT
labName,
notes,
provisioning_state,
recurrence_pattern,
resourceGroupName,
resource_operation_error,
scheduleName,
start_at,
stop_at,
subscriptionId,
system_data,
time_zone_id
FROM azure.lab_services.vw_schedules
WHERE labName = '{{ labName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new schedules resource.

/*+ create */
INSERT INTO azure.lab_services.schedules (
labName,
resourceGroupName,
scheduleName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ labName }}',
'{{ resourceGroupName }}',
'{{ scheduleName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

UPDATE example

Updates a schedules resource.

/*+ update */
UPDATE azure.lab_services.schedules
SET
properties = '{{ properties }}'
WHERE
labName = '{{ labName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND scheduleName = '{{ scheduleName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified schedules resource.

/*+ delete */
DELETE FROM azure.lab_services.schedules
WHERE labName = '{{ labName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND scheduleName = '{{ scheduleName }}'
AND subscriptionId = '{{ subscriptionId }}';