Start on Connect button needs more information icon to let you know Nerdio startup scripts won't run

OK after several months of issues with startup scripts not been applied to all Host pool VM's…

It turns out the Auto scaling “Start on Connect” checkbox is a Microsoft process and not a Nerdio one.

Therefore any startup scripts in the Host Pool > Properties > VM Deployment > Run Scripted actions when host VM is STARTED section WON'T run because Nerdio doesn't recognise that the host has started if it starts with the Start on Connect command.

So yeah, next to the “Start on Connect” checkbox, a small circle with an i in the middle telling you that would be very helpful.

Thanks

3

Comments (2 comments)

1
Avatar
Dave Stephenson

Great call-out, Alastair.

Start VM on Connect is a native Azure feature that's a great saving measure for only turning on VMs when someone connects, however, because it's a native functionality, we're not able to inject any Nerdio Manager Magic (a.k.a. automations) before the VM starts.

Interestingly, if you look at the AVD tab of the Host Pool Properties, that Start VM on Connect has an existing info button, but the one in AutoScale Configuration doesn't.
 

 

Out of curiosity, would you prefer an info button or have red text (rough example below) show-up when you check the box?
 

1
Avatar
John Tokash

Interesting find - and while we enable it as a standard, I can't think of any cases where we have a run on start script assigned (vs. run when created or reimaged) - so that explains why we've never noticed.

I'd be curious about looking at what it is you need to run, is it something you could trigger when the VM is stopped (which is far more likely to be driven by NMM than something native, right?   Without knowing context, can't say for sure, but seems worth considering for your use case.

Wholly agree on the notification/information - I hadn't realized it, so I am sure there are others thinking the same thing.    Though I would propose “When triggerd, this feature would bypass Nerdio Automation from happening on VM Start” - just a bit of polish :-)

Please sign in to leave a comment.