Forum Discussion
Azure Virtual Machine Start on Connect?
Start on Connect is Azure Virtual Desktop functionality only and doesn't apply to traditional VMs. If you know your hours of operation or are using scale sets you can configure accordingly to scale back on differing loads or turn them off entirely between specified hours.
Here's a link/video on how you can achieve auto-shutdown and auto-start using automation tasks.
Currently now we are using powerapps so that users can start/stop their VM & azure automation schedules.
Is there a way to add Azure Virtual Machines in Host Pools so that we can use this Start on Connect functionality?
Thanks.
- MildHysteriaJul 06, 2022Copper Contributor
You could use an AVD host pool scaling plan and the flexibility that offers by setting bring your capacity threshold down to 0%. This can be found under Settings > Scaling plan.
You can then couple this with Wake on Connect which can be found under properties
- Alan2022Jul 06, 2022Iron ContributorMildHysteria
Is this correct?
Registering Azure VM to AVD Host Pool?
https://docs.microsoft.com/en-us/azure/virtual-desktop/create-host-pools-powershell?tabs=azure-powershell#register-the-virtual-machines-to-the-windows-virtual-desktop-host-pool
Thanks.- MildHysteriaJul 11, 2022Copper Contributor
I'm not 100% sure I follow what you mean by 'Correct' but if you're referring to creating the AVD environment you would need a host pool and to register a VM into the pool. You could then use the settings as mentioned above to achieve the wake on connect and scale plan to turn off. The link you've provided outlines those steps.