Can we provision session hosts as and when required and destroy after user logs out?

curious7 151 Reputation points
2023-01-29T12:55:32.73+00:00

For AVD desktop host pools, is it possible to have a new session host created if the load in case of "pooled host pool" increases beyond the capacity of the current session hosts? And if all the session hosts are already allocated in case of "personal host pool" and a new user needs a session hosts allocated to them? And also destroy session hosts once users logout and keep only a specified minimum number of hosts after users have logged off.

I have only found the "scaling plan" option in the pooled host pool. But that means that I have to pre-provision the session hosts and they are only de-allocated by the scaling plan.

How can I achieve above mentioned.

Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,317 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Luke Murray 10,276 Reputation points MVP
    2023-01-29T13:34:00.0166667+00:00

    Hi, Curious.

    Not out of the box, you could write a function/Azure automation that gets called from a Log Analytic alert on user sessions to create a VM from an image, add to the host pool, do some verification checks etc. and then has another function to delete the Virtual Machine afterwards.

    This is where third-party products like Nerdio come in - https://getnerdio.com/

    0 comments No comments