Doubts about template lifecycle and how to update existing host pools

%3CLINGO-SUB%20id%3D%22lingo-sub-1136600%22%20slang%3D%22en-US%22%3EDoubts%20about%20template%20lifecycle%20and%20how%20to%20update%20existing%20host%20pools%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1136600%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20have%20a%20doubt%20about%20gallery%20template%20deployment.%3CBR%20%2F%3EI%20think%20that%20all%20admins%20want%20thave%20a%20template%20(Golden%20image).%20If%20I%20create%20a%20host%20pool%20from%20gallery%20how%20can%20i%20convert%20it%20as%20template%3F%20I%20mean%2C%20I%20create%20first%20VM%20from%20Gallery%20and%20later%20deploy%20rest%20of%20VMs%20with%20Custom%20VHD%20(using%20VHD%20of%20VM%20created%20from%20gallery)%3F%20What%20do%20you%20think%20about%20it%3F%3CBR%20%2F%3EI%20would%20like%20to%20apply%20Windows%20Update%20and%20software%20installation%20periodically%20in%20template%20and%20later%20update%20existing%20host%20pool.%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20used%20to%20working%20like%20this%20at%20Citrix%20and%20I%20don't%20know%20if%20WVD%20works%20in%20a%20similar%20way.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1136931%22%20slang%3D%22en-US%22%3ERe%3A%20Doubts%20about%20template%20lifecycle%20and%20how%20to%20update%20existing%20host%20pools%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1136931%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F524434%22%20target%3D%22_blank%22%3E%40manuelpflx%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20is%20possible%20to%20use%20custom%20images%20for%20you%20WVD%20host%20deployment.%20Check%20this%3A%26nbsp%3B%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%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fset-up-customize-master-image%3C%2FA%3E%3C%2FP%3E%3CP%3Eor%20this%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.anoopcnair.com%2Fwvd-custom-image-creation-using-windows-10%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.anoopcnair.com%2Fwvd-custom-image-creation-using-windows-10%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20do%20it%20like%20that%3A%3C%2FP%3E%3COL%3E%3CLI%3EPrepare%20custom%20image%20(install%20patches%20%2F%20software%20whatever)%3C%2FLI%3E%3CLI%3ESnapshot%20the%20custom%20image%20(in%20my%20case%20an%20windows%2010%20multi-user%20vm%20in%20azure)%3C%2FLI%3E%3CLI%3ESysprep%3C%2FLI%3E%3CLI%3ECapture%20image%20in%20azure%26nbsp%3B%3C%2FLI%3E%3CLI%3ERedeploy%20WVD%20pool%20with%20image%3C%2FLI%3E%3CLI%3Ein%20future%20changes%2C%20lets%20say%20new%20patches%20-%26gt%3B%20restore%20snapshot%20and%20repeat%20steps%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehope%20this%20helps.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3CP%3EMark%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1142516%22%20slang%3D%22en-US%22%3ERe%3A%20Doubts%20about%20template%20lifecycle%20and%20how%20to%20update%20existing%20host%20pools%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1142516%22%20slang%3D%22en-US%22%3EI%20will%20try%20this%20step-by-step.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F36879%22%20target%3D%22_blank%22%3E%40mark%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1147375%22%20slang%3D%22en-US%22%3ERe%3A%20Doubts%20about%20template%20lifecycle%20and%20how%20to%20update%20existing%20host%20pools%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1147375%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20the%20steps%20and%20I%20create%20a%20host%20pool%20with%20new%20changes%20in%20template.%20New%20issue%20is%20I%20cannot%20edit%20template%20after%20capture%20VM.%20Azure%20portal%20shows%20following%20message%3A%3C%2FP%3E%3CP%3E%3CEM%3EThis%20VM%20is%20generalized.%20VM%20disk%20settings%20cannot%20be%20edited%20on%20generalized%20VMs.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20I%20restore%20snapshot%20in%20template%20after%20it's%20%22captured%22%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi,

I have a doubt about gallery template deployment.
I think that all admins want thave a template (Golden image). If I create a host pool from gallery how can i convert it as template? I mean, I create first VM from Gallery and later deploy rest of VMs with Custom VHD (using VHD of VM created from gallery)? What do you think about it?
I would like to apply Windows Update and software installation periodically in template and later update existing host pool. 

I'm used to working like this at Citrix and I don't know if WVD works in a similar way.

 

Thanks,

3 Replies
Highlighted

Hi @manuelpflx 

 

It is possible to use custom images for you WVD host deployment. Check this: https://docs.microsoft.com/en-us/azure/virtual-desktop/set-up-customize-master-image

or this

https://www.anoopcnair.com/wvd-custom-image-creation-using-windows-10/

 

I do it like that:

  1. Prepare custom image (install patches / software whatever)
  2. Snapshot the custom image (in my case an windows 10 multi-user vm in azure)
  3. Sysprep
  4. Capture image in azure 
  5. Redeploy WVD pool with image
  6. in future changes, lets say new patches -> restore snapshot and repeat steps

 

hope this helps.

 

Cheers

Mark

Highlighted
I will try this step-by-step.

Thanks @mark
Highlighted

Hi,

 

I tried the steps and I create a host pool with new changes in template. New issue is I cannot edit template after capture VM. Azure portal shows following message:

This VM is generalized. VM disk settings cannot be edited on generalized VMs.

 

How can I restore snapshot in template after it's "captured"?

 

Regards.