How to Logout After Logging in Using ms-avd:connect Command (Remote Desktop Client)?

DILIP KUMAR 20 Reputation points
2025-01-22T06:19:42.7633333+00:00

I am using the following command to connect to Azure Virtual Desktop (AVD):

ms-avd:connect?workspaceId=1638e073-63b2-46d8-bd84-ea02ea905467&resourceid=a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1&username=user@contoso.com&version=0

When I run this command, it opens a Microsoft login window asking for a password. After entering the credentials, it successfully logs in and launches the app.

However, if I run the command again, it does not ask for the password and directly connects. This indicates that some login information is cached or stored.

My questions are:

  1. Where is this login information stored?
  2. How can I log out completely or clear this cached login so that the system asks for credentials again on the next attempt?

I have tried checking Windows Credential Manager and clearing browser cookies, but the behavior persists.

Any guidance on how to fully log out or clear the stored session for the ms-avd:connect command would be 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,666 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.