wvd session host with custom image

Ido 21 Reputation points
2020-10-06T12:30:13.54+00:00

Hi,
i tried to take an image from running session host and to create another host pool with session host based on that image, but the deployment hang on task: dscextenssion powershell.dsc transitioning state and after more than a hour it timed out with the following error:

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations 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\": \"VMExtensionProvisioningTimeout\",\r\n \"message\": \"Provisioning of VM extension dscextension has timed out. Extension provisioning has taken too long to complete. The extension did not report a message. More information on troubleshooting is available at https://aka.ms/VMExtensionDSCWindowsTroubleshoot\\"\\r\\n }\r\n ]\r\n }\r\n}"}]}

those are the steps taken to create the image for that deployment (win 10):

  1. backup the source vm (session host)
  2. restore the vm, remove it from the domain and change the hostname
  3. uninstall the Microsoft.RDInfra.RDAgent.Installer-x64-verx.x.x and Microsoft.RDInfra.RDAgentBootLoader.Installer-x64 - according the following kb -https://learn.microsoft.com/en-us/azure/virtual-desktop/create-host-pools-powershell#update-the-agent
  4. sysprep the vm
  5. capture image from azure
  6. create a new host pool and select the image above as the image for the session host

i tried it numbers of time but always getting the same error, when i choose to use a marketplace image it works!
what im doing wrong?

any help would be appreciated !

BR,
Ido

Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,536 questions
{count} votes

Accepted answer
  1. prmanhas-MSFT 17,896 Reputation points Microsoft Employee
    2020-10-08T14:23:13.633+00:00

    @Ido Apologies for the delay in response and all the inconvenience caused because of the issue.

    I reached out to our internal team and got below response:

    I try the following article below to create a custom image. All from within the Azure portal. I have had lots of success doing it this way. Let me know if you have success and do let me know if any help needed:

    Windows Virtual Desktop (WVD) – Image Management : How to manage and deploy custom images (including versioning) with the Azure Shared Image Gallery (SIG)

    This documentation can be helpful as well:

    https://learn.microsoft.com/en-us/azure/virtual-desktop/set-up-customize-master-image Please follow this link to create your image

    Hope it helps!!!

    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics

    Note : The article in the mentioned answer is not the official documentation from Microsoft side, so we can't confirm if it works on all tenants or for all cx. We have just tried to provide you the information which can be helpful to you with the current issue you are facing and help you in resolving the same.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Ido 21 Reputation points
    2020-10-10T05:25:14.95+00:00

    thank you for helping me,
    the first link was very helpful!

    Ido

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.