Skip to main content

dsc_node

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

Overview

Namedsc_node
TypeResource
Idazure.automation.dsc_node

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
accountIdstringGets or sets the account id of the node.
etagstringGets or sets the etag of the resource.
extensionHandlerarrayGets or sets the list of extensionHandler properties for a Node.
ipstringGets or sets the ip of the node.
lastSeenstring (date-time)Gets or sets the last seen time of the node.
nodeConfigurationobjectGets or sets the configuration of the node.
nodeIdstringGets or sets the node id.
registrationTimestring (date-time)Gets or sets the registration time of the node.
statusstringGets or sets the status of the node.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
totalCountintegerGets the total number of records matching filter criteria.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, automation_account_name, node_id, subscription_idRetrieve the dsc node identified by node id.
list_by_automation_accountselectresource_group_name, automation_account_name, subscription_id$filter, $skip, $top, $inlinecountRetrieve a list of dsc nodes.
updateupdateresource_group_name, automation_account_name, node_id, subscription_idUpdate the dsc node.
deletedeleteresource_group_name, automation_account_name, node_id, subscription_idDelete the dsc node identified by node id.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
automation_account_namestringThe name of the automation account. Required.
node_idstringThe node id. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$filterstringThe filter to apply on the operation. Default value is None.
$inlinecountstringReturn total rows. Default value is None.
$skipintegerThe number of rows to skip. Default value is None.
$topintegerThe number of rows to take. Default value is None.

SELECT examples

Retrieve the dsc node identified by node id.

SELECT
id,
name,
accountId,
etag,
extensionHandler,
ip,
lastSeen,
nodeConfiguration,
nodeId,
registrationTime,
status,
systemData,
totalCount,
type
FROM azure.automation.dsc_node
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND automation_account_name = '{{ automation_account_name }}' -- required
AND node_id = '{{ node_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

UPDATE examples

Update the dsc node.

UPDATE azure.automation.dsc_node
SET
nodeId = '{{ nodeId }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND automation_account_name = '{{ automation_account_name }}' --required
AND node_id = '{{ node_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete the dsc node identified by node id.

DELETE FROM azure.automation.dsc_node
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND automation_account_name = '{{ automation_account_name }}' --required
AND node_id = '{{ node_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;