Skip to main content

jobs

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

Overview

Namejobs
TypeResource
Idazure.workload_orchestration.jobs

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.
correlationIdstringCorrelation ID for tracking.
eTagstringIf eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
endTimestring (date-time)End time of the job (ISO8601).
errorDetailsobjectError Details if any failure is there.
jobParameterobjectParameters for the job.
jobTypestringThe type of job. Required. Known values are: "deploy", "staging", and "externalValidation". (deploy, staging, externalValidation)
provisioningStatestringProvisioning state of the resource. Known values are: "Succeeded", "Failed", "Canceled", "Initialized", "InProgress", and "Deleting". (Succeeded, Failed, Canceled, Initialized, InProgress, Deleting)
startTimestring (date-time)Start time of the job (ISO8601).
statusstringStatus of the job. Required. Known values are: "NotStarted", "InProgress", "Succeeded", and "Failed". (NotStarted, InProgress, Succeeded, Failed)
stepsarraySteps and substatuses for the job.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
triggeredBystringThe OID or identity that triggered the job.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_uri, job_nameGet a Job resource.
list_by_targetselectresource_uriList Jobs by parent resource.

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_namestringThe name of the Job. Required.
resource_uristringThe fully qualified Azure Resource manager identifier of the resource. Required.

SELECT examples

Get a Job resource.

SELECT
id,
name,
correlationId,
eTag,
endTime,
errorDetails,
jobParameter,
jobType,
provisioningState,
startTime,
status,
steps,
systemData,
triggeredBy,
type
FROM azure.workload_orchestration.jobs
WHERE resource_uri = '{{ resource_uri }}' -- required
AND job_name = '{{ job_name }}' -- required
;