Forum Discussion
regimani
Jul 11, 2022Copper Contributor
AVD applications getting closed on disconnect
I am a new user to Azure Virtual Desktop and I would like to know the options to keep the dev applications (Visual Studio, SSMS etc) opened after disconnect. I am looking for something like the "Always On" mode of AWS.
Its a difficult process to sign-in and open each and every dev tool after sign-in to AVD every time.
- pksony88Copper Contributor
Time limit for disconnected sessions
This policy setting lets you configure a timeout for disconnected Remote Desktop Services sessions on all Windows servers that you use for Load Balancing.
By default, the user always receives a new session as soon as the connection is cancelled. To prevent accidental disconnections and any loss of work progress, it is recommended to define a value at which the user receives a new session. Since longer sessions would affect load balancing, the duration of each session in one click™ is limited to a maximum of 2 hour.
First, open the „Group Policy Editor“ on your server:
- Start the execution window by pressing Win + R.
- Type gpedit.msc in the execution window and press OK.
- The Local Group Policy Editor opens on your system.
- Set time limit for disconnected sessions in Windows
- Navigate to the following location:
-
-
- Local Computer Policy
- Computer Configuration
- Administrative Templates
- Windows Components
- Remote Desktop Services
- Remote Desktop Session Host
- Session Time Limits
-
- On the right side you will find a list of options. Double-click on Set time limit for disconnected sessions, to open a new window.
- By default the session is set to „Not configured“. Double-click on this entry and change the selection to „Enabled“.
- Then click OK to confirm your entries. In the now opened window you will see the option „End a disconnected session“ on the bottom left side.
Set this value to the required time so that any user whose connection has been disconnected will be logged out after this period has passed. - Then click OK to confirm your entries.
- Activate „End session when time limit is reached“
- Stay in the „Session Time Limits“ folder.
- On the right side double-click then End session when time limits are reached.
- In the now opened window, check the „Enabled“ option and click on OK to confirm your entries.
- Restrict users to one Remote Desktop Services session
- Go back to the parent folder Remote Desktop Session Host and click on Connections.
- On the right side, you will find a list of different options. Scroll down until you find „Restrict Remote Desktop Services users to a single Remote Desktop Services session“.
- Double-click this option and a new window will appear.
- Check the „Enabled“ option and click on OK to accept your entries.
From now on, the user can only connect to one single session and – after disconnecting – will continue to have access to his work status for the previously set time without creating multiple open sessions.
- Enable policies
- Restart the server.
- Or, open Microsoft Power Shell and enter the following command: gpupdate /force The policies are now updated without a restart.
- Sufiyan_Peerzade
Microsoft
Hi regimani I'd like to know if you have found a troubleshooting for this.- jay_singhBrass ContributorDo the apps just close when the user disconnects the session?
- Sufiyan_Peerzade
Microsoft
yes they just close