Skip to main content

source_control_sync_job

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

Overview

Namesource_control_sync_job
TypeResource
Idazure.automation.source_control_sync_job

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe id of the job.
creationTimestring (date-time)The creation time of the job.
endTimestring (date-time)The end time of the job.
exceptionstringThe exceptions that occurred while running the sync job.
provisioningStatestringThe provisioning state of the job. Known values are: "Completed", "Failed", and "Running". (Completed, Failed, Running)
sourceControlSyncJobIdstringThe source control sync job id.
startTimestring (date-time)The start time of the job.
syncTypestringThe sync type. Known values are: "PartialSync" and "FullSync". (PartialSync, FullSync)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, automation_account_name, source_control_name, source_control_sync_job_id, subscription_idRetrieve the source control sync job identified by job id.
list_by_automation_accountselectresource_group_name, automation_account_name, source_control_name, subscription_id$filterRetrieve a list of source control sync jobs.
createinsertresource_group_name, automation_account_name, source_control_name, source_control_sync_job_id, subscription_id, propertiesCreates the sync job for a source control.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
automation_account_namestringThe name of the automation account. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
source_control_namestringThe name of source control. Required.
source_control_sync_job_idstringThe source control sync job id. Required.
subscription_idstring
$filterstringThe filter to apply on the operation. Default value is None.

SELECT examples

Retrieve the source control sync job identified by job id.

SELECT
id,
creationTime,
endTime,
exception,
provisioningState,
sourceControlSyncJobId,
startTime,
syncType
FROM azure.automation.source_control_sync_job
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND automation_account_name = '{{ automation_account_name }}' -- required
AND source_control_name = '{{ source_control_name }}' -- required
AND source_control_sync_job_id = '{{ source_control_sync_job_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates the sync job for a source control.

INSERT INTO azure.automation.source_control_sync_job (
properties,
resource_group_name,
automation_account_name,
source_control_name,
source_control_sync_job_id,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ automation_account_name }}',
'{{ source_control_name }}',
'{{ source_control_sync_job_id }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
type
;