Best way to update host pool VMs with new image

%3CLINGO-SUB%20id%3D%22lingo-sub-2320169%22%20slang%3D%22en-US%22%3EBest%20way%20to%20update%20host%20pool%20VMs%20with%20new%20image%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2320169%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20seen%20a%20lot%20documents%20about%20creating%20a%20new%20Host%20Pool%20using%20updated%20image.%20But%20not%20many%20explain%20how%20we%20can%20update%20VMs%20with%20the%20existing%20Host%20Pool.%20%3CA%20href%3D%22https%3A%2F%2Fwww.robinhobo.com%2Fhow-to-update-a-custom-windows-10-multi-user-image-with-lob-applications-for-windows-virtual-desktop-wvd-preview%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EThis%20blog%3C%2FA%3E%20indicates%20it%20can%20be%20done%20by%20redeploying%20the%20Host%20Pool%20with%20ARM%20template.%20I%20did%20give%20it%20a%20try%2C%20got%20some%20syntax%20error%20with%20%3CSTRONG%3EAll%20Application%20Group%20References%3C%2FSTRONG%3E%26nbsp%3Bparameter.%20After%20skip%20the%20parameter%2C%20I%20was%20able%20to%20susccessfully%20redeploy%20the%20Host%20Pool.%20Though%20users%20lost%20access%20to%20previously%20configured%20Application%20Groups.%20In%20Azure%20Portal%2C%20I%20can%20still%20see%20these%20Application%20Groups%20associated%20with%20the%20Host%20Pool%2C%20but%20users%20can%20no%20longer%20access%20those%20Apps.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyone%20know%20a%20better%20way%20to%20update%20Host%20Pool%20VMs%20with%20a%20new%20image%3F%20Or%20can%20provide%20some%20guidance%20on%20how%20I%20should%20setup%20the%20ARM%20template%3F%20Especially%20with%26nbsp%3B%3CSTRONG%3EAll%20Application%20Group%20References%20%3C%2FSTRONG%3Efield.%20I%20tried%20copy%20from%20the%20Parameter%20file%2C%20which%20is%20in%20the%20format%20of%20%7B%22value%22%3A%22%2Fsubscriptions%2F...%2FWVDHostPool-DAG%2C%2FSubscriptions%2F...%2FAnotherAppGroupName%22%7D%20and%20%22%2Fsubscriptions%2F...%2FWVDHostPool-DAG%2C%2FSubscriptions%2F...%2FAnotherAppgroupName%22.%20None%20of%20these%20works.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2331820%22%20slang%3D%22en-US%22%3ERe%3A%20Best%20way%20to%20update%20host%20pool%20VMs%20with%20new%20image%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2331820%22%20slang%3D%22en-US%22%3EHave%20you%20seen%20Robin%20Hobo's%20more%20recent%20blog%20on%20this%3F%20(%3CA%20href%3D%22https%3A%2F%2Fwww.robinhobo.com%2Fwindows-virtual-desktop-wvd-image-management-how-to-manage-and-deploy-custom-images-including-versioning-with-the-azure-shared-image-gallery-sig%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.robinhobo.com%2Fwindows-virtual-desktop-wvd-image-management-how-to-manage-and-deploy-custom-images-including-versioning-with-the-azure-shared-image-gallery-sig%2F%3C%2FA%3E)%20That%20one%20from%20June%202020%20is%20also%20outdated%20in%20some%20regards%20since%20the%20UI%20has%20changed%2C%20but%20I%20think%20the%20general%20approach%20is%20still%20valid%20--%20update%20the%20image%2C%20put%20the%20existing%20VMs%20in%20drain%20mode%2C%20add%20the%20new%20VM(s)%20to%20the%20host%20pool%2C%20and%20then%20remove%20the%20old%20VMs.%20(I'm%20still%20learning%20here%2C%20so%20don't%20take%20my%20advice%20as%20gospel!)%3C%2FLINGO-BODY%3E
New Contributor

I have seen a lot documents about creating a new Host Pool using updated image. But not many explain how we can update VMs with the existing Host Pool. This blog indicates it can be done by redeploying the Host Pool with ARM template. I did give it a try, got some syntax error with All Application Group References parameter. After skip the parameter, I was able to susccessfully redeploy the Host Pool. Though users lost access to previously configured Application Groups. In Azure Portal, I can still see these Application Groups associated with the Host Pool, but users can no longer access those Apps. 

 

Anyone know a better way to update Host Pool VMs with a new image? Or can provide some guidance on how I should setup the ARM template? Especially with All Application Group References field. I tried copy from the Parameter file, which is in the format of {"value":"/subscriptions/.../WVDHostPool-DAG,/Subscriptions/.../AnotherAppGroupName"} and "/subscriptions/.../WVDHostPool-DAG,/Subscriptions/.../AnotherAppgroupName". None of these works. 

1 Reply
Have you seen Robin Hobo's more recent blog on this? (https://www.robinhobo.com/windows-virtual-desktop-wvd-image-management-how-to-manage-and-deploy-cust...) That one from June 2020 is also outdated in some regards since the UI has changed, but I think the general approach is still valid -- update the image, put the existing VMs in drain mode, add the new VM(s) to the host pool, and then remove the old VMs. (I'm still learning here, so don't take my advice as gospel!)