SOLVED

Creating custom images

%3CLINGO-SUB%20id%3D%22lingo-sub-960047%22%20slang%3D%22en-US%22%3ECreating%20custom%20images%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-960047%22%20slang%3D%22en-US%22%3E%3CP%3EWhat%20is%20the%20preferred%20method%20of%20creating%20custom%20images%20for%20WVD%3F%20Should%20we%20use%20an%20unmanged%20image%20and%20store%20the%20VHD%20in%20a%20storage%20account%20or%20create%20a%20VM%20with%20a%20managed%20disk%20and%20capture%20if%20after%20we%20run%20sysprep.%20If%20use%20a%20managed%20disk%20and%20capture%20the%20image%2C%20what%20is%20the%20method%20of%20updating%20the%20master%20image%3F%20Create%20a%20new%20VM%20from%20the%20image%2C%20update%20then%20re%20capture%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-963233%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20custom%20images%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-963233%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F218410%22%20target%3D%22_blank%22%3E%40Chris%20Calaf%3C%2FA%3E%20%26nbsp%3B%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fset-up-customize-master-image%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fset-up-customize-master-image%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDid%20you%20take%20a%20look%20at%20this%20documentation%3F%20I%20think%20it%20should%20answer%20your%20questions.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-965844%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20custom%20images%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-965844%22%20slang%3D%22en-US%22%3E%3CP%3EI've%20tried%20both%20and%20both%20seem%20to%20work%20ok%20for%20creating%20the%20master%20image.%20Updating%20the%20image%20after%20this%20though%20isn't%20slick%20though.%20This%20will%20hopefully%20become%20irrelevant%20to%20a%20certain%20extent%20when%26nbsp%3B%3CFONT%3Emsix%20app%20attach%3C%2FFONT%3E%20becomes%20available.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-997336%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20custom%20images%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-997336%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F199787%22%20target%3D%22_blank%22%3E%40Pavithra%20Thiruvengadam%3C%2FA%3E%26nbsp%3BThank%20you.%20I%20have%20reviewed%20the%20document%20and%20decided%20on%20the%20capture%20approach%20using%20the%20vm%20from%20the%20gallery%2C%20customizing%20it%20then%20creating%20the%20image%20using%20the%20capture%20feature.%20Is%20there%20a%20benefit%20from%20using%20the%20multi-user%20version%20of%20Windows%2010%20to%20create%20a%20the%20VM%20for%20WVD%20even%20though%20I%20never%20plan%20on%20using%20the%20multi-user%20features%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1006488%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20custom%20images%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1006488%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F218410%22%20target%3D%22_blank%22%3E%40Chris%20Calaf%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20should%20take%20a%20look%20at%20Azure%20Image%20Builder.%3C%2FP%3E%3CP%3EI%20wrote%20a%20blog%20post%20about%20how%20to%20use%20it%2C%20you%20can%20check%20it%20out%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Froeleverink.nl%2FBuilding-WVD-Images%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Froeleverink.nl%2FBuilding-WVD-Images%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1052293%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20custom%20images%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1052293%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20in%20the%20same%20state...%3C%2FP%3E%3CP%3EI'd%20like%20to%20use%20the%20second%20way%2C%20but%20I'm%20stucked%20at%20'%3CSPAN%3Edownloading%20the%20image'.%20Where%20can%20I%20find%26nbsp%3B%20%26nbsp%3B'windows%2010%201909%20multiuser'%20image%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20tried%20also%20to%20use%20the%20'capture'%20command%20from%20an%20already%20deployed%20WVD%2C%20but%20I%20dont%20find%20a%20way%20to%20put%20it%20in%20right%20resource%20group...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1262444%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20custom%20images%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1262444%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F218410%22%20target%3D%22_blank%22%3E%40Chris%20Calaf%3C%2FA%3E%26nbsp%3Bwe%20actually%20created%20a%20gold%20image%20using%20the%20recommended%20capture%20approach%20for%20Azure%20VMs.%26nbsp%3B%20We%20built%20out%20one%20WVD%20multi%20session%20VM%20in%20a%20host%20pool%2C%20built%20out%20our%20apps%2C%20then%20sysprepped%20and%20captured%20it.%26nbsp%3B%20However%2C%20we%20ran%20into%20an%20issue%20when%20we%20deployed%20with%20it%20as%20we%20had%20to%20uninstall%20all%20of%20the%20WVD%20agents%20and%20bootloaders%20on%20each%20VM%20deployed%20and%20re-install%20it%20with%20a%20new%20token%20to%20connect%20them%20up%20to%20the%20WVD%20service.%26nbsp%3B%20All%20is%20well%20now.%26nbsp%3B%20We%20uninstalled%20the%20agents%20and%20bootloader%20from%20our%20gold%20WVD%20image%20and%20seems%20to%20work%20well%20now.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1333411%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20custom%20images%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1333411%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F279502%22%20target%3D%22_blank%22%3E%40stevenzelenko%3C%2FA%3E%26nbsp%3BI'm%20in%20the%20same%20boat%20currently%2C%20how%20did%20you%20end%20up%20fixing%20your%20master%20WVD%20image%3F%20Are%20there%20installers%20somewhere%20that%20allow%20you%20to%20reinstall%20those%20with%20a%20new%20token%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1333473%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20custom%20images%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1333473%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F235726%22%20target%3D%22_blank%22%3E%40Cody%20Kloepfel%3C%2FA%3E%26nbsp%3Byeah.%26nbsp%3B%20So%20uninstall%20the%20RD%20agent%20and%20bootloader%20agent%20from%20each%20VM.%26nbsp%3B%20What%20I%20would%20do%20is%20to%20remove%20the%20Registration%20info%20for%20all%20your%20host%20pool%20VMs%20and%20then%20re-install%20the%20agents%20if%20they%20aren't%20connecting.%26nbsp%3B%20The%20cmdlet%26nbsp%3B%20I%20believe%20is%20%22Remove-RdsRegistrationInfo%20-TenantName%20%3CTENANTNAME%3E%20-HostPoolName%20%3CHPNAME%3E.%22%26nbsp%3B%20Re-install%20the%20agents.%26nbsp%3B%20You%20don't%20necessarily%20need%20to%20create%20a%20registration%20token%20in%20WVD.%26nbsp%3B%20When%20asked%20to%20enter%20it%20just%20click%20continue%20through%20the%20installer.%26nbsp%3B%20If%20that%20doesn't%20work%2C%20then%20start%20over%20and%20follow%20this%20article%20from%20the%20top%20down.%26nbsp%3B%20When%20I%20tried%20to%20create%20a%20registration%20key%2C%20I%20couldn't%20get%20the%20heartbeat%20service%20to%20connect.%26nbsp%3B%20It%20was%20only%20after%20I%20removed%20it%20and%20just%20re-installed%20the%20agents%20without%20a%20key%20that%20it%20started%20talking%20to%20the%20back%20end%20service.%3C%2FHPNAME%3E%3C%2FTENANTNAME%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fcreate-host-pools-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fcreate-host-pools-powershell%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESkip%20the%20part%20about%20creating%20a%20host%20pool%20as%20you've%20already%20done%20that.%26nbsp%3B%20You%20can%20find%20the%20agents%20here%20as%20well.%26nbsp%3B%20I%20spoke%20to%20a%20WVD%20engineer%20about%20gold%20images%20and%20they%20definitely%20should%20be%20removed%20before%20it's%20sys%20prepped.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20this%20helps%20you%20out.%26nbsp%3B%20Let%20me%20know.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1340021%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20custom%20images%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1340021%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F218410%22%20target%3D%22_blank%22%3E%40Chris%20Calaf%3C%2FA%3E%26nbsp%3BCurrently%2C%20we%20are%20using%20Packer%20and%20installing%20all%20the%20apps%20and%20configuration%20using%20PowerShell.%20%26nbsp%3BWe%20don't%20install%20the%20RD%20agent%20or%20boot%20loader%20during%20this%20process.%20%26nbsp%3BThis%20is%20done%20with%20DSC%20as%20part%20of%20the%20host%20deployment.%20%26nbsp%3BIt%20works%20quite%20well%2C%20but%20currently%20having%20a%20challenge%20applying%20FSLogix%20App%20Masking%20rules%20for%20Visio%2FProject%20to%20do%20registry%20redirection.%20%26nbsp%3BIt%20seems%20you%20cannot%20do%20the%20'apply%20to%20system'%20from%20a%20command%20line%2C%20during%20the%20application%20installation%20process%20(this%20is%20being%20done%20using%20ODT)%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

