Home

The session hosts I have need extra config before allowing new sessions to be load balanced to them.

%3CLINGO-SUB%20id%3D%22lingo-sub-871552%22%20slang%3D%22en-US%22%3EThe%20session%20hosts%20I%20have%20need%20extra%20config%20before%20allowing%20new%20sessions%20to%20be%20load%20balanced%20to%20them.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-871552%22%20slang%3D%22en-US%22%3E%3CP%3EMy%20situation%3A%3C%2FP%3E%3CP%3EI%20am%20using%20ARM%20Templates%20to%20create%20session%20hosts%20using%20a%20pre-baked%20image%20with%20stuff%20that%20is%20expected%20to%20change%20less%20often.%20I%20use%20the%20DSC%20from%20your%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FRDS-Templates%2Ftree%2Fmaster%2Fwvd-templates%2FCreate%2520and%2520provision%2520WVD%2520host%2520pool%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FAzure%2FRDS-Templates%2Ftree%2Fmaster%2Fwvd-templates%2FCreate%2520and%2520provision%2520WVD%2520host%2520pool%3C%2FA%3E%26nbsp%3Bin%20an%20DSC%20extension%20to%20ensure%20I%20get%20the%20agent%20etc%20installed%20and%20configured%20properly.%20All%20of%20this%20works%20fine%20and%20allows%20me%20to%20blemd%20my%20way%20of%20creating%20a%20VM%20with%20your%20requirements.%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20problem%3A%3C%2FP%3E%3CP%3EThe%20session%20host%20is%20not%20fully%20ready%20to%20allow%20new%20sessions%20after%20the%20creation.%20There%20are%20some%20final%20non-automated%20steps.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20question%3A%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20get%20an%20extra%20parameter%20to%26nbsp%3BFirstSessionHost%2FAdditionalSessionHosts%20that%20controls%20if%20session%20hosts%20are%20allowing%20new%20sessions%20immediately%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-876237%22%20slang%3D%22en-US%22%3ERe%3A%20The%20session%20hosts%20I%20have%20need%20extra%20config%20before%20allowing%20new%20sessions%20to%20be%20load%20balanced%20to%20t%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-876237%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F305776%22%20target%3D%22_blank%22%3E%40christianmontoya%3C%2FA%3E%26nbsp%3BI%20bit%20the%20bullet%20and%20cloned%20your%20github%20repo.%20I%20made%20changes%20to%20the%20DSC%20part%20of%20%22wvd-templates%2FCreate%20and%20provision%20WVD%20host%20pool%22%20essentially%20adding%20a%20new%20optional%20parameter%20called%26nbsp%3BAllowNewSession%20in%20the%20relevant%20places%20and%20then%20making%20use%20of%20it%20in%26nbsp%3BScript-AdditionalRdshServers.ps1%20as%20well%20as%26nbsp%3BScript-FirstRdshServer.ps1.%20It%20was%20a%20fairly%20simple%20change%20and%20I%20would%20be%20happy%20to%20share%20it%20with%20you%20if%20you%20decide%20to%20add%20such%20a%20feature%20in%20a%20future%20release.%26nbsp%3B%3C%2FP%3E%3CP%3EFYI%3A%20I%20use%20your%20DSC%20in%20my%20own%20ARM%20template%2C%20to%20ensure%20I%20get%20your%20WVD%20stuff%20the%20way%20you%20want%20and%20the%20rest%20of%20the%20VM%20the%20way%20I%20want.%3C%2FP%3E%3CP%3ECheers%2C%3C%2FP%3E%3CP%3EJohan%3C%2FP%3E%3C%2FLINGO-BODY%3E
Johan_Eriksson
Contributor

My situation:

I am using ARM Templates to create session hosts using a pre-baked image with stuff that is expected to change less often. I use the DSC from your https://github.com/Azure/RDS-Templates/tree/master/wvd-templates/Create%20and%20provision%20WVD%20ho... in an DSC extension to ensure I get the agent etc installed and configured properly. All of this works fine and allows me to blemd my way of creating a VM with your requirements. 

My problem:

The session host is not fully ready to allow new sessions after the creation. There are some final non-automated steps.  

My question:

Is it possible to get an extra parameter to FirstSessionHost/AdditionalSessionHosts that controls if session hosts are allowing new sessions immediately?

1 Reply
Highlighted

@christianmontoya I bit the bullet and cloned your github repo. I made changes to the DSC part of "wvd-templates/Create and provision WVD host pool" essentially adding a new optional parameter called AllowNewSession in the relevant places and then making use of it in Script-AdditionalRdshServers.ps1 as well as Script-FirstRdshServer.ps1. It was a fairly simple change and I would be happy to share it with you if you decide to add such a feature in a future release. 

FYI: I use your DSC in my own ARM template, to ensure I get your WVD stuff the way you want and the rest of the VM the way I want.

Cheers,

Johan

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies