Skip to main content

dsc_nodes

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

Overview

Namedsc_nodes
TypeResource
Idazure.automation.dsc_nodes

Fields

NameDatatypeDescription
account_idtextfield from the properties object
automationAccountNametextfield from the properties object
etagtextfield from the properties object
extension_handlertextfield from the properties object
iptextfield from the properties object
last_seentextfield from the properties object
nodeIdtextfield from the properties object
node_configurationtextfield from the properties object
node_idtextfield from the properties object
registration_timetextfield from the properties object
resourceGroupNametextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
total_counttextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTautomationAccountName, nodeId, resourceGroupName, subscriptionIdRetrieve the dsc node identified by node id.
list_by_automation_accountSELECTautomationAccountName, resourceGroupName, subscriptionIdRetrieve a list of dsc nodes.
deleteDELETEautomationAccountName, nodeId, resourceGroupName, subscriptionIdDelete the dsc node identified by node id.
updateUPDATEautomationAccountName, nodeId, resourceGroupName, subscriptionIdUpdate the dsc node.

SELECT examples

Retrieve a list of dsc nodes.

SELECT
account_id,
automationAccountName,
etag,
extension_handler,
ip,
last_seen,
nodeId,
node_configuration,
node_id,
registration_time,
resourceGroupName,
status,
subscriptionId,
total_count
FROM azure.automation.vw_dsc_nodes
WHERE automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

UPDATE example

Updates a dsc_nodes resource.

/*+ update */
UPDATE azure.automation.dsc_nodes
SET
nodeId = '{{ nodeId }}',
properties = '{{ properties }}'
WHERE
automationAccountName = '{{ automationAccountName }}'
AND nodeId = '{{ nodeId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified dsc_nodes resource.

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