Skip to main content

schedules

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

Overview

Nameschedules
TypeResource
Idazure.automation.schedules

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
advanced_scheduletextfield from the properties object
automationAccountNametextfield from the properties object
creation_timetextfield from the properties object
expiry_timetextfield from the properties object
expiry_time_offset_minutestextfield from the properties object
frequencytextfield from the properties object
intervaltextfield from the properties object
is_enabledtextfield from the properties object
last_modified_timetextfield from the properties object
next_runtextfield from the properties object
next_run_offset_minutestextfield from the properties object
resourceGroupNametextfield from the properties object
scheduleNametextfield from the properties object
start_timetextfield from the properties object
start_time_offset_minutestextfield from the properties object
subscriptionIdtextfield from the properties object
time_zonetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTautomationAccountName, resourceGroupName, scheduleName, subscriptionIdRetrieve the schedule identified by schedule name.
list_by_automation_accountSELECTautomationAccountName, resourceGroupName, subscriptionIdRetrieve a list of schedules.
create_or_updateINSERTautomationAccountName, resourceGroupName, scheduleName, subscriptionId, data__name, data__propertiesCreate a schedule.
deleteDELETEautomationAccountName, resourceGroupName, scheduleName, subscriptionIdDelete the schedule identified by schedule name.
updateUPDATEautomationAccountName, resourceGroupName, scheduleName, subscriptionIdUpdate the schedule identified by schedule name.

SELECT examples

Retrieve a list of schedules.

SELECT
description,
advanced_schedule,
automationAccountName,
creation_time,
expiry_time,
expiry_time_offset_minutes,
frequency,
interval,
is_enabled,
last_modified_time,
next_run,
next_run_offset_minutes,
resourceGroupName,
scheduleName,
start_time,
start_time_offset_minutes,
subscriptionId,
time_zone
FROM azure.automation.vw_schedules
WHERE automationAccountName = '{{ automationAccountName }}'
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.automation.schedules (
automationAccountName,
resourceGroupName,
scheduleName,
subscriptionId,
data__name,
data__properties,
name,
properties
)
SELECT
'{{ automationAccountName }}',
'{{ resourceGroupName }}',
'{{ scheduleName }}',
'{{ subscriptionId }}',
'{{ data__name }}',
'{{ data__properties }}',
'{{ name }}',
'{{ properties }}'
;

UPDATE example

Updates a schedules resource.

/*+ update */
UPDATE azure.automation.schedules
SET
name = '{{ name }}',
properties = '{{ properties }}'
WHERE
automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND scheduleName = '{{ scheduleName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified schedules resource.

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