Update a DSC node

 

Updated: May 26, 2016

The Update a DSC node task updates the configuraiton for a DSC node.

The related Windows PowerShell cmdlet for this task is Set-AzureRmAutomationDscNode.

To specify the request, replace {subscription-id} with your subscription ID, {resource-group-name} with the name of your resource group, {automation-account-name} with the name of the automation account, and {dsc-node-id} with the id of the DSC node.

Method

Request URI

PATCH

https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Automation/automationAccounts/{automation-account-name}/nodeConfigurations/{dsc-node-configuration-id}?api-version=2015-10-31

URI parameter

Description

api-version

Required. Valid values include 2015-10-31

The following code shows an example of the request body.

{
  "id": "e5c074c5-d5ee-11e5-baee-000d3a32d1b4",
  "nodeConfiguration": {
    "name": "LitwareConfigCanada"
  }
}

Element name

Required

Type

Description

NodeConfigurationName

Yes

String

Specifies the name of the node configuration to which this task maps the node.

The following code shows an example of the response body.

{
   "lastSeen":"2016-02-19T03:08:09.5515187+00:00",
   "registrationTime":"2016-02-18T03:23:03.1221988+00:00",
   "name":"LITWAREVIDEOBAK",
   "ip":"10.13.0.5;127.0.0.1;fe80::3171:b119:8339:a9c5%11;::2000:0:0:0;::1;::2000:0:0:0",
   "id":"e5c074c5-d5ee-11e5-baee-000d3a32d1b4",
   "status":null,
   "nodeConfiguration":{
      "name":"LitwareConfigCanada"
   }
}

201

For information about common error codes, see Service Management Status and Error Codes

Show: