Skip to main content

dsc_configurations

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

Overview

Namedsc_configurations
TypeResource
Idazure.automation.dsc_configurations

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
automationAccountNametextfield from the properties object
configurationNametextfield from the properties object
creation_timetextfield from the properties object
etagtextGets or sets the etag of the resource.
job_counttextfield from the properties object
last_modified_timetextfield from the properties object
locationtextThe geo-location where the resource lives
log_verbosetextfield from the properties object
node_configuration_counttextfield from the properties object
parameterstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
sourcetextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTautomationAccountName, configurationName, resourceGroupName, subscriptionIdRetrieve the configuration identified by configuration name.
list_by_automation_accountSELECTautomationAccountName, resourceGroupName, subscriptionIdRetrieve a list of configurations.
create_or_updateINSERTautomationAccountName, configurationName, resourceGroupName, subscriptionId, data__propertiesCreate the configuration identified by configuration name.
deleteDELETEautomationAccountName, configurationName, resourceGroupName, subscriptionIdDelete the dsc configuration identified by configuration name.
updateUPDATEautomationAccountName, configurationName, resourceGroupName, subscriptionIdCreate the configuration identified by configuration name.

SELECT examples

Retrieve a list of configurations.

SELECT
description,
automationAccountName,
configurationName,
creation_time,
etag,
job_count,
last_modified_time,
location,
log_verbose,
node_configuration_count,
parameters,
provisioning_state,
resourceGroupName,
source,
state,
subscriptionId,
tags
FROM azure.automation.vw_dsc_configurations
WHERE automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a dsc_configurations resource.

/*+ update */
UPDATE azure.automation.dsc_configurations
SET
properties = '{{ properties }}',
name = '{{ name }}',
tags = '{{ tags }}'
WHERE
automationAccountName = '{{ automationAccountName }}'
AND configurationName = '{{ configurationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified dsc_configurations resource.

/*+ delete */
DELETE FROM azure.automation.dsc_configurations
WHERE automationAccountName = '{{ automationAccountName }}'
AND configurationName = '{{ configurationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';