Host pool error (dscextension failure)

New Contributor



I've kicked of a WVD deployment as per the docs, (with all the pre-reqs)... during the Hostpool deployment ... the deployment abors during the following stage:

VM Creation - success

VM Join (AADomain Services) - success

DSC Extension - failure with the error below:-


{'code':'DeploymentFailed','message':'At least one resource deployment operation failed. Please list deployment operations for details. Please see for usage details.','details':[{'code':'Conflict','message':'{\\r\\n \\'status\\': \\'Failed\\',\\r\\n \\'error\\': {\\r\\n \\'code\\': \\'ResourceDeploymentFailure\\',\\r\\n \\'message\\': \\'The resource operation completed with terminal provisioning state 'Failed'.\\',\\r\\n \\'details\\': [\\r\\n {\\r\\n \\'code\\': \\'VMExtensionProvisioningError\\',\\r\\n \\'message\\': \\'VM has reported a failure when processing extension 'dscextension'. Error message: \\\\\\'DSC Configuration 'FirstSessionHost' completed with error(s). Following are the first few: PowerShell DSC resource MSFT_ScriptResource failed to execute Set-TargetResource functionality with error message: One or more errors occurred. The SendConfigurationApply function did not succeed. LCM failed to start desired state configuration manually.\\\\\\'.\\'\\r\\n }\\r\\n ]\\r\\n }\\r\\n}'}]}






2 Replies

@raheel780 : Quick question, does your Windows Virtual Desktop tenant admin require multi-factor to authenticate? If so, then this would be one reason the script failed, and then I would advise to follow these steps to create a service principal and a role assignment.

Try this blogpost: Please let me know if that works for you, otherwise let me know where you struggle.