Skip to content

Commit a550d31

Browse files
Merge pull request #224518 from dknappettmsft/avd-uri-schemes
AVD URI schemes
2 parents 436ffce + 977ae7c commit a550d31

File tree

3 files changed

+102
-8
lines changed

3 files changed

+102
-8
lines changed

articles/virtual-desktop/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@
159159
href: compare-remote-desktop-clients.md
160160
- name: Supported RDP properties
161161
href: rdp-properties.md
162+
- name: Uniform Resource Identifier schemes
163+
href: uri-scheme.md
162164
- name: Multimedia redirection
163165
href: multimedia-redirection-intro.md
164166
- name: Printing using Universal Print
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
---
2+
title: Uniform Resource Identifier schemes with the Remote Desktop client for Azure Virtual Desktop (preview)
3+
description: Learn how to use Uniform Resource Identifier (URI) schemes with the Remote Desktop client to subscribe and connect to Azure Virtual Desktop
4+
ms.topic: conceptual
5+
author: dknappettmsft
6+
ms.author: daknappe
7+
ms.date: 01/19/2023
8+
---
9+
10+
# Uniform Resource Identifier schemes with the Remote Desktop client for Azure Virtual Desktop (preview)
11+
12+
> [!IMPORTANT]
13+
> The *ms-avd* Uniform Resource Identifier scheme for Azure Virtual Desktop is currently in PREVIEW.
14+
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
15+
16+
You can use Uniform Resource Identifier (URI) schemes to invoke the Remote Desktop client with specific commands, parameters, and values for use with Azure Virtual Desktop. For example, you can subscribe to a workspace or connect to a particular desktop or Remote App.
17+
18+
This article details the available commands and parameters, along with some examples.
19+
20+
## Supported clients
21+
22+
The following table lists the supported clients for use with the URI schemes:
23+
24+
| Client | Version |
25+
|--|--|
26+
| [Remote Desktop client for Windows](users/connect-windows.md) | 1.2.4065 and later |
27+
28+
## Available URI schemes
29+
30+
There are two URI schemes for supported Remote Desktop clients, *ms-avd* and *ms-rd*. With *ms-avd*, you can specify a particular Azure Virtual Desktop resource and user with which to connect. With *ms-rd*, you can automatically subscribe to a workspace in the Remote Desktop client, rather than having to manually add the workspace.
31+
32+
The following sections detail the commands and parameters you can use with each URI scheme.
33+
34+
### ms-avd
35+
36+
Here's the list of currently supported commands for *ms-avd* and their corresponding parameters.
37+
38+
#### ms-avd:connect
39+
40+
`ms-avd:connect` locates a specified Azure Virtual Desktop resource and initiates the RDP session, directly connecting a specified user to that resource.
41+
42+
> [!IMPORTANT]
43+
> The ms-avd:connect command is currently in preview and shouldn't be used in production.
44+
45+
**Command name:** connect
46+
47+
**Command parameters:**
48+
49+
| Parameter | Values | Description |
50+
|--|--|--|
51+
| workspaceid | Object ID (GUID). | Specify the object ID of a valid workspace.<br /><br />To get the object ID value using PowerShell, see [Retrieve the object ID of a host pool, workspace, application group, or application](powershell-module.md#retrieve-the-object-id-of-a-host-pool-workspace-application-group-or-application). You can also use [Desktop Virtualization REST APIs](/rest/api/desktopvirtualization). |
52+
| resourceid | Object ID (GUID). | Specify the object ID of a published resource contained in the workspace. The value can be for a desktop or Remote App.<br /><br />To get the object ID value using PowerShell, see [Retrieve the object ID of a host pool, workspace, application group, or application](powershell-module.md#retrieve-the-object-id-of-a-host-pool-workspace-application-group-or-application). You can also use [Desktop Virtualization REST APIs](/rest/api/desktopvirtualization). |
53+
| user | User Principal Name (UPN), for example `[email protected]`. | Specify a valid user with access to specified resource. |
54+
| env *(optional)* | **avdarm** (commercial Azure)<br />**avdgov** (Azure Government) | Specify the Azure cloud where resources are located. |
55+
| version | **0** | Specify the version of the connect URI scheme to use. |
56+
| launchpartnerid *(optional)*| GUID. | Specify the partner or customer-provided ID that you can use with [Azure Virtual Desktop Diagnostics](diagnostics-log-analytics.md) to help with troubleshooting. We recommend using a GUID, which you can generate with the [New-Guid](/powershell/module/microsoft.powershell.utility/new-guid) PowerShell cmdlet. |
57+
| peeractivityid *(optional)*| GUID. | Specify the partner or customer-provided ID that you can use with [Azure Virtual Desktop Diagnostics](diagnostics-log-analytics.md) to help with troubleshooting. We recommend using a GUID, which you can generate with the [New-Guid](/powershell/module/microsoft.powershell.utility/new-guid) PowerShell cmdlet. |
58+
59+
**Example:**
60+
```
61+
ms-avd:connect?workspaceId=1638e073-63b2-46d8-bd84-ea02ea905467&resourceid=c2f5facc-196f-46af-991e-a90f3252c185&[email protected]&version=0
62+
```
63+
64+
### ms-rd
65+
66+
Here's the list of currently supported commands for *ms-rd* and their corresponding parameters.
67+
68+
> [!TIP]
69+
> Using `ms-rd:` without any commands launches the Remote Desktop client.
70+
71+
#### ms-rd:subscribe
72+
73+
`ms-rd:subscribe` launches the Remote Desktop client and starts the subscription process.
74+
75+
**Command name:** subscribe
76+
77+
**Command parameters:**
78+
79+
| Parameter | Values | Description |
80+
|--|--|--|
81+
| url | A valid URL, such as <https://rdweb.wvd.microsoft.com>. | Specify a workspace URL. |
82+
83+
**Example:**
84+
85+
```
86+
ms-rd:subscribe?url=https://rdweb.wvd.microsoft.com
87+
```
88+
89+
## Known Limitations
90+
91+
Here are known limitations with the URI schemes:
92+
93+
- Display properties cannot be configured via URI. You can configure display properties as an admin [on a host pool](customize-rdp-properties.md) or end users can configure display properties in the [Azure Virtual Desktop client](users/remote-desktop-clients-overview.md).
94+
95+
96+
## Next steps
97+
98+
Learn how to [Connect to Azure Virtual Desktop with the Remote Desktop client for Windows](users/connect-windows.md?toc=%2Fazure%2Fvirtual-desktop%2Ftoc.json&bc=%2Fazure%2Fvirtual-desktop%2Fbreadcrumb%2Ftoc.json).

articles/virtual-desktop/users/client-features-windows.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -270,15 +270,9 @@ You can set the *AutomaticUpdates* registry key to one of the following values:
270270

271271
### URI to subscribe to a workspace
272272

273-
The Remote Desktop client for Windows supports the *ms-rd* Uniform Resource Identifier (URI) scheme. This enables you to use a link that users can help to automatically subscribe to a workspace, rather than them having to manually add the workspace in the Remote Desktop client.
273+
The Remote Desktop client for Windows supports the *ms-rd* and *ms-avd* (preview) Uniform Resource Identifier (URI) schemes. This enables you to invoke the Remote Desktop client with specific commands, parameters, and values for use with Azure Virtual Desktop. For example, you can subscribe to a workspace or connect to a particular desktop or Remote App.
274274

275-
To subscribe to a workspace with a link:
276-
277-
1. Open the following link in a web browser: `ms-rd:subscribe?url=https://rdweb.wvd.microsoft.com`.
278-
279-
1. If you see the prompt **This site is trying to open Microsoft Remote Desktop Connection Center**, select **Open**. The **Remote Desktop** application should open and automatically show a sign-in prompt.
280-
281-
1. Enter your user account, then select **Sign in**. After a few seconds, your workspaces should show the desktops and applications that have been made available to you by your admin.
275+
For more information and the available commands, see [Uniform Resource Identifier schemes with the Remote Desktop client for Azure Virtual Desktop](../uri-scheme.md?toc=%2Fazure%2Fvirtual-desktop%2Fusers%2Ftoc.json)
282276

283277
## Azure Virtual Desktop (HostApp)
284278

0 commit comments

Comments
 (0)