Skip to main content

source_control_sync_jobs

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

Overview

Namesource_control_sync_jobs
TypeResource
Idazure.automation.source_control_sync_jobs

Fields

NameDatatypeDescription
idtextThe id of the job.
automationAccountNametextfield from the properties object
creation_timetextfield from the properties object
end_timetextfield from the properties object
exceptiontextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
sourceControlNametextfield from the properties object
sourceControlSyncJobIdtextfield from the properties object
source_control_sync_job_idtextfield from the properties object
start_timetextfield from the properties object
subscriptionIdtextfield from the properties object
sync_typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTautomationAccountName, resourceGroupName, sourceControlName, sourceControlSyncJobId, subscriptionIdRetrieve the source control sync job identified by job id.
list_by_automation_accountSELECTautomationAccountName, resourceGroupName, sourceControlName, subscriptionIdRetrieve a list of source control sync jobs.
createINSERTautomationAccountName, resourceGroupName, sourceControlName, sourceControlSyncJobId, subscriptionId, data__propertiesCreates the sync job for a source control.

SELECT examples

Retrieve a list of source control sync jobs.

SELECT
id,
automationAccountName,
creation_time,
end_time,
exception,
provisioning_state,
resourceGroupName,
sourceControlName,
sourceControlSyncJobId,
source_control_sync_job_id,
start_time,
subscriptionId,
sync_type
FROM azure.automation.vw_source_control_sync_jobs
WHERE automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND sourceControlName = '{{ sourceControlName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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