Skip to content

Commit 5fb4f0f

Browse files
vrdmrmcardosos
authored andcommitted
Correcting the NodeConfiguration Model and Example (#2870)
1 parent 93b98ca commit 5fb4f0f

File tree

3 files changed

+37
-14
lines changed

3 files changed

+37
-14
lines changed

specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,7 @@
14811481
},
14821482
"name": {
14831483
"type": "string",
1484-
"description": "Gets or sets the type of the parameter."
1484+
"description": "Name of the node configuration."
14851485
},
14861486
"configuration": {
14871487
"$ref": "#/definitions/DscConfigurationAssociationProperty",

specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNodeConfiguration.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
"in": "body",
169169
"required": true,
170170
"schema": {
171-
"$ref": "#/definitions/DscNodeConfigurationCreateOrUpdateParametersProperties"
171+
"$ref": "#/definitions/DscNodeConfigurationCreateOrUpdateParameters"
172172
},
173173
"description": "The create or update parameters for configuration."
174174
},
@@ -381,6 +381,26 @@
381381
},
382382
"description": "The dsc extensionHandler property associated with the node"
383383
},
384+
"DscNodeConfigurationCreateOrUpdateParameters": {
385+
"properties": {
386+
"properties": {
387+
"$ref": "#/definitions/DscNodeConfigurationCreateOrUpdateParametersProperties",
388+
"x-ms-client-flatten": true,
389+
"description": "Node configuration properties"
390+
},
391+
"name": {
392+
"type": "string",
393+
"description": "Name of the node configuration."
394+
},
395+
"tags": {
396+
"type": "object",
397+
"additionalProperties": {
398+
"type": "string"
399+
},
400+
"description": "Gets or sets the tags attached to the resource."
401+
}
402+
}
403+
},
384404
"DscNodeConfigurationCreateOrUpdateParametersProperties": {
385405
"properties": {
386406
"source": {

specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createOrUpdateDscNodeConfiguration.json

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,22 @@
77
"api-version": "2018-01-15",
88
"nodeConfigurationName": "configName.nodeConfigName",
99
"parameters": {
10-
"source": {
11-
"hash": {
12-
"algorithm": "sha256",
13-
"value": "6DE256A57F01BFA29B88696D5E77A383D6E61484C7686E8DB955FA10ACE9FFE5"
14-
},
15-
"type": "embeddedContent",
16-
"value": "\r\ninstance of MSFT_RoleResource as $MSFT_RoleResource1ref\r\n{\r\nResourceID = \"[WindowsFeature]IIS\";\r\n Ensure = \"Present\";\r\n SourceInfo = \"::3::32::WindowsFeature\";\r\n Name = \"Web-Server\";\r\n ModuleName = \"PsDesiredStateConfiguration\";\r\n\r\nModuleVersion = \"1.0\";\r\r\n ConfigurationName = \"configName\";\r\r\n};\r\ninstance of OMI_ConfigurationDocument\r\n\r\r\n {\r\n Version=\"2.0.0\";\r\n \r\r\n MinimumCompatibleVersion = \"1.0.0\";\r\n \r\r\n CompatibleVersionAdditionalProperties= {\"Omi_BaseResource:ConfigurationName\"};\r\n \r\r\n Author=\"weijiel\";\r\n \r\r\n GenerationDate=\"03/30/2017 13:40:25\";\r\n \r\r\n GenerationHost=\"TEST-BACKEND\";\r\n \r\r\n Name=\"configName\";\r\n\r\r\n };\r\n",
17-
"version": "1.0"
18-
},
19-
"incrementNodeConfigurationBuild": true,
2010
"name": "configName.nodeConfigName",
21-
"configuration": {
22-
"name": "configName"
11+
"properties": {
12+
"source": {
13+
"hash": {
14+
"algorithm": "sha256",
15+
"value": "6DE256A57F01BFA29B88696D5E77A383D6E61484C7686E8DB955FA10ACE9FFE5"
16+
},
17+
"type": "embeddedContent",
18+
"value": "\r\ninstance of MSFT_RoleResource as $MSFT_RoleResource1ref\r\n{\r\nResourceID = \"[WindowsFeature]IIS\";\r\n Ensure = \"Present\";\r\n SourceInfo = \"::3::32::WindowsFeature\";\r\n Name = \"Web-Server\";\r\n ModuleName = \"PsDesiredStateConfiguration\";\r\n\r\nModuleVersion = \"1.0\";\r\r\n ConfigurationName = \"configName\";\r\r\n};\r\ninstance of OMI_ConfigurationDocument\r\n\r\r\n {\r\n Version=\"2.0.0\";\r\n \r\r\n MinimumCompatibleVersion = \"1.0.0\";\r\n \r\r\n CompatibleVersionAdditionalProperties= {\"Omi_BaseResource:ConfigurationName\"};\r\n \r\r\n Author=\"weijiel\";\r\n \r\r\n GenerationDate=\"03/30/2017 13:40:25\";\r\n \r\r\n GenerationHost=\"TEST-BACKEND\";\r\n \r\r\n Name=\"configName\";\r\n\r\r\n };\r\n",
19+
"version": "1.0"
20+
},
21+
"incrementNodeConfigurationBuild": true,
22+
"name": "configName.nodeConfigName",
23+
"configuration": {
24+
"name": "configName"
25+
}
2326
}
2427
}
2528
},

0 commit comments

Comments
 (0)