Skip to content

Commit cda3c99

Browse files
Merge pull request #266385 from sipastak/avd-customize-feed
AVD customize feed format updates
2 parents d618be0 + a0eb1c7 commit cda3c99

File tree

2 files changed

+87
-96
lines changed

2 files changed

+87
-96
lines changed
Lines changed: 65 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Customize feed for Azure Virtual Desktop users - Azure
3-
description: How to customize feed for Azure Virtual Desktop users with PowerShell cmdlets.
3+
description: How to customize feed for Azure Virtual Desktop users using the Azure portal and PowerShell cmdlets.
44
author: Heidilohr
55
ms.topic: how-to
66
ms.date: 02/01/2024
@@ -16,115 +16,105 @@ You can customize the feed so the RemoteApp and remote desktop resources appear
1616

1717
## Prerequisites
1818

19-
This article assumes you've already downloaded and installed the Azure Virtual Desktop PowerShell module. If you haven't, follow the instructions in [Set up the PowerShell module](powershell-module.md).
19+
If you're using either the Azure portal or PowerShell method, you'll need the following things:
2020

21-
## Customize the display name for a session host
21+
- An Azure account assigned the [Desktop Virtualization Application Group Contributor](rbac.md#desktop-virtualization-application-group-contributor) role.
22+
- If you want to use Azure PowerShell locally, see [Use Azure CLI and Azure PowerShell with Azure Virtual Desktop](cli-powershell.md) to make sure you have the [Az.DesktopVirtualization](/powershell/module/az.desktopvirtualization) PowerShell module installed. Alternatively, use the [Azure Cloud Shell](../cloud-shell/overview.md).
2223

23-
You can change the display name for a remote desktop for your users by setting its session host friendly name. By default, the session host friendly name is empty, so users only see the app name. You can set the session host friendly name using REST API.
2424

25-
>[!NOTE]
26-
>The following instructions only apply to personal desktops, not pooled desktops. Also, personal host pools only allow and support desktop application groups.
25+
## Customize the display name for a RemoteApp or desktop
2726

28-
[!INCLUDE [include-session-hosts-friendly-name](includes/include-session-hosts-friendly-name.md)]
27+
You can change the display name for a published RemoteApp or desktop to make it easier for users to identify what to connect to.
2928

29+
#### [Azure portal](#tab/portal)
3030

31-
## Customize the display name for a RemoteApp
31+
Here's how to customize the display name for a published RemoteApp or desktop using the Azure portal.
3232

33-
You can change the display name for a published RemoteApp by setting the friendly name. By default, the friendly name is the same as the name of the RemoteApp program.
33+
1. Sign in to the [Azure portal](https://portal.azure.com).
3434

35-
To retrieve a list of published applications for an application group, run the following PowerShell cmdlet:
35+
2. Search for **Azure Virtual Desktop**.
3636

37-
```powershell
38-
Get-AzWvdApplication -ResourceGroupName <resourcegroupname> -ApplicationGroupName <appgroupname>
39-
```
37+
3. Under Services, select **Azure Virtual Desktop**.
4038

41-
To assign a friendly name to a RemoteApp, run the following cmdlet with the required parameters:
39+
4. On the Azure Virtual Desktop page, select **Application groups** on the left side of the screen, then select the name of the application group you want to edit.
4240

43-
```powershell
44-
Update-AzWvdApplication -ResourceGroupName <resourcegroupname> -ApplicationGroupName <appgroupname> -Name <applicationname> -FriendlyName <newfriendlyname>
45-
```
41+
5. Select **Applications** in the menu on the left side of the screen.
4642

47-
For example, let's say you retrieved the current applications with the following example cmdlet:
43+
6. Select the application you want to update, then enter a new **Display name**.
4844

49-
```powershell
50-
Get-AzWvdApplication -ResourceGroupName 0301RG -ApplicationGroupName 0301RAG | format-list
51-
```
45+
7. Select **Save**. The application you edited should now display the updated name. Users see the new name once their client refreshes.
5246

53-
The output would look like this:
5447

55-
```powershell
56-
CommandLineArgument :
57-
CommandLineSetting : DoNotAllow
58-
Description :
59-
FilePath : C:\Program Files\Windows NT\Accessories\wordpad.exe
60-
FriendlyName : Microsoft Word
61-
IconContent : {0, 0, 1, 0…}
62-
IconHash : --iom0PS6XLu-EMMlHWVW3F7LLsNt63Zz2K10RE0_64
63-
IconIndex : 0
64-
IconPath : C:\Program Files\Windows NT\Accessories\wordpad.exe
65-
Id : /subscriptions/<subid>/resourcegroups/0301RG/providers/Microsoft.DesktopVirtualization/applicationgroups/0301RAG/applications/Microsoft Word
66-
Name : 0301RAG/Microsoft Word
67-
ShowInPortal : False
68-
Type : Microsoft.DesktopVirtualization/applicationgroups/applications
69-
```
70-
To update the friendly name, run this cmdlet:
48+
### [Azure PowerShell](#tab/powershell)
7149

72-
```powershell
73-
Update-AzWvdApplication -GroupName 0301RAG -Name "Microsoft Word" -FriendlyName "WordUpdate" -ResourceGroupName 0301RG -IconIndex 0 -IconPath "C:\Program Files\Windows NT\Accessories\wordpad.exe" -ShowInPortal:$true -CommandLineSetting DoNotallow -FilePath "C:\Program Files\Windows NT\Accessories\wordpad.exe"
74-
```
50+
### Customize the display name for a RemoteApp
7551

76-
To confirm you've successfully updated the friendly name, run this cmdlet:
52+
Here's how to customize the display name for a RemoteApp using PowerShell. By default, the display name is the same as the name of the application identifier.
7753

78-
```powershell
79-
Get-AzWvdApplication -ResourceGroupName 0301RG -ApplicationGroupName 0301RAG | format-list FriendlyName
80-
```
54+
[!INCLUDE [include-cloud-shell-local-powershell](includes/include-cloud-shell-local-powershell.md)]
8155

82-
The cmdlet should give you the following output:
56+
2. To retrieve a list of published applications for an application group, run the following PowerShell cmdlet:
8357

84-
```powershell
85-
FriendlyName : WordUpdate
86-
```
58+
```azurepowershell
59+
$parameters = @{
60+
ResourceGroupName = "<resourcegroupname>"
61+
ApplicationGroupName = "<appgroupname>"
62+
}
8763
88-
## Customize the display name for a Remote Desktop
64+
Get-AzWvdApplication @parameters
65+
```
8966

90-
You can change the display name for a published remote desktop by setting a friendly name. If you manually created a host pool and desktop application group through PowerShell, the default friendly name is "Session Desktop." If you created a host pool and desktop application group through the GitHub Azure Resource Manager template or the Azure Marketplace offering, the default friendly name is the same as the host pool name.
67+
3. To assign a friendly name to a RemoteApp, run the following cmdlet with the required parameters:
9168

92-
To retrieve the remote desktop resource, run the following PowerShell cmdlet:
69+
```azurepowershell
70+
$parameters = @{
71+
ResourceGroupName = "<resourcegroupname>"
72+
ApplicationGroupName = "<appgroupname>"
73+
Name = "<applicationname>"
74+
FriendlyName = "<newfriendlyname>"
75+
}
9376
94-
```powershell
95-
Get-AzWvdDesktop -ResourceGroupName <resourcegroupname> -ApplicationGroupName <appgroupname> -Name <applicationname>
96-
```
77+
Update-AzWvdApplication @parameters
78+
```
9779

98-
To assign a friendly name to the remote desktop resource, run the following PowerShell cmdlet:
9980

100-
```powershell
101-
Update-AzWvdDesktop -ResourceGroupName <resourcegroupname> -ApplicationGroupName <appgroupname> -Name <applicationname> -FriendlyName <newfriendlyname>
102-
```
81+
### Customize the display name for a Remote Desktop
10382

104-
## Customize a display name in the Azure portal
83+
You can change the display name for a published remote desktop for all users by setting a friendly name. If you manually created a host pool and desktop application group through PowerShell, the default friendly name is **Session Desktop**. If you created a host pool and desktop application group through the GitHub Azure Resource Manager template or the Azure Marketplace offering, the default friendly name is the same as the host pool name. If you have a personal host pool, you can also [set a friendly name for individual session hosts](#set-a-friendly-name-for-an-individual-session-host-in-a-personal-host-pool).
10584

106-
You can change the display name for a published remote desktop by setting a friendly name using the Azure portal.
85+
[!INCLUDE [include-cloud-shell-local-powershell](includes/include-cloud-shell-local-powershell.md)]
10786

108-
1. Sign in to the [Azure portal](https://portal.azure.com).
87+
2. To assign a friendly name to the remote desktop resource, run the following PowerShell cmdlet:
10988

110-
2. Search for **Azure Virtual Desktop**.
89+
```azurepowershell
90+
$parameters = @{
91+
ResourceGroupName = "<resourcegroupname>"
92+
ApplicationGroupName = "<appgroupname>"
93+
Name = "<applicationname>"
94+
FriendlyName = "<newfriendlyname>"
95+
}
11196
112-
3. Under Services, select **Azure Virtual Desktop**.
97+
Update-AzWvdDesktop @parameters
98+
```
11399

114-
4. On the Azure Virtual Desktop page, select **Application groups** on the left side of the screen, then select the name of the application group you want to edit. (For example, if you want to edit the display name of the desktop application group, select the application group named **Desktop**.)
100+
3. To retrieve the friendly name for the remote desktop resource, run the following PowerShell cmdlet:
115101

116-
5. Select **Applications** in the menu on the left side of the screen.
102+
```azurepowershell
103+
$parameters = @{
104+
ResourceGroupName = "<resourcegroupname>"
105+
ApplicationGroupName = "<appgroupname>"
106+
Name = "<applicationname>"
107+
}
108+
109+
Get-AzWvdDesktop @parameters | FL ApplicationGroupName, Name, FriendlyName
110+
```
117111

118-
6. Select the application you want to update, then enter a new **Display name**.
112+
---
113+
114+
## Set a friendly name for an individual session host in a personal host pool
119115

120-
7. Select **Save**. The application you edited should now display the updated name.
116+
For session hosts in a personal host pool, you can change the display name for a desktop for each individual session host by setting its friendly name using PowerShell. By default, the session host friendly name is empty, so all users only see the same desktop display name. There isn't currently a way to set the session host friendly name in the Azure portal.
121117

122-
## Next steps
118+
[!INCLUDE [include-session-hosts-friendly-name](includes/include-session-hosts-friendly-name.md)]
123119

124-
Now that you've customized the feed for users, you can sign in to an Azure Virtual Desktop client to test it out. To do so, continue to the Connect to Azure Virtual Desktop How-tos:
125120

126-
* [Connect with Windows](./users/connect-windows.md)
127-
* [Connect with the web client](./users/connect-web.md)
128-
* [Connect with the Android client](./users/connect-android-chrome-os.md)
129-
* [Connect with the iOS client](./users/connect-ios-ipados.md)
130-
* [Connect with the macOS client](./users/connect-macos.md)

articles/virtual-desktop/includes/include-session-hosts-friendly-name.md

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,34 @@ ms.topic: include
55
ms.date: 01/30/2024
66
---
77

8-
Run the following command in PowerShell to add or change a session host's friendly name:
98

10-
```powershell
11-
$parameters = @{
12-
HostPoolName = 'HostPoolName'
13-
Name = 'SessionHostName'
14-
ResourceGroupName = 'ResourceGroupName'
15-
FriendlyName = 'SessionHostFriendlyName'
16-
}
9+
1. Launch the [Azure Cloud Shell](/azure/cloud-shell/overview) in the Azure portal with the *PowerShell* terminal type, or run PowerShell on your local device.
1710

18-
Update-AzWvdSessionHost @parameters
19-
```
11+
* If you're using Cloud Shell, make sure your [Azure context is set to the subscription you want to use](/powershell/azure/context-persistence).
2012

13+
* If you're using PowerShell locally, first [Sign in with Azure PowerShell](/powershell/azure/authenticate-azureps), then make sure your [Azure context is set to the subscription you want to use](/powershell/azure/context-persistence).
2114

15+
2. Run the following command in PowerShell to add or change a session host's friendly name:
2216

23-
### Get the session host friendly name
17+
```azurepowershell
18+
$parameters = @{
19+
HostPoolName = 'HostPoolName'
20+
Name = 'SessionHostName'
21+
ResourceGroupName = 'ResourceGroupName'
22+
FriendlyName = 'SessionHostFriendlyName'
23+
}
2424
25-
To get the session host friendly name, run the following command in PowerShell:
25+
Update-AzWvdSessionHost @parameters
26+
```
2627

27-
```powershell
28-
$sessionHostParams = @{
29-
HostPoolName = 'HostPoolName'
30-
Name = 'SessionHostName'
31-
ResourceGroupName = 'ResourceGroupName'
32-
}
28+
3. To get the session host friendly name, run the following command in PowerShell:
3329

34-
Get-AzWvdSessionHost @sessionHostParams | FL Name, AssignedUser, FriendlyName
35-
```
30+
```azurepowershell
31+
$sessionHostParams = @{
32+
HostPoolName = 'HostPoolName'
33+
Name = 'SessionHostName'
34+
ResourceGroupName = 'ResourceGroupName'
35+
}
3636
37-
There isn't currently a way to get the session host friendly name in the Azure portal.
37+
Get-AzWvdSessionHost @sessionHostParams | FL Name, AssignedUser, FriendlyName
38+
```

0 commit comments

Comments
 (0)