You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -44,7 +44,7 @@ Before you can set custom RDP properties on a host pool, you need:
44
44
45
45
- An existing host pool.
46
46
47
-
- An Azure account assigned the [Desktop Virtualization Host Pool Contributor](rbac.md#desktop-virtualization-host-pool-contributor) role.
47
+
- An Azure account assigned the [Desktop Virtualization Host Pool Contributor](rbac.md#desktop-virtualization-host-pool-contributor) role or equivalent.
48
48
49
49
- If you want to use Azure CLI or Azure PowerShell locally, see [Use Azure CLI and Azure PowerShell with Azure Virtual Desktop](cli-powershell.md) to make sure you have the [desktopvirtualization](/cli/azure/desktopvirtualization) Azure CLI extension or the [Az.DesktopVirtualization](/powershell/module/az.desktopvirtualization) PowerShell module installed. Alternatively, use the [Azure Cloud Shell](../cloud-shell/overview.md).
50
50
@@ -54,23 +54,25 @@ Select the relevant tab for your scenario.
54
54
55
55
### [Azure portal](#tab/portal)
56
56
57
-
To configure RDP properties using the Azure portal:
57
+
Here's how to configure RDP properties using the Azure portal. For a full list of supported properties and values, see [Supported RDP properties with Azure Virtual Desktop](rdp-properties.md).
58
58
59
59
1. Sign in to the [Azure portal](https://portal.azure.com).
60
60
61
-
2. In the search bar, enter *Azure Virtual Desktop* and select the matching service entry.
61
+
1. In the search bar, enter *Azure Virtual Desktop* and select the matching service entry.
62
62
63
-
4. Select **Host pools**, then select the name of the host pool you want to update.
63
+
1. Select **Host pools**, then select the name of the host pool you want to update.
64
64
65
-
6. Select **RDP Properties**, then select the **Advanced** tab.
65
+
1. Select **RDP Properties**, then select the **Advanced** tab.
66
66
67
-
7. Add or make your changes to the RDP properties in a semicolon-separated format, like the default values already shown.
67
+
:::image type="content" source="media/customize-rdp-properties/rdp-properties-advanced.png" alt-text="A screenshot showing the advanced tab of RDP properties in the Azure portal.":::
68
68
69
-
8. When you're done, select **Save** to save your changes. Users need to refresh their resources to receive the changes.
69
+
1. Add extra RDP properties or make changes to the existing RDP properties in a semicolon-separated format, like the default values already shown.
70
+
71
+
1. When you're done, select **Save** to save your changes. Users need to refresh their resources to receive the changes.
70
72
71
73
### [Azure PowerShell](#tab/powershell)
72
74
73
-
To configure RDP properties using Azure PowerShell, use the following examples. Be sure to change the `<placeholder>` values for your own. For a full list of supported properties and values, see [Supported RDP properties with Azure Virtual Desktop](rdp-properties.md)
75
+
To configure RDP properties using Azure PowerShell, use the following examples. Be sure to change the `<placeholder>` values for your own. For a full list of supported properties and values, see [Supported RDP properties with Azure Virtual Desktop](rdp-properties.md).
Get-AzWvdHostPool -Name $hostPool -ResourceGroupName $resourceGroup | FT Name, CustomRdpProperty
118
+
```
120
119
121
120
The output should be similar to the following example:
122
121
@@ -125,149 +124,82 @@ To configure RDP properties using Azure PowerShell, use the following examples.
125
124
CustomRdpProperty : use multimon:i:1;redirectclipboard:i:0;redirectprinters:i:0;
126
125
```
127
126
127
+
4. Users need to refresh their resources to receive the changes.
128
+
128
129
### [Azure CLI](#tab/cli)
129
130
130
-
To configure RDP properties using Azure CLI, use the following examples. Be sure to change the `<placeholder>` values for your own. For a full list of supported properties and values, see [Supported RDP properties with Azure Virtual Desktop](rdp-properties.md)
131
+
To configure RDP properties using Azure CLI, use the following examples. Be sure to change the `<placeholder>` values for your own. For a full list of supported properties and values, see [Supported RDP properties with Azure Virtual Desktop](rdp-properties.md).
2. Use one of the following examples based on your requirements:
135
136
136
-
- To add custom RDP properties to a host pool and keep any existing custom properties already set, run the following commands. RDP properties need to be written in a semi-colon-separated format. This example adds disabling clipboard and printer redirection:
137
+
- To add custom RDP properties to a host pool and keep any existing custom properties already set, run the following commands. RDP properties need to be written in a semi-colon-separated format. This example adds disabling clipboard and printer redirection to the existing custom properties:
- To replace all existing custom properties with a new set of custom RDP properties, run the following command. This example only sets disabling clipboard and printer redirection:
- To remove all custom RDP properties from a host pool, run the following command. This example passes an empty string to the `--custom-rdp-property` parameter:
170
171
171
172
```azurecli
173
+
hostPool="<HostPoolName>"
174
+
resourceGroup="<ResourceGroupName>"
175
+
172
176
az desktopvirtualization hostpool update \
173
-
--name <HostPoolName> \
174
-
--resource-group <ResourceGroupName> \
177
+
--name $hostPool \
178
+
--resource-group $resourceGroup \
175
179
--custom-rdp-property ""
176
180
```
177
181
178
-
179
-
3. Check the custom RDP properties set on a host pool by running the following command:
180
-
181
-
```azurecli
182
-
az desktopvirtualization hostpool show \
183
-
--name <HostPoolName> \
184
-
--resource-group <ResourceGroupName> \
185
-
--query [customRdpProperty] \
186
-
--output tsv
187
-
```
188
-
189
-
The output should be similar to the following example:
190
-
191
-
```output
192
-
Name : contoso-hp01
193
-
CustomRdpProperty : use multimon:i:1;redirectclipboard:i:0;redirectprinters:i:0;
194
-
```
195
-
196
-
197
-
198
-
199
-
TODO: UPDATE ARTICLE FILENAME/TOC/REDIRECTION
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
To edit custom RDP properties manually in Azure CLI:
218
-
219
-
### Add or edit multiple custom RDP properties
220
-
221
-
To add or edit multiple custom RDP properties in Azure CLI:
2. Run the following cmdlets by providing the custom RDP property:
226
-
227
-
228
-
```azurecli
229
-
az desktopvirtualization hostpool update \
230
-
--resource-group $resourceGroupName \
231
-
--name $hostPoolName \
232
-
--custom-rdp-property $rdpProperty
233
-
```
234
-
235
-
3. You can check to make sure the RDP property was added by running the following cmdlet:
182
+
3. Check the custom RDP properties set on the same host pool by running the following command:
236
183
237
184
```azurecli
238
185
az desktopvirtualization hostpool show \
239
-
--resource-group $resourceGroupName \
240
-
--name $hostPoolName
241
-
```
242
-
243
-
>[!IMPORTANT]
244
-
>- A null CustomRdpProperty field will apply all default RDP properties to your host pool. An empty CustomRdpProperty field won't apply any default RDP properties to your host pool.
245
-
246
-
### Remove all RDP properties
247
-
248
-
To remove all custom RDP properties:
249
-
250
-
1. You can remove all custom RDP properties for a host pool by running the following Azure CLI cmdlet:
0 commit comments