How to fix "VM has reported a failure when processing extension 'Microsoft.PowerShell.DSC' (publisher 'Microsoft.Powershell' and type 'DSC'). Error message: 'The DSC Extension failed to execute: Error downloading" in Azure VDI Deployment

Anonymous
2024-03-06T07:44:52.33+00:00

Hello,

We've encountered an issue with our Azure VDI deployment, resulting in an error that seems to be affecting the Host pool. This, in turn, is causing VMs to fail multiple checks.
 

The error message we received is as follows:

{     "status": "Failed",     "error": {         "code": "DeploymentFailed",         "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",         "details": [             {                 "code": "Conflict",                 "message": "{\r\n  \"status\": \"Failed\",\r\n  \"error\": {\r\n    \"code\": \"ResourceDeploymentFailure\",\r\n    \"message\": \"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.\",\r\n    \"details\": [\r\n      {\r\n        \"code\": \"VMExtensionProvisioningError\",\r\n        \"message\": \"VM has reported a failure when processing extension 'Microsoft.PowerShell.DSC' (publisher 'Microsoft.Powershell' and type 'DSC'). Error message: 'The DSC Extension failed to execute: Error downloading https://wvdportalstorageblob.blob.core.windows.net/galleryartifacts/Configuration_1.0.02599.267.zip after 17 attempts: The underlying connection was closed: An unexpected error occurred on a send..\\r\\nMore information about the failure can be found in the logs located under 'C:\\\\WindowsAzure\\\\Logs\\\\Plugins\\\\Microsoft.Powershell.DSC\\\\2.83.5' on the VM.'. More information on troubleshooting is available at https://aka.ms/VMExtensionDSCWindowsTroubleshoot. \"\r\n      }\r\n    ]\r\n  }\r\n}"             }         ]     } }
 
 
{   "code": "DeploymentFailed",   "target": "/subscriptions/40422de8-2c9b-4a1b-bc56-246fa16ee541/resourceGroups/avdpoc-infra-pro-chn-rg/providers/Microsoft.Resources/deployments/AddVMsToHostPool-9227b4c0-1d68-4260-af51-e8234ebe10c4-deployment",   "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",   "details": [     {       "code": "ResourceDeploymentFailure",       "target": "/subscriptions/40422de8-2c9b-4a1b-bc56-246fa16ee541/resourceGroups/avdpoc-infra-pro-chn-rg/providers/Microsoft.Resources/deployments/vmCreation-linkedTemplate-9227b4c0-1d68-4260-af51-e8234ebe10c4",       "message": "The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'."     }   ] }

User's image

could you please help me to fix this problem
Thanks
Salem

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,243 questions
Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,382 questions
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 33,941 Reputation points Microsoft Employee
    2024-03-06T18:33:35.55+00:00

    @Salem Elaiba

    According to the error you are receiving the VM is unable to reach the URL:

    https://wvdportalstorageblob.blob.core.windows.net/galleryartifacts/Configuration_1.0.02599.267.zip

    Which is required to provision the Virtual Desktop Service. You can review the required endpoints here. Please verify that your Network Security Group is allowing outbound traffic and not blocking this endpoint.

    If you are still facing issues please let me know and we can work with you directly to further troubleshoot.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    User's image

    0 comments No comments