Skip to content

Commit 403ff53

Browse files
authored
Merge pull request #78693 from mgreenegit/patch-7
make sure node configuration exists when onboarding from extension
2 parents 840ad9a + 0725c93 commit 403ff53

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

articles/automation/troubleshoot/desired-state-configuration.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,25 @@ You've used a credential in a configuration but didn’t provide proper **Config
140140

141141
* Make sure to pass in the proper **ConfigurationData** to set **PSDscAllowPlainTextPassword** to true for each node configuration that is mentioned in the configuration. For more information, see [assets in Azure Automation DSC](../automation-dsc-compile.md#assets).
142142

143+
### <a name="failure-processing-extension"></a>Scenario: Onboarding from dsc extension, "Failure processing extension" error
144+
145+
#### Issue
146+
147+
When onboarding using DSC extension, a failure occurs containing the error:
148+
149+
```error
150+
VM has reported a failure when processing extension 'Microsoft.Powershell.DSC'. Error message: \"DSC COnfiguration 'RegistrationMetaConfigV2' completed with error(s). Following are the first few: Registration of the Dsc Agent with the server <url> failed. The underlying error is: The attempt to register Dsc Agent with Agent Id <ID> with the server <url> return unexpected response code BadRequest. .\".
151+
```
152+
153+
#### Cause
154+
155+
This error typically occurs when the node is assigned a node configuration name that does not exist in the service.
156+
157+
#### Resolution
158+
159+
* Make sure that you're assigning the node with a node configuration name that exactly matches the name in the service.
160+
* You can choose to not include the node configuration name, which will result in onboarding the node but not assigning a node configuration
161+
143162
## Next steps
144163

145164
If you didn't see your problem or are unable to solve your issue, visit one of the following channels for more support:

articles/virtual-machines/extensions/dsc-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ This information can be seen in the
7979
(Get-AzAutomationRegistrationInfo -ResourceGroupName <resourcegroupname> -AutomationAccountName <accountname>).PrimaryKey
8080
```
8181

82-
For the Node Configuration name, make sure you are using the name of the *Node Configuration* and not the Configuration.
82+
For the Node Configuration name, make sure the node configuration exists in Azure State Configuration. If it does not, the extension deployment will return a failure. Also make sure you are using the name of the *Node Configuration* and not the Configuration.
8383
A Configuration is defined in a script that is used
8484
[to compile the Node Configuration (MOF file)](https://docs.microsoft.com/azure/automation/automation-dsc-compile).
8585
The name will always be the Configuration followed by a period `.` and either `localhost` or a specific computer name.

0 commit comments

Comments
 (0)