Skip to main content

test_jobs

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

Overview

Nametest_jobs
TypeResource
Idazure.automation.test_jobs

Fields

NameDatatypeDescription
creationTimestringGets or sets the creation time of the test job.
endTimestringGets or sets the end time of the test job.
exceptionstringGets or sets the exception of the test job.
lastModifiedTimestringGets or sets the last modified time of the test job.
lastStatusModifiedTimestringGets or sets the last status modified time of the test job.
logActivityTraceintegerThe activity-level tracing options of the runbook.
parametersobjectGets or sets the parameters of the test job.
runOnstringGets or sets the runOn which specifies the group name where the job is to be executed.
startTimestringGets or sets the start time of the test job.
statusstringGets or sets the status of the test job.
statusDetailsstringGets or sets the status details of the test job.

Methods

NameAccessible byRequired ParamsDescription
getSELECTautomationAccountName, resourceGroupName, runbookName, subscriptionIdRetrieve the test job for the specified runbook.
createINSERTautomationAccountName, resourceGroupName, runbookName, subscriptionIdCreate a test job of the runbook.
resumeEXECautomationAccountName, resourceGroupName, runbookName, subscriptionIdResume the test job.
stopEXECautomationAccountName, resourceGroupName, runbookName, subscriptionIdStop the test job.
suspendEXECautomationAccountName, resourceGroupName, runbookName, subscriptionIdSuspend the test job.

SELECT examples

Retrieve the test job for the specified runbook.

SELECT
creationTime,
endTime,
exception,
lastModifiedTime,
lastStatusModifiedTime,
logActivityTrace,
parameters,
runOn,
startTime,
status,
statusDetails
FROM azure.automation.test_jobs
WHERE automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND runbookName = '{{ runbookName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.automation.test_jobs (
automationAccountName,
resourceGroupName,
runbookName,
subscriptionId,
parameters,
runOn
)
SELECT
'{{ automationAccountName }}',
'{{ resourceGroupName }}',
'{{ runbookName }}',
'{{ subscriptionId }}',
'{{ parameters }}',
'{{ runOn }}'
;