Host pool error (dscextension failure)

%3CLINGO-SUB%20id%3D%22lingo-sub-386926%22%20slang%3D%22en-US%22%3EHost%20pool%20error%20(dscextension%20failure)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-386926%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20kicked%20of%20a%20WVD%20deployment%20as%20per%20the%20docs%2C%20(with%20all%20the%20pre-reqs)...%20during%20the%20Hostpool%20deployment%20...%20the%20deployment%20abors%20during%20the%20following%20stage%3A%3C%2FP%3E%3CP%3EVM%20Creation%20-%20success%3C%2FP%3E%3CP%3EVM%20Join%20(AADomain%20Services)%20-%20success%3C%2FP%3E%3CP%3EDSC%20Extension%20-%20failure%20with%20the%20error%20below%3A-%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%7B'code'%3A'DeploymentFailed'%2C'message'%3A'At%20least%20one%20resource%20deployment%20operation%20failed.%20Please%20list%20deployment%20operations%20for%20details.%20Please%20see%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Farm-debug%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2Farm-debug%3C%2FA%3E%20for%20usage%20details.'%2C'details'%3A%5B%7B'code'%3A'Conflict'%2C'message'%3A'%7B%5C%5Cr%5C%5Cn%20%5C%5C'status%5C%5C'%3A%20%5C%5C'Failed%5C%5C'%2C%5C%5Cr%5C%5Cn%20%5C%5C'error%5C%5C'%3A%20%7B%5C%5Cr%5C%5Cn%20%5C%5C'code%5C%5C'%3A%20%5C%5C'ResourceDeploymentFailure%5C%5C'%2C%5C%5Cr%5C%5Cn%20%5C%5C'message%5C%5C'%3A%20%5C%5C'The%20resource%20operation%20completed%20with%20terminal%20provisioning%20state%20'Failed'.%5C%5C'%2C%5C%5Cr%5C%5Cn%20%5C%5C'details%5C%5C'%3A%20%5B%5C%5Cr%5C%5Cn%20%7B%5C%5Cr%5C%5Cn%20%5C%5C'code%5C%5C'%3A%20%5C%5C'VMExtensionProvisioningError%5C%5C'%2C%5C%5Cr%5C%5Cn%20%5C%5C'message%5C%5C'%3A%20%5C%5C'VM%20has%20reported%20a%20failure%20when%20processing%20extension%20'dscextension'.%20Error%20message%3A%20%5C%5C%5C%5C%5C%5C'DSC%20Configuration%20'FirstSessionHost'%20completed%20with%20error(s).%20Following%20are%20the%20first%20few%3A%20PowerShell%20DSC%20resource%20MSFT_ScriptResource%20failed%20to%20execute%20Set-TargetResource%20functionality%20with%20error%20message%3A%20One%20or%20more%20errors%20occurred.%20The%20SendConfigurationApply%20function%20did%20not%20succeed.%20LCM%20failed%20to%20start%20desired%20state%20configuration%20manually.%5C%5C%5C%5C%5C%5C'.%5C%5C'%5C%5Cr%5C%5Cn%20%7D%5C%5Cr%5C%5Cn%20%5D%5C%5Cr%5C%5Cn%20%7D%5C%5Cr%5C%5Cn%7D'%7D%5D%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-394512%22%20slang%3D%22en-US%22%3ERe%3A%20Host%20pool%20error%20(dscextension%20failure)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-394512%22%20slang%3D%22en-US%22%3ETry%20this%20blogpost%3A%20%3CA%20href%3D%22https%3A%2F%2Ferjenrijnders.nl%2F2019%2F04%2F04%2Fhow-to-deploy-windows-virtual-desktop-in-azure%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ferjenrijnders.nl%2F2019%2F04%2F04%2Fhow-to-deploy-windows-virtual-desktop-in-azure%2F%3C%2FA%3E%20Please%20let%20me%20know%20if%20that%20works%20for%20you%2C%20otherwise%20let%20me%20know%20where%20you%20struggle.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-391084%22%20slang%3D%22en-US%22%3ERe%3A%20Host%20pool%20error%20(dscextension%20failure)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391084%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F307622%22%20target%3D%22_blank%22%3E%40raheel780%3C%2FA%3E%26nbsp%3B%3A%20Quick%20question%2C%20does%20your%20Windows%20Virtual%20Desktop%20tenant%20admin%20require%20multi-factor%20to%20authenticate%3F%20If%20so%2C%20then%20this%20would%20be%20one%20reason%20the%20script%20failed%2C%20and%20then%20I%20would%20advise%20to%20follow%20these%20steps%20to%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fcreate-service-principal-role-powershell%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ecreate%20a%20service%20principal%20and%20a%20role%20assignment%3C%2FA%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Senior Member

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
Highlighted

@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.

Highlighted
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.