Skip to main content

dsc_node_configurations

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

Overview

Namedsc_node_configurations
TypeResource
Idazure.automation.dsc_node_configurations

Fields

NameDatatypeDescription
automationAccountNametextfield from the properties object
configurationtextfield from the properties object
creation_timetextfield from the properties object
increment_node_configuration_buildtextfield from the properties object
last_modified_timetextfield from the properties object
nodeConfigurationNametextfield from the properties object
node_counttextfield from the properties object
resourceGroupNametextfield from the properties object
sourcetextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTautomationAccountName, nodeConfigurationName, resourceGroupName, subscriptionIdRetrieve the Dsc node configurations by node configuration.
list_by_automation_accountSELECTautomationAccountName, resourceGroupName, subscriptionIdRetrieve a list of dsc node configurations.
create_or_updateINSERTautomationAccountName, nodeConfigurationName, resourceGroupName, subscriptionIdCreate the node configuration identified by node configuration name.
deleteDELETEautomationAccountName, nodeConfigurationName, resourceGroupName, subscriptionIdDelete the Dsc node configurations by node configuration.

SELECT examples

Retrieve a list of dsc node configurations.

SELECT
automationAccountName,
configuration,
creation_time,
increment_node_configuration_build,
last_modified_time,
nodeConfigurationName,
node_count,
resourceGroupName,
source,
subscriptionId
FROM azure.automation.vw_dsc_node_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_node_configurations resource.

/*+ create */
INSERT INTO azure.automation.dsc_node_configurations (
automationAccountName,
nodeConfigurationName,
resourceGroupName,
subscriptionId,
properties,
name,
tags
)
SELECT
'{{ automationAccountName }}',
'{{ nodeConfigurationName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ name }}',
'{{ tags }}'
;

DELETE example

Deletes the specified dsc_node_configurations resource.

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