Skip to content
Fix AVD Refreshing Your Token Error | Couldn’t Connect to Session Desktop | Azure Virtual Desktop Tips

Fix AVD Refreshing Your Token Error | Couldn’t Connect to Session Desktop | Azure Virtual Desktop Tips

Written By Anoop C Nair
Last Updated August 22, 2024
Posted In AVD
SHARE

Let’s Fix AVD Refreshing Your Token Error. I don’t know how many of you have seen this AVD issue Oops, we couldn’t connect to “Session Desktop”.

Well, it’s not an issue; it’s more of a security feature! I regularly get this error message when I try to access the session desktop after around ~20-30 minutes of idle time (especially with the AVD Web Client).

Let’s see how to fix it quickly. Well, there is nothing much to fix it. This post is more for end-users who are sometimes surprised by this error. I have seen end users raise a ticket for this issue several times.

You can read more about Azure AD refresh and session tokens-related configuration from Microsoft docs. In Azure AD, a policy object represents a set of rules enforced on individual or all applications in an organization.

Patch My PC

Refresh and Session Token Policies for AVD

Each policy type has a unique structure and a set of properties that are applied to the objects to which they are assigned. Refresh and Session Token Policies for Azure Virtual Desktop (AVD) each have unique structures and sets of properties used for the objects they govern.

These policies ensure secure and efficient management of user sessions and access tokens within AVD environments. By implementing specific configurations and settings, administrators can control the behaviour and lifecycle of the session and refresh tokens, optimizing security and user experience in virtual desktop scenarios.

Error Message & Fix

The following is the error message you get primarily because of a time-out.

Oops, we couldn’t connect to “Session Desktop.” We’re working on refreshing your token. Please try again later or refresh the page.

  • The fix is to click on the REFRESH button.
    • In most of the scenarios, this refresh helps. If not, check out the following steps.
Fix AVD Refreshing Your Token Error | Couldn't Connect to Session Desktop | Azure Virtual Desktop Tips -  Fig.1
Fix AVD Refreshing Your Token Error | Couldn’t Connect to Session Desktop | Azure Virtual Desktop Tips – Fig.1

Log off from the AVD Web client portal. https://aka.ms/wvdARMweb

Fix AVD Refreshing Your Token Error | Couldn't Connect to Session Desktop | Azure Virtual Desktop Tips -  Fig.2
Fix AVD Refreshing Your Token Error | Couldn’t Connect to Session Desktop | Azure Virtual Desktop Tips – Fig.2

Close the browser, re-open it, and log back in. To troubleshoot issues or update settings, you might need to close the browser, reopen it, and log back in.

This process can help refresh the browser session, precise temporary data, and ensure that any recent changes or updates take effect, improving performance and resolving potential problems.

Fix AVD Refreshing Your Token Error | Couldn't Connect to Session Desktop | Azure Virtual Desktop Tips -  Fig.3
Fix AVD Refreshing Your Token Error | Couldn’t Connect to Session Desktop | Azure Virtual Desktop Tips – Fig.3

Resources

We are on WhatsApp now. To get the latest step-by-step guides, news, and updates, Join our Channel. Click here – HTMD WhatsApp.

Author

Anoop C Nair has been Microsoft MVP for 10 consecutive years from 2015 onwards. He is a Workplace Solution Architect with more than 22+ years of experience in Workplace technologies. He is a Blogger, Speaker, and Local User Group Community leader. His primary focus is on Device Management technologies like SCCM and Intune. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security, Career, etc.

Written by

Anoop C Nair is Workplace Technology solution architect with 25+ years of experience in global enterprise organizations such as JP Morgan, Capgemini, etc. Microsoft Certified Trainer. Microsoft MVP from 2015 onwards for consecutive 11+ years! He also conducts Intune and modern workplace tech training for enterprise organizations. He is Blogger, Speaker, and Founder of HTMD Community and HTMD Conference. His main focus is on Device Management technologies like Intune, Windows, Cloud PC. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security.

Discussion

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

AVD

Windows 365 Frontline is Now Windows 365 Flex with No Change to Features or Licensing

Key Takeaways Windows 365 Frontline is Now Windows 365 Flex with No Change to Features or Licensing! Hey, let’s discuss about Windows 365 and Azure Virtual Desktop Expanding Access to Cloud Windows for Every Workstyle. The way people work is evolving, and so are cloud-delivered Windows solutions. From small businesses to enterprises and shift workers, […]

AC Anoop C Nair 4 min read
AVD

How RDP Multipath Improves Azure Virtual Desktop Connectivity Using Dynamic UDP Path Selection

Key Takeaways How RDP Multipath Improves Azure Virtual Desktop Connectivity Using Dynamic UDP Path Selection! RDP Multipath creates multiple connection paths between your device and the remote desktop instead of relying on just one. It continuously checks which path is performing best and automatically switches if one becomes slow or drops. This ensures a smoother […]

AC Anoop C Nair 4 min read
AVD

Resilient Connectivity Architecture with Multiple Service Instances in Azure

Key Takeaways Resilient Connectivity Architecture with Multiple Service Instances in Azure! This architecture helps IT administrators by providing a more reliable and scalable connectivity platform for cloud services. Because multiple service instances run independently within each region, the platform can continue operating even if one component fails. This reduces service disruptions and ensures that users […]

AC Anoop C Nair 3 min read