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.
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?
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.