What is the preferred method of creating custom images for WVD? Should we use an unmanged image and store the VHD in a storage account or create a VM with a managed disk and capture if after we run sysprep. If use a managed disk and capture the image, what is the method of updating the master image? Create a new VM from the image, update then re capture? 

9 Replies
Highlighted
Best Response confirmed by Chris Calaf (New Contributor)
Solution

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

Highlighted

I've tried both and both seem to work ok for creating the master image. Updating the image after this though isn't slick though. This will hopefully become irrelevant to a certain extent when msix app attach becomes available.

Highlighted

@Pavithra Thiruvengadam Thank you. I have reviewed the document and decided on the capture approach using the vm from the gallery, customizing it then creating the image using the capture feature. Is there a benefit from using the multi-user version of Windows 10 to create a the VM for WVD even though I never plan on using the multi-user features? 

Highlighted

@Chris Calaf 

 

You should take a look at Azure Image Builder.

I wrote a blog post about how to use it, you can check it out here: https://roeleverink.nl/Building-WVD-Images/

Highlighted

I'm in the same state...

I'd like to use the second way, but I'm stucked at 'downloading the image'. Where can I find   'windows 10 1909 multiuser' image?

 

I've tried also to use the 'capture' command from an already deployed WVD, but I dont find a way to put it in right resource group...

 

 

 

Highlighted

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

Highlighted

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

Highlighted

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

@Chris Calaf Currently, we are using Packer and installing all the apps and configuration using PowerShell.  We don't install the RD agent or boot loader during this process.  This is done with DSC as part of the host deployment.  It works quite well, but currently having a challenge applying FSLogix App Masking rules for Visio/Project to do registry redirection.  It seems you cannot do the 'apply to system' from a command line, during the application installation process (this is being done using ODT)