Skip to main content

dsc_compilation_jobs

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

Overview

Namedsc_compilation_jobs
TypeResource
Idazure.automation.dsc_compilation_jobs

Fields

NameDatatypeDescription
automationAccountNametextfield from the properties object
compilationJobNametextfield from the properties object
configurationtextfield from the properties object
creation_timetextfield from the properties object
end_timetextfield from the properties object
exceptiontextfield from the properties object
job_idtextfield from the properties object
last_modified_timetextfield from the properties object
last_status_modified_timetextfield from the properties object
parameterstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
run_ontextfield from the properties object
start_timetextfield from the properties object
started_bytextfield from the properties object
statustextfield from the properties object
status_detailstextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTautomationAccountName, compilationJobName, resourceGroupName, subscriptionIdRetrieve the Dsc configuration compilation job identified by job id.
list_by_automation_accountSELECTautomationAccountName, resourceGroupName, subscriptionIdRetrieve a list of dsc compilation jobs.
createINSERTautomationAccountName, compilationJobName, resourceGroupName, subscriptionId, data__propertiesCreates the Dsc compilation job of the configuration.

SELECT examples

Retrieve a list of dsc compilation jobs.

SELECT
automationAccountName,
compilationJobName,
configuration,
creation_time,
end_time,
exception,
job_id,
last_modified_time,
last_status_modified_time,
parameters,
provisioning_state,
resourceGroupName,
run_on,
start_time,
started_by,
status,
status_details,
subscriptionId
FROM azure.automation.vw_dsc_compilation_jobs
WHERE automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.automation.dsc_compilation_jobs (
automationAccountName,
compilationJobName,
resourceGroupName,
subscriptionId,
data__properties,
properties,
name,
location,
tags
)
SELECT
'{{ automationAccountName }}',
'{{ compilationJobName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ name }}',
'{{ location }}',
'{{ tags }}'
;