test_jobs
Creates, updates, deletes, gets or lists a test_jobs
resource.
Overview
Name | test_jobs |
Type | Resource |
Id | azure.automation.test_jobs |
Fields
Name | Datatype | Description |
---|---|---|
creationTime | string | Gets or sets the creation time of the test job. |
endTime | string | Gets or sets the end time of the test job. |
exception | string | Gets or sets the exception of the test job. |
lastModifiedTime | string | Gets or sets the last modified time of the test job. |
lastStatusModifiedTime | string | Gets or sets the last status modified time of the test job. |
logActivityTrace | integer | The activity-level tracing options of the runbook. |
parameters | object | Gets or sets the parameters of the test job. |
runOn | string | Gets or sets the runOn which specifies the group name where the job is to be executed. |
startTime | string | Gets or sets the start time of the test job. |
status | string | Gets or sets the status of the test job. |
statusDetails | string | Gets or sets the status details of the test job. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | automationAccountName, resourceGroupName, runbookName, subscriptionId | Retrieve the test job for the specified runbook. |
create | INSERT | automationAccountName, resourceGroupName, runbookName, subscriptionId | Create a test job of the runbook. |
resume | EXEC | automationAccountName, resourceGroupName, runbookName, subscriptionId | Resume the test job. |
stop | EXEC | automationAccountName, resourceGroupName, runbookName, subscriptionId | Stop the test job. |
suspend | EXEC | automationAccountName, resourceGroupName, runbookName, subscriptionId | Suspend 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.automation.test_jobs (
automationAccountName,
resourceGroupName,
runbookName,
subscriptionId,
parameters,
runOn
)
SELECT
'{{ automationAccountName }}',
'{{ resourceGroupName }}',
'{{ runbookName }}',
'{{ subscriptionId }}',
'{{ parameters }}',
'{{ runOn }}'
;
- name: your_resource_model_name
props:
- name: parameters
value: object
- name: runOn
value: string