Skip to main content

job_runs

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

Overview

Namejob_runs
TypeResource
Idazure.storage_mover.job_runs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
agentNamestringName of the Agent assigned to this run.
agentResourceIdstringFully qualified resource id of the Agent assigned to this run.
bytesExcludedintegerBytes of data that will not be transferred, as they are excluded by user configuration.
bytesFailedintegerBytes of data that were attempted to transfer and failed.
bytesNoTransferNeededintegerBytes of data that will not be transferred, as they are already found on target (e.g. mirror mode).
bytesScannedintegerBytes of data scanned so far in source.
bytesTransferredintegerBytes of data successfully transferred to target.
bytesUnsupportedintegerBytes of data that will not be transferred, as they are unsupported on target.
errorobjectError details.
executionEndTimestring (date-time)End time of the run. Null if Agent has not reported that the job has ended.
executionStartTimestring (date-time)Start time of the run. Null if no Agent reported that the job has started.
itemsExcludedintegerNumber of items that will not be transferred, as they are excluded by user configuration.
itemsFailedintegerNumber of items that were attempted to transfer and failed.
itemsNoTransferNeededintegerNumber of items that will not be transferred, as they are already found on target (e.g. mirror mode).
itemsScannedintegerNumber of items scanned so far in source.
itemsTransferredintegerNumber of items successfully transferred to target.
itemsUnsupportedintegerNumber of items that will not be transferred, as they are unsupported on target.
jobDefinitionPropertiesobjectCopy of parent Job Definition's properties at time of Job Run creation.
lastStatusUpdatestring (date-time)The last updated time of the Job Run.
provisioningStatestringThe provisioning state of this resource. Known values are: "Succeeded", "Canceled", "Failed", and "Deleting". (Succeeded, Canceled, Failed, Deleting)
scanStatusstringThe status of Agent's scanning of source. Known values are: "NotStarted", "Scanning", and "Completed". (NotStarted, Scanning, Completed)
scheduledExecutionTimestring (date-time)Scheduled execution time. Null if Trigger type is manual.
sourceNamestringName of source Endpoint resource. This resource may no longer exist.
sourcePropertiesobjectCopy of source Endpoint resource's properties at time of Job Run creation.
sourceResourceIdstringFully qualified resource id of source Endpoint. This id may no longer exist.
statusstringThe state of the job execution. Known values are: "Queued", "Started", "Running", "CancelRequested", "Canceling", "Canceled", "Failed", "Succeeded", and "PausedByBandwidthManagement". (Queued, Started, Running, CancelRequested, Canceling, Canceled, Failed, Succeeded, PausedByBandwidthManagement)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
targetNamestringName of target Endpoint resource. This resource may no longer exist.
targetPropertiesobjectCopy of Endpoint resource's properties at time of Job Run creation.
targetResourceIdstringFully qualified resource id of of Endpoint. This id may no longer exist.
triggerTypestringTrigger type for the job run. Default is manual. Known values are: "Manual" and "Scheduled". (Manual, Scheduled)
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
warningsarrayWarning details.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, storage_mover_name, project_name, job_definition_name, job_run_name, subscription_idGets a Job Run resource.
listselectresource_group_name, storage_mover_name, project_name, job_definition_name, subscription_idLists all Job Runs in a Job Definition.

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
job_definition_namestringThe name of the Job Definition resource. Required.
job_run_namestringThe name of the Job Run resource. Required.
project_namestringThe name of the Project resource. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
storage_mover_namestringThe name of the Storage Mover resource. Required.
subscription_idstring

SELECT examples

Gets a Job Run resource.

SELECT
id,
name,
agentName,
agentResourceId,
bytesExcluded,
bytesFailed,
bytesNoTransferNeeded,
bytesScanned,
bytesTransferred,
bytesUnsupported,
error,
executionEndTime,
executionStartTime,
itemsExcluded,
itemsFailed,
itemsNoTransferNeeded,
itemsScanned,
itemsTransferred,
itemsUnsupported,
jobDefinitionProperties,
lastStatusUpdate,
provisioningState,
scanStatus,
scheduledExecutionTime,
sourceName,
sourceProperties,
sourceResourceId,
status,
systemData,
targetName,
targetProperties,
targetResourceId,
triggerType,
type,
warnings
FROM azure.storage_mover.job_runs
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND storage_mover_name = '{{ storage_mover_name }}' -- required
AND project_name = '{{ project_name }}' -- required
AND job_definition_name = '{{ job_definition_name }}' -- required
AND job_run_name = '{{ job_run_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;