Microsoft AVD Logon Simulator Caveat

By default, the browser interface to Microsoft AVD allows a user to disconnect his/her initiated session rather than logout from the session completely. This is because, Microsoft AVD is designed to retain the session by default, and let the user connect back to the session if he/she connects again. Though this process is very simple to use from a user perspective, the logon simulator will not be able to capture the entire logon simulator process until the user is logged out of the session. This will therefore create a greater impact on how the user experience is measured on the Microsoft Azure Virtual Desktop. For this, administrators should ensure that the user is logged out after each simulation rather than the user session being in the disconnected state. To ensure that the user used for simulation is automatically logged out after each simulation, administrators can do either of the following:

  • Enable the logon simulator agents to logoff the disconnected session

  • Automatically logoff the session by setting a timeline using Group Policy Management

Enable logon simulator agents to logoff the disconnected session

If you have installed the logon simulation endpoint agent on the AVD session host, then, the endpoint agent will automatically logoff the disconnected user sessions, provided, the name of the dedicated Microsoft Azure user account is prefixed by "egavdls".

Alternately, you can also specify a comma-separated list of usernames against the AVDLogonSimulatorPrefix flag under the [AGENT_SETTINGS] section of the eg_tests.ini file available in the <eG_INSTALL_DIR>/manager/config folder. The logon simulator agent will logoff all user sessions where the user name specified matches this prefix if the user session is in a disconnected state.

Automatically logoff the session by setting a timeline using Group Policy Management

If you have installed the logon simulation endpoint agent on a different location other than the AVD session host, then, you should make the following changes on the Microsoft AVD host / Microsoft Azure Active Directory host on which the AVD logon simulation is configured for execution.

  1. From the target Windows host, click the Group Policy Management that appears upon navigating through the menu sequence: Start -> Windows Administrative Tools. Figure 1 then appears.

    Figure 1 : The Group Policy Management Window

  2. From Figure 1, right click on the domain in your environment and select Create a GPO in this domain, and Link it here... option to create a new GPO. In Figure 2 that appears, specify the Name of the GPO that you are about to create and then, click OK.

    Figure 2 : Creating a new GPO

  3. The newly created GPO will then be listed as shown in Figure 3. The user associated with this GPO i.e., the user performing the logon simulation will be listed in the Security Filtering section.

    Figure 3 : Listing the newly created GPO

  4. Now, right click the GPO in Figure 3 and click the Edit option as shown in Figure 4.

    Figure 4 : Editing the GPO

  5. Figure 5 will then appear listing the Computer Configuration and User Configuration nodes of the GPO.

    Figure 5 : Editing the newly created GPO

  6. Expand the User Configuration node in Figure 5 and navigate through Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host. Clicking the Session Time Limits option will reveal Figure 6.

    Figure 6 : Navigating to the Session Time Limits option

  7. In Figure 6, right click on the Set time limit for disconnected sessions option and click the Edit option as shown in Figure 7.

    Figure 7 : Editing the Set time limit for disconnected sessions option

  8. Figure 8 will then appear.

    Figure 8 : Window to set time limit for disconnected sessions to logoff

  9. In Figure 8, choose the Enabled radio button and select an option from the End a disconnected session list box (see Figure 9). By default, Never will be displayed in this list.

    Figure 9 : Setting a time limit to end a disconnected session

  10. This time limit set to end a disconnected session is now automatically applied to the user performing logon simulation.