Azure AVD Auto Unassign disconnected session and Shutdown

zach's_Systems 1 Reputation point
2022-04-12T11:07:56.277+00:00

we deployed AVD Personal Hostpool with 30 Sessionhots( FSLogix for Profiles).

At the moment once a user connects to an AVD SH it remains assigned to that user. Our staff works on various schedules. and is there a way we can automatically unassign users if the AVD SH is disconnected for over 2 hours? and then shutdown.

And the AVD SH to turn on new connections ( i see this is possible with "Start VM on Connect" feature).

Any help and advice really appreciated.

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

1 answer

Sort by: Most helpful
  1. vipullag-MSFT 26,021 Reputation points
    2022-04-12T14:56:22.333+00:00

    @zach's_Systems

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    I am not aware of a way to natively automatically unassign users from personal desktops once their sessions have been disconnected.

    However, you can try doing this by using the GPO to logoff disconnected sessions and then use an automation script to do 'cleanup' by unassigning all logged off users from personal desktops. Please check this document for Information about unassigning personal desktops.

    Hope that helps.
    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics.

    0 comments No comments