Connect directly to Azure Virtual Desktop with a direct launch URL


1. What is it?

Each Azure Virtual Desktop or Windows 365 resource (like your virtual desktop or remote app) can be opened directly in a web browser by clicking a special link. This link takes you straight into your desktop or app — no need to go through menus or click around in the Windows App interface. It just connects you automatically.

2. Prerequisites:

1. Microsoft Edge, Google Chrome, Apple Safari, and Mozilla Firefox are the supported browsers. Make sure they are up to date.
2.  The desktop or RemoteApp you define in the URL must be assigned to the user.



3. Create Direct Launch URL:

I prefer using Azure Cloud Shell to run the PowerShell commands below:

1. Get the object ID of the related workspace by running the following command:

$parameters = @{
    ResourceGroupName = "<ResourceGroupName>"
    Name              = "Workspace name>"
}
Get-AzWvdWorkspace @parameters | FT Name, FriendlyName, ObjectId


2. For a desktop, run the following command:

$parameters = @{
     ResourceGroupName      = "<ResourceGroupName>"
     ApplicationGroupName   = "<DAG-Name"
}
Get-AzWvdDesktop @parameters | FT Name, ObjectId

3.  For a RemoteApp, run the following command. All configured RemoteApps will appear here with their respective object IDs.

$parameters = @{
    ResourceGroupName      = "<ResourceGroupName>"
    ApplicationGroupName   = "<ApplicationGroupName>"
}
Get-AzWvdApplication @parameters | FT Name, ObjectId

4. Provide the URL to end users:

Once you have the object ID for the workspace and the desktop or RemoteApp, add the values to a URL in the following format. Open the link in a supported browser to connect.

https://windows365.microsoft.com/webclient/avd/<workspaceID>/<resourceID>

In my case, I am giving the user access to WordPad.

https://windows365.microsoft.com/webclient/avd/5730524a-04b7-423c-a97a-68b181a79e67/67b45378-a6d6-4d01-2aab-08dd9b5f23e1



Comments