Skip to main content

job_schedules

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

Overview

Namejob_schedules
TypeResource
Idazure.automation.job_schedules

Fields

NameDatatypeDescription
idtextGets the id of the resource.
nametextGets the name of the variable.
automationAccountNametextfield from the properties object
jobScheduleIdtextfield from the properties object
job_schedule_idtextfield from the properties object
parameterstextfield from the properties object
resourceGroupNametextfield from the properties object
run_ontextfield from the properties object
runbooktextfield from the properties object
scheduletextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTautomationAccountName, jobScheduleId, resourceGroupName, subscriptionIdRetrieve the job schedule identified by job schedule name.
list_by_automation_accountSELECTautomationAccountName, resourceGroupName, subscriptionIdRetrieve a list of job schedules.
createINSERTautomationAccountName, jobScheduleId, resourceGroupName, subscriptionId, data__propertiesCreate a job schedule.
deleteDELETEautomationAccountName, jobScheduleId, resourceGroupName, subscriptionIdDelete the job schedule identified by job schedule name.

SELECT examples

Retrieve a list of job schedules.

SELECT
id,
name,
automationAccountName,
jobScheduleId,
job_schedule_id,
parameters,
resourceGroupName,
run_on,
runbook,
schedule,
subscriptionId,
type
FROM azure.automation.vw_job_schedules
WHERE automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.automation.job_schedules (
automationAccountName,
jobScheduleId,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ automationAccountName }}',
'{{ jobScheduleId }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified job_schedules resource.

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