|
| 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). |
0 commit comments