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
> The following features are currently in preview:
14
15
>
15
16
> - Azure Virtual Desktop on Azure Stack HCI for Azure Government and for Azure operated by 21Vianet (Azure in China).
17
+
>
16
18
> - Azure Virtual Desktop on Azure Extended Zones.
17
19
>
20
+
> - Managing session hosts using a session host configuration. This limited preview is provided as-is, with all faults and as available, and are excluded from the service-level agreements (SLAs) or any limited warranties Microsoft provides for Azure services in general availability.
21
+
>
18
22
> For legal terms that apply to Azure features that are in beta, in preview, or otherwise not yet released into general availability, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
19
23
20
24
After you create a host pool, a workspace, and an application group, you need to add session hosts to the host pool for your users to connect to. You might also need to add more session hosts for extra capacity.
21
25
22
-
You can create new virtual machines (VMs) to use as session hosts and add them to a host pool natively by using the Azure Virtual Desktop service in the Azure portal. Alternatively, you can create VMs outside the Azure Virtual Desktop service, such as using an automated pipeline, the Azure CLI, or Azure PowerShell, and then add them as session hosts to a host pool separately.
26
+
When you add session hosts to a host pool, the method you use depends on your [host pool's management approach](host-pool-management-approaches.md):
27
+
28
+
- For a host pool using a *session host configuration* (preview), you use the Azure portal to specify the number of session hosts you want to add, then Azure Virtual Desktop automatically creates them based on the [session host configuration](host-pool-management-approaches.md#session-host-configuration).
29
+
30
+
- For a host pool using standard management, you can create new virtual machines (VMs) to use as session hosts and add them to a host pool natively by using the Azure Virtual Desktop service in the Azure portal. Alternatively, you can create VMs outside the Azure Virtual Desktop service, such as using an automated pipeline, the Azure CLI, or Azure PowerShell, and then add them as session hosts to a host pool separately.
31
+
32
+
For Azure Stack HCI, you can create new VMs to use as session hosts and add them to a host pool natively by using the Azure Virtual Desktop service in the Azure portal. If you want to create the VMs outside the Azure Virtual Desktop service, follow the steps in [Create Azure Arc virtual machines on Azure Stack HCI](/azure-stack/hci/manage/create-arc-virtual-machines), and then add the VMs as session hosts to a host pool separately.
33
+
34
+
> [!TIP]
35
+
> Select a button at the top of this article to choose between host pools using standard management or host pools using session host configuration to see the relevant documentation.
23
36
24
-
For Azure Stack HCI, you can create new VMs to use as session hosts and add them to a host pool natively by using the Azure Virtual Desktop service in the Azure portal. If you want to create the VMs outside the Azure Virtual Desktop service, follow the steps in [Create Azure Arc virtual machines on Azure Stack HCI](/azure-stack/hci/manage/create-arc-virtual-machines), and then add the VMs as session hosts to a host pool separately.
37
+
::: zone pivot="host-pool-session-host-configuration"
38
+
This article shows you how to add session hosts to a host pool using the Azure portal. Azure PowerShell isn't available for adding session hosts to a host pool with a session host configuration.
39
+
::: zone-end
25
40
41
+
::: zone pivot="host-pool-standard"
26
42
This article shows you how to generate a registration key by using the Azure portal, the Azure CLI, or Azure PowerShell. It also shows you how to add session hosts to a host pool by using the Azure Virtual Desktop service or add them to a host pool separately.
43
+
::: zone-end
27
44
28
45
## Prerequisites
29
46
30
47
For a general idea of what's required, such as supported operating systems, virtual networks, and identity providers, review the [prerequisites for Azure Virtual Desktop](prerequisites.md). In addition:
31
48
32
-
- You need an existing host pool. You can't mix session hosts on Azure, Azure Stack HCI, or Azure Extended Zones in the same host pool.
49
+
::: zone pivot="host-pool-session-host-configuration"
50
+
- You need an existing host pool with a session host configuration.
51
+
::: zone-end
52
+
53
+
::: zone pivot="host-pool-standard"
54
+
- You need an existing host pool with standard management. Each host pool must only contain session hosts on Azure or on Azure Stack HCI. You can't mix session hosts on Azure and on Azure Stack HCI in the same host pool.
55
+
::: zone-end
33
56
34
57
- If you have existing session hosts in the host pool, make a note of the virtual machine size, the image, and name prefix that you used. All session hosts in a host pool should have the same configuration, including the same identity provider. For example, a host pool shouldn't contain some session hosts joined to Microsoft Entra ID and some session hosts joined to an Active Directory domain.
35
58
36
-
- The Azure account that you use must have the following built-in role-based access control (RBAC) roles as a minimum on the resource group:
59
+
::: zone pivot="host-pool-session-host-configuration"
60
+
- The Azure account you use must have the following built-in role-based access control (RBAC) roles or equivalent as a minimum on the resource group:
61
+
62
+
| Action | RBAC role |
63
+
|--|--|
64
+
| Create and add session hosts using the Azure portal |[Desktop Virtualization Host Pool Contributor](rbac.md#desktop-virtualization-host-pool-contributor)<br />[Virtual Machine Contributor](../role-based-access-control/built-in-roles.md#virtual-machine-contributor)|
65
+
66
+
::: zone-end
67
+
68
+
::: zone pivot="host-pool-standard"
69
+
- The Azure account you use must have the following built-in role-based access control (RBAC) roles or equivalent as a minimum on the resource group:
37
70
38
71
| Action | RBAC role or roles |
39
72
|--|--|
40
73
| Generate a registration key for the host pool |[Desktop Virtualization Host Pool Contributor](rbac.md#desktop-virtualization-host-pool-contributor)|
41
74
| Create and add session hosts by using the Azure portal (Azure and Azure Extended Zones) |[Desktop Virtualization Host Pool Contributor](rbac.md#desktop-virtualization-host-pool-contributor)<br />[Virtual Machine Contributor](../role-based-access-control/built-in-roles.md#virtual-machine-contributor)|
42
75
| Create and add session hosts by using the Azure portal (Azure Stack HCI) |[Desktop Virtualization Host Pool Contributor](rbac.md#desktop-virtualization-host-pool-contributor)<br />[Azure Stack HCI VM Contributor](/azure-stack/hci/manage/assign-vm-rbac-roles)|
43
76
44
-
Alternatively, you can assign the [Contributor](../role-based-access-control/built-in-roles.md#contributor) RBAC role.
45
-
46
77
- Don't disable [Windows Remote Management](/windows/win32/winrm/about-windows-remote-management) (WinRM) when you're creating and adding session hosts by using the Azure portal. [PowerShell DSC](/powershell/dsc/overview) requires it.
47
78
48
79
- To add session hosts on Azure Stack HCI, you also need:
@@ -66,15 +97,17 @@ For a general idea of what's required, such as supported operating systems, virt
66
97
- If you want to use the Azure CLI or Azure PowerShell locally, see [Use the 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) Azure PowerShell module installed. Alternatively, use [Azure Cloud Shell](../cloud-shell/overview.md).
67
98
68
99
> [!IMPORTANT]
69
-
> If you want to create Microsoft Entra joined session hosts, we support this action only if you use the Azure portal with the Azure Virtual Desktop service.
100
+
> If you want to create Microsoft Entra joined session hosts, we only support this using the [`AADLoginForWindows`](/entra/identity/devices/howto-vm-sign-in-azure-ad-windows) VM extension, which is added and configured automatically when using the Azure portal or ARM template with the Azure Virtual Desktop service.
101
+
::: zone-end
70
102
103
+
::: zone pivot="host-pool-standard"
71
104
## Generate a registration key
72
105
73
106
When you add session hosts to a host pool, first you need to generate a registration key for that host pool. A registration key authorizes session hosts to join the host pool. It's valid only for the duration that you specify.
74
107
75
108
To generate a registration key, select the relevant tab for your scenario and follow the steps.
76
109
77
-
# [Portal](#tab/portal)
110
+
# [Azure portal](#tab/portal)
78
111
79
112
Here's how to generate a registration key by using the Azure portal:
80
113
@@ -86,7 +119,7 @@ Here's how to generate a registration key by using the Azure portal:
86
119
87
120
1. On the host pool overview, select **Registration key**.
88
121
89
-
1. Select **Generate new key**, enter an expiration date and time, and then select **OK**.
122
+
1. Select **Generate new key**, enter an expiration date and time, and then select **OK**. The registration key is created.
90
123
91
124
1. Select **Download** to download a text file that contains the newly created registration key, or copy the registration key to your clipboard to use it later. You can also retrieve the registration key later by returning to the host pool overview.
92
125
@@ -95,6 +128,7 @@ Here's how to generate a registration key by using the Azure portal:
95
128
Here's how to generate a registration key by using the [Az.DesktopVirtualization](/powershell/module/az.desktopvirtualization) Azure PowerShell module. In the following examples, be sure to change the `<placeholder>` values for your own.
2. Use the `New-AzWvdRegistrationInfo` cmdlet by using the following example to generate a registration key that's valid for 24 hours.
99
133
100
134
```azurepowershell
@@ -142,7 +176,29 @@ Here's how to generate a registration key by using the [desktopvirtualization](/
142
176
```
143
177
144
178
---
179
+
:::zone-end
180
+
181
+
::: zone pivot="host-pool-session-host-configuration"
182
+
## Add session hosts
183
+
184
+
You can use the Azure portal to specify the number of session hosts you want to add, then Azure Virtual Desktop automatically creates them based on the session host configuration. You can't use PowerShell to add session hosts to a host pool with a session host configuration.
185
+
186
+
Here's how to add session hosts:
187
+
188
+
1. Sign in to the [Azure portal](https://portal.azure.com/).
189
+
190
+
1. In the search bar, type *Azure Virtual Desktop* and select the matching service entry.
191
+
192
+
1. Select **Host pools**, then select the name of the host pool you want to add session hosts to.
193
+
194
+
1. On the host pool overview, select **Session hosts**, then select **+ Add**.
195
+
196
+
1. For **Number of session hosts to be added**, enter the number of session hosts you want to create. If you want to review the session host configuration that is used, see **View session host configuration**. To edit the session host configuration, see [Schedule an update and edit session host configuration](session-host-update-configure.md#schedule-an-update-and-edit-a-session-host-configuration).
197
+
198
+
1. Select **Add**. The number of session hosts you entered is created and added to the host pool.
199
+
::: zone-end
145
200
201
+
::: zone pivot="host-pool-standard"
146
202
## Create and register session hosts with the Azure Virtual Desktop service
147
203
148
204
You can create session hosts and register them to a host pool in a single end-to-end process with the Azure Virtual Desktop service by using the Azure portal or an Azure Resource Manager template (ARM template). You can find some example ARM templates in [this GitHub repo](https://github.com/Azure/RDS-Templates/tree/master/ARM-wvd-templates).
@@ -257,7 +313,7 @@ Here's how to create session hosts and register them to a host pool by using the
257
313
258
314
If you created virtual machines by using an alternative method outside Azure Virtual Desktop, such as an automated pipeline, you need to register them separately as session hosts to a host pool.
259
315
260
-
To register session hosts to a host pool, you need to install the Azure Virtual Desktop Agent and the Azure Virtual Desktop Agent Bootloader on each virtual machine and use the registration key that you generated. You can register session hosts to a host pool by using the agent installers' graphical user interface (GUI) or by using `msiexec` from a command line.
316
+
To register session hosts to a host pool, you need to install the Azure Virtual Desktop Agent and the Azure Virtual Desktop Agent Boot Loader on each virtual machine and use the registration key that you generated. You can register session hosts to a host pool by using the agent installers' graphical user interface (GUI) or by using `msiexec` from a command line.
261
317
262
318
After you finish, four applications are listed as installed applications:
263
319
@@ -276,7 +332,7 @@ Select the relevant tab for your scenario and follow the steps.
276
332
277
333
1. Sign in to your virtual machine as an administrator.
278
334
279
-
1. Download the installation files for the agent and the agent boot loader by using the following links. If you need to unblock them, right-click each file, select **Properties**, select **Unblock**, and finally select **OK**.
335
+
1. Download the installation files for the Agent and the Agent Boot Loader by using the following links. If you need to unblock them, right-click each file, select **Properties**, select **Unblock**, and finally select **OK**.
@@ -304,13 +360,13 @@ You can use `msiexec` to install the agent and the boot loader from the command
304
360
305
361
1. Make sure the virtual machines that you want to use as session hosts are joined to Microsoft Entra ID or an Active Directory domain (Active Directory Domain Services or Microsoft Entra Domain Services).
306
362
307
-
1. If your virtual machines are running a Windows Server OS, you need to install the *Remote Desktop Session Host* role by running the following command as an administrator, which also restarts the virtual machines.
363
+
1. If your virtual machines are running a Windows Server OS, you need to install the *Remote Desktop Session Host* role by running the following PowerShell command as an administrator, which also restarts the virtual machines.
1. Download the installation files for the agent and the agent boot loader, and unblock them by running the following commands. The files are downloaded to the current working directory.
369
+
1. Download the installation files for the Agent and the Agent Boot Loader, and unblock them by running the following commands. The files are downloaded to the current working directory.
314
370
315
371
```powershell
316
372
$uris = @(
@@ -354,6 +410,7 @@ You can use `msiexec` to install the agent and the boot loader from the command
354
410
1. After the status of the session hosts is **Available**, restart the virtual machines.
0 commit comments