Skip to main content

schedules

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

Overview

Nameschedules
TypeResource
Idazure.dev_center.schedules

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
frequencytextfield from the properties object
poolNametextfield from the properties object
projectNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
scheduleNametextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
timetextfield from the properties object
time_zonetextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTpoolName, projectName, resourceGroupName, scheduleName, subscriptionIdGets a schedule resource.
list_by_poolSELECTpoolName, projectName, resourceGroupName, subscriptionIdLists schedules for a pool
create_or_updateINSERTpoolName, projectName, resourceGroupName, scheduleName, subscriptionIdCreates or updates a Schedule.
deleteDELETEpoolName, projectName, resourceGroupName, scheduleName, subscriptionIdDeletes a Scheduled.
updateUPDATEpoolName, projectName, resourceGroupName, scheduleName, subscriptionIdPartially updates a Scheduled.

SELECT examples

Lists schedules for a pool

SELECT
id,
name,
frequency,
poolName,
projectName,
provisioning_state,
resourceGroupName,
scheduleName,
state,
subscriptionId,
system_data,
time,
time_zone,
type
FROM azure.dev_center.vw_schedules
WHERE poolName = '{{ poolName }}'
AND projectName = '{{ projectName }}'
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.dev_center.schedules (
poolName,
projectName,
resourceGroupName,
scheduleName,
subscriptionId,
properties
)
SELECT
'{{ poolName }}',
'{{ projectName }}',
'{{ resourceGroupName }}',
'{{ scheduleName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a schedules resource.

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

DELETE example

Deletes the specified schedules resource.

/*+ delete */
DELETE FROM azure.dev_center.schedules
WHERE poolName = '{{ poolName }}'
AND projectName = '{{ projectName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND scheduleName = '{{ scheduleName }}'
AND subscriptionId = '{{ subscriptionId }}';