Forum Discussion
Creating custom images
- Oct 29, 2019
Chris Calaf https://docs.microsoft.com/en-us/azure/virtual-desktop/set-up-customize-master-image
Did you take a look at this documentation? I think it should answer your questions.
Chris Calaf we actually created a gold image using the recommended capture approach for Azure VMs. We built out one WVD multi session VM in a host pool, built out our apps, then sysprepped and captured it. However, we ran into an issue when we deployed with it as we had to uninstall all of the WVD agents and bootloaders on each VM deployed and re-install it with a new token to connect them up to the WVD service. All is well now. We uninstalled the agents and bootloader from our gold WVD image and seems to work well now.
stevenzelenko I'm in the same boat currently, how did you end up fixing your master WVD image? Are there installers somewhere that allow you to reinstall those with a new token?
- stevenzelenkoApr 23, 2020Brass Contributor
Cody Kloepfel yeah. So uninstall the RD agent and bootloader agent from each VM. What I would do is to remove the Registration info for all your host pool VMs and then re-install the agents if they aren't connecting. The cmdlet I believe is "Remove-RdsRegistrationInfo -TenantName <tenantname> -HostPoolName <HPname>." Re-install the agents. You don't necessarily need to create a registration token in WVD. When asked to enter it just click continue through the installer. If that doesn't work, then start over and follow this article from the top down. When I tried to create a registration key, I couldn't get the heartbeat service to connect. It was only after I removed it and just re-installed the agents without a key that it started talking to the back end service.
https://docs.microsoft.com/en-us/azure/virtual-desktop/create-host-pools-powershell
Skip the part about creating a host pool as you've already done that. You can find the agents here as well. I spoke to a WVD engineer about gold images and they definitely should be removed before it's sys prepped.
Hope this helps you out. Let me know.