Home

Virtual desktop hostpool deployment failed. User is not authorized to query the management service

%3CLINGO-SUB%20id%3D%22lingo-sub-468211%22%20slang%3D%22en-US%22%3EVirtual%20desktop%20hostpool%20deployment%20failed.%20User%20is%20not%20authorized%20to%20query%20the%20management%20service%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-468211%22%20slang%3D%22en-US%22%3E%3CP%3EDeployment%20is%20failing%20on%20the%20final%20step.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22fxc-gc-cell%20fxc-gc-columncell_6_1%22%3E%3CDIV%20class%3D%22msportalfx-text-ellipsis%22%3Edscextension%26nbsp%3B%3CSPAN%3EMicrosoft.Compute%2FvirtualMachines%2Fextensions%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%3EConflict%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%7B%22code%22%3A%22DeploymentFailed%22%2C%22message%22%3A%22At%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%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2Farm-debug%3C%2FA%3E%20for%20usage%20details.%22%2C%22details%22%3A%5B%7B%22code%22%3A%22Conflict%22%2C%22message%22%3A%22%7B%5Cr%5Cn%20%5C%22status%5C%22%3A%20%5C%22Failed%5C%22%2C%5Cr%5Cn%20%5C%22error%5C%22%3A%20%7B%5Cr%5Cn%20%5C%22code%5C%22%3A%20%5C%22ResourceDeploymentFailure%5C%22%2C%5Cr%5Cn%20%5C%22message%5C%22%3A%20%5C%22%3CSTRONG%3EThe%20resource%20operation%20completed%20with%20terminal%20provisioning%20state%20'Failed'%3C%2FSTRONG%3E.%5C%22%2C%5Cr%5Cn%20%5C%22details%5C%22%3A%20%5B%5Cr%5Cn%20%7B%5Cr%5Cn%20%5C%22code%5C%22%3A%20%5C%22VMExtensionProvisioningError%5C%22%2C%5Cr%5Cn%20%5C%22message%5C%22%3A%20%5C%22VM%20has%20reported%20a%20failure%20when%20processing%20extension%20'dscextension'.%20Error%20message%3A%20%5C%5C%5C%22DSC%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%20%3CSTRONG%3EUser%20is%20not%20authorized%20to%20query%20the%20management%20service%3C%2FSTRONG%3E.%5C%5CnActivityId%3A%20f51a6c00-4459-4606-8d96-85a9816ea2f7%5C%5CnPowershell%20commands%20to%20diagnose%20the%20failure%3A%5C%5CnGet-RdsDiagnosticActivities%20-ActivityId%20f51a6c00-4459-4606-8d96-85a9816ea2f7%5C%5Cn%20The%20SendConfigurationApply%20function%20did%20not%20succeed.%5C%5C%5C%22.%5C%22%5Cr%5Cn%20%7D%5Cr%5Cn%20%5D%5Cr%5Cn%20%7D%5Cr%5Cn%7D%22%7D%5D%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-572008%22%20slang%3D%22en-US%22%3ERe%3A%20Virtual%20desktop%20hostpool%20deployment%20failed.%20User%20is%20not%20authorized%20to%20query%20the%20management%20servi%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-572008%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F322773%22%20target%3D%22_blank%22%3E%40Jorge-F%3C%2FA%3E%26nbsp%3B%3A%20We've%20seen%20numerous%20reportings%20of%20this%2C%20so%20we've%20updated%20the%20guides%20as%20of%20the%20beginning%20of%20May.%20The%20recommended%20steps%20have%20you%20create%20a%20service%20principal%2C%20test%20the%20login%2C%20then%20go%20through%20the%20Azure%20Marketplace%20flow.%20Can%20you%20try%20with%20the%20updated%20steps%3F%20You%20can%20find%20these%20at%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fwvdpreview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2Fwvdpreview%3C%2FA%3E%20.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Jorge-F
Occasional Visitor

Deployment is failing on the final step.  

dscextension Microsoft.Compute/virtualMachines/extensions Conflict

 

{"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: User is not authorized to query the management service.\\nActivityId: f51a6c00-4459-4606-8d96-85a9816ea2f7\\nPowershell commands to diagnose the failure:\\nGet-RdsDiagnosticActivities -ActivityId f51a6c00-4459-4606-8d96-85a9816ea2f7\\n The SendConfigurationApply function did not succeed.\\\".\"\r\n }\r\n ]\r\n }\r\n}"}]}

 

Thank you,

1 Reply
Highlighted

@Jorge-F : We've seen numerous reportings of this, so we've updated the guides as of the beginning of May. The recommended steps have you create a service principal, test the login, then go through the Azure Marketplace flow. Can you try with the updated steps? You can find these at https://aka.ms/wvdpreview .

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
48 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies