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"rn }\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://docs.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