Home

WVD Template to Modify a host pool with new setup - "first time use" - can I use only this template?

%3CLINGO-SUB%20id%3D%22lingo-sub-434427%22%20slang%3D%22en-US%22%3EWVD%20Template%20to%20Modify%20a%20host%20pool%20with%20new%20setup%20-%20%22first%20time%20use%22%20-%20can%20I%20use%20only%20this%20template%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-434427%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20currently%20using%20the%20%22Create%20and%20provision%20new%20WVD%20hostpool%22%20template.%20It%20works%20OK.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%2C%20however%2C%20have%20a%20bit%20of%20a%20problem%20with%20the%20separation%20between%20the%20create%20and%20modify%20case.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20like%20my%20templates%20to%20state%20the%20desired%20state%20of%20my%20project%20after%20deploy.%20This%20makes%20for%20more%20readable%20and%20maintainable%20templates.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20create%2Fmodify%20paradigm%20implies%20that%20I%20know%20what%20the%20state%20is%20before%20and%20then%20select%20the%20correct%20template%20based%20on%20that.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20prefer%20a%20solution%20that%20checked%20if%20I%20already%20have%20what%20I%20stated%20as%20the%20desired%20state%20and%20only%20updates%20my%20resources%20as%20required.%20(Such%20as%20if%20there%20is%20a%20new%20image%20to%20build%20from%2C%20a%20new%20number%20of%20instances%20(up%2Fdown)%20or%20a%20new%20VM%20side.)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20deploy%20my%20templates%20two%20times%20in%20a%20row%20without%20changing%20anything%20I%20would%20expect%20the%20second%20deploy%20to%20say%20that%20all%20is%20fine%20and%20nothing%20needs%20to%20change.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20that%20the%20way%20it%20works%20today%20or%20are%20you%20planning%20to%20move%20in%20that%20direction%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%2C%3C%2FP%3E%3CP%3EJohan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-572324%22%20slang%3D%22en-US%22%3ERe%3A%20WVD%20Template%20to%20Modify%20a%20host%20pool%20with%20new%20setup%20-%20%22first%20time%20use%22%20-%20can%20I%20use%20only%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-572324%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F309051%22%20target%3D%22_blank%22%3E%40Johan_Eriksson%3C%2FA%3E%26nbsp%3B%3A%20To%20clarify%2C%20is%20the%20main%20goal%20to%20say%20that%20you%20have%20a%20host%20pool%2C%20but%20now%20want%20to%20push%20out%20a%20new%20image%3F%20If%20so%2C%20then%20we%20would%20actually%20recommend%20the%20%22Update%20existing%20host%20pool%22%20template%2C%20which%20gives%20you%20extra%20controls%20on%20what%20to%20do%20with%20the%20previous%20virtual%20machines.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20answer%20your%20later%20questions%20on%20%22only%20updates%20my%20resources%20as%20required%22%20(such%20as%20adding%201%20or%202%20VMs%20to%20your%20existing%20host%20pool%20and%20referencing%20the%20same%20image)%2C%20the%20goal%20is%20that%20it%20should%20work.%20ARM%20does%20this%20pretty%20well%20with%20VM's%2C%20such%20that%20it%20won't%20create%20%22vm-0%22%2C%20%22vm-1%22%2C%20etc.%20if%20they%20already%20exist.%20However%2C%20ARM%20is%20a%20little%20less%20friendly%20in%20terms%20of%20the%20extensions%2C%20which%20we%20need%20to%20run%20to%20get%20the%20VMs%20joined%20to%20the%20domain%20and%20registered%20to%20the%20service.%20We%20are%20investigating%20this.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Johan_Eriksson
Contributor

Hi,

 

I am currently using the "Create and provision new WVD hostpool" template. It works OK.

 

I, however, have a bit of a problem with the separation between the create and modify case.

 

I like my templates to state the desired state of my project after deploy. This makes for more readable and maintainable templates.

 

The create/modify paradigm implies that I know what the state is before and then select the correct template based on that.

 

I would prefer a solution that checked if I already have what I stated as the desired state and only updates my resources as required. (Such as if there is a new image to build from, a new number of instances (up/down) or a new VM side.)

 

If I deploy my templates two times in a row without changing anything I would expect the second deploy to say that all is fine and nothing needs to change. 

 

Is that the way it works today or are you planning to move in that direction?

 

Cheers,

Johan

1 Reply

@Johan_Eriksson : To clarify, is the main goal to say that you have a host pool, but now want to push out a new image? If so, then we would actually recommend the "Update existing host pool" template, which gives you extra controls on what to do with the previous virtual machines.

 

To answer your later questions on "only updates my resources as required" (such as adding 1 or 2 VMs to your existing host pool and referencing the same image), the goal is that it should work. ARM does this pretty well with VM's, such that it won't create "vm-0", "vm-1", etc. if they already exist. However, ARM is a little less friendly in terms of the extensions, which we need to run to get the VMs joined to the domain and registered to the service. We are investigating this.

Related Conversations
Extentions Synchronization
Deleted in Discussions on
3 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
36 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies