Host pool error (dscextension failure)

Copper Contributor

Hi,

 

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 https://aka.ms/arm-debug 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: https://erjenrijnders.nl/2019/04/04/how-to-deploy-windows-virtual-desktop-in-azure/ Please let me know if that works for you, otherwise let me know where you struggle.