Skip to content

Commit f95068b

Browse files
authored
Merge pull request #300318 from agacadsioson/patch-1
Update GPU accel article for HEVC GA (Req'd Publish Date = 20250605)
2 parents 5ce1b87 + 6a79807 commit f95068b

File tree

1 file changed

+50
-34
lines changed

1 file changed

+50
-34
lines changed

articles/virtual-desktop/graphics-enable-gpu-acceleration.md

Lines changed: 50 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,23 @@ description: Learn how to enable GPU-accelerated rendering and encoding, includi
44
ms.topic: how-to
55
author: dougeby
66
ms.author: avdcontent
7-
ms.date: 09/19/2024
7+
ms.date: 05/28/2025
88
---
99

1010
# Enable GPU acceleration for Azure Virtual Desktop
1111

12-
> [!IMPORTANT]
13-
> High Efficiency Video Coding (H.265) hardware acceleration is currently in preview. 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.
14-
1512
Azure Virtual Desktop supports graphics processing unit (GPU) acceleration in rendering and encoding for improved app performance and scalability using the Remote Desktop Protocol (RDP). GPU acceleration is crucial for graphics-intensive applications, such as those used by graphic designers, video editors, 3D modelers, data analysts, or visualization specialists.
1613

1714
There are three components to GPU acceleration in Azure Virtual Desktop that work together to improve the user experience:
1815

1916
- **GPU-accelerated application rendering**: Use the GPU to render graphics in a remote session.
2017

21-
- **GPU-accelerated frame encoding**: The Remote Desktop Protocol encodes all graphics rendered for transmission to the local device. When part of the screen is frequently updated, it's encoded with the Advanced Video Coding (AVC) video codec, also known as H.264.
22-
23-
- **Full-screen video encoding**: A full-screen video profile provides a higher frame rate and better user experience, but uses more network bandwidth and both session host and client resources. It benefits applications such as 3D modeling, CAD/CAM, or video playback and editing. You can choose to encode it with:
24-
- AVC/H.264.
25-
- High Efficiency Video Coding (HEVC), also known as H.265. This allows for 25-50% data compression compared to AVC/H.264, at the same video quality or improved quality at the same bitrate.
18+
- **GPU-accelerated remote frame encoding**: The Remote Desktop Protocol encodes all graphics rendered for transmission to the local device. GPU-accelerated remote frame encoding uses the GPU to encode the rendered graphics frames to provide higher frame rates and better user experiences, although this feature may consume more network bandwidth and both session host and client resources. This benefits applications such as 3D modeling, CAD/CAM, or video playback and editing. You can choose to encode with:
19+
- AVC/H.264
20+
- Hight Efficiency Video Coding (HEVC), also known as H.265. This allows for 25-50% better data compression compared to AVC/H.264, at the same video quality or improved quality at the same bitrate.
2621

2722
> [!NOTE]
28-
> - If you enable both HEVC/H.265 and AVC/H.264 hardware acceleration, but HEVC/H.265 isn't available on the local device, AVC/H.264 is used instead.
23+
> - If you enable both HEVC/H.265 and AVC/H.264 hardware acceleration, but the HEVC/H.265 codec isn't available on the local device or your environment does not meet the prerequisites for HEVC/H.265, AVC/H.264 is used instead.
2924
>
3025
> - You can enable full-screen video encoding with AVC/H.264 even without GPU acceleration, but HEVC/H.265 requires a compatible GPU-enabled remote virtual machine.
3126
>
@@ -37,12 +32,12 @@ This article shows you which Azure VM sizes you can use as a session host with G
3732

3833
The following table lists which Azure VM sizes are optimized for GPU acceleration and supported as session hosts in Azure Virtual Desktop:
3934

40-
| Azure VM size | GPU-accelerated application rendering | GPU-accelerated frame encoding | Full-screen video encoding |
41-
|--|--|--|--|
42-
| [NVv3-series](/azure/virtual-machines/nvv3-series) | Supported | AVC/H.264 | HEVC/H.265<br />AVC/H.264 |
43-
| [NVv4-series](/azure/virtual-machines/nvv4-series) | Supported | Not available | Supported |
44-
| [NVadsA10 v5-series](/azure/virtual-machines/nva10v5-series) | Supported | AVC/H.264 | HEVC/H.265<br />AVC/H.264 |
45-
| [NCasT4_v3-series](/azure/virtual-machines/nct4-v3-series) | Supported | AVC/H.264 | HEVC/H.265<br />AVC/H.264 |
35+
| Azure VM size | GPU-accelerated application rendering | GPU-accelerated remote frame encoding |
36+
|--|--|--|
37+
| [NVv3-series](/azure/virtual-machines/nvv3-series) | Supported | HEVC/H.265<br />AVC/H.264 |
38+
| [NVv4-series](/azure/virtual-machines/nvv4-series) | Supported | AVC/H.264 |
39+
| [NVadsA10 v5-series](/azure/virtual-machines/nva10v5-series) | Supported | HEVC/H.265<br />AVC/H.264 |
40+
| [NCasT4_v3-series](/azure/virtual-machines/nct4-v3-series) | Supported | HEVC/H.265<br />AVC/H.264 |
4641

4742
The right choice of VM size depends on many factors, including your particular application workloads, desired quality of user experience, and cost. In general, larger and more capable GPUs offer a better user experience at a given user density. Smaller and fractional GPU sizes allow more fine-grained control over cost and quality.
4843

@@ -86,11 +81,14 @@ In addition, for HEVC/H.265 hardware acceleration you also need:
8681
- [AMD](https://www.amd.com/en/products/specifications/graphics.html)
8782
- [Intel](https://www.intel.com/content/www/us/en/docs/onevpl/developer-reference-media-intel-hardware/1-0/overview.html#DECODE-SUPPORT)
8883

89-
- Microsoft HEVC codec installed. The Microsoft HEVC codec is included in clean installs of Windows 11 22H2 or later. You can also [purchase the Microsoft HEVC codec from the Microsoft Store](https://www.microsoft.com/store/productid/9NMZLZ57R3T7?ocid=pdpshare).
84+
- Microsoft HEVC codec installed. This can be obtained 1 of 3 ways:
85+
- The Microsoft HEVC codec is included in new installations of Windows 11 22H2 or later.
86+
- You can [purchase the Microsoft HEVC codec from the Microsoft Store](https://www.microsoft.com/store/productid/9NMZLZ57R3T7?ocid=pdpshare).
87+
- If you are using Windows App version 2.0.503.0 or later and don't already have the Microsoft HEVC codec installed, the app attempts to install a specialized version of the HEVC codec compatible only with remote sessions initiated through Windows App. Note that this method requires access to the Microsoft Store.
9088

9189
- One of the following apps to connect to a remote session. Other platforms and versions aren't supported.
92-
- Windows App on Windows, version 1.3.278.0 or later.
93-
- Remote Desktop app on Windows, version 1.2.4671.0 or later.
90+
- Windows App on Windows, version 2.0.503.0 or later.
91+
- Remote Desktop app on Windows, version 1.2.6081 or later.
9492

9593
## Install supported graphics drivers in your session hosts
9694

@@ -107,17 +105,17 @@ When installing drivers, here are some important guidelines:
107105

108106
- For VMs sizes with an AMD GPU, install the AMD drivers that Azure provides. To download and learn how to install the driver, see [Install AMD GPU drivers on N-series VMs running Windows](/azure/virtual-machines/windows/n-series-amd-driver-setup).
109107

110-
## Enable GPU-accelerated application rendering, frame encoding, and full-screen video encoding
108+
## Enable GPU-accelerated application rendering and remote frame encoding
111109

112-
By default, remote sessions are rendered with the CPU and don't use available GPUs. You can enable GPU-accelerated application rendering, frame encoding, and full-screen video encoding using Microsoft Intune or Group Policy.
110+
By default, Azure Virtual Desktop remote sessions are rendered with the CPU and don't use available GPUs. You can enable GPU-accelerated application rendering, and remote frame encoding using Microsoft Intune or Group Policy.
111+
112+
> [!IMPORTANT]
113+
> If settings for GPU-acceleration using both H.264/AVC and H.265/HEVC are enabled, H.265/HEVC is prioritized for compatible remote sessions.
113114
114115
Select the relevant tab for your scenario.
115116

116117
# [Microsoft Intune](#tab/intune)
117118

118-
> [!IMPORTANT]
119-
> HEVC/H.265 hardware acceleration isn't available in the Intune Settings Catalog yet.
120-
121119
To enable GPU-accelerated application rendering using Intune:
122120

123121
1. Sign in to the [Microsoft Intune admin center](https://endpoint.microsoft.com/).
@@ -128,21 +126,30 @@ To enable GPU-accelerated application rendering using Intune:
128126

129127
:::image type="content" source="media/enable-gpu-acceleration/remote-session-environment-intune.png" alt-text="A screenshot showing the redirection options in the Microsoft Intune portal." lightbox="media/enable-gpu-acceleration/remote-session-environment-intune.png":::
130128

131-
1. Select the following settings, then close the settings picker:
129+
1. Select the following settings:
132130

133131
1. For GPU-accelerated application rendering, check the box for **Use hardware graphics adapters for all Remote Desktop Services sessions**.
134132

135-
1. For GPU accelerated frame encoding, check the box for **Configure H.264/AVC hardware encoding for Remote Desktop connections**.
133+
1. For GPU-accelerated remote frame encoding using H.264/AVC:
134+
1. Check the box for **Prioritize H.264/AVC 444 Graphics mode for Remote Desktop connections**.
135+
1. Check the box for **Configure H.264/AVC hardware encoding for Remote Desktop connections**.
136+
137+
> [!NOTE]
138+
> Checking the box to **Prioritize H.264 Graphics mode** without checking the box to **Configure hardware encoding** can result in software/CPU-based H.264/AVC full-screen video encoding.
139+
140+
1. For GPU-accelerated remote frame encoding using H.265/HEVC, browse to **Administrative templates** > **Windows Components** > **Remote Desktop Services** > **Remote Desktop Session Host** > **Azure Virtual Desktop** in the settings picker.
136141

137-
1. For full-screen video encoding, check the box for **Prioritize H.264/AVC 444 Graphics mode for Remote Desktop connections**.
142+
1. To enable GPU-accelerated remote frame encoding using H.265/HEVC Check the box for **Configure H.265/HEVC hardware encoding for Remote Desktop Connections**, then close the settings picker.
138143

139144
1. Expand the **Administrative templates** category, then set toggle the switch for each setting as follows:
140145

141146
1. For GPU-accelerated application rendering, set **Use hardware graphics adapters for all Remote Desktop Services sessions** to **Enabled**.
142147

143-
1. For GPU accelerated frame encoding, set **Configure H.264/AVC hardware encoding for Remote Desktop connections** to **Enabled**.
148+
1. For GPU-accelerated remote frame encoding using H.264/AVC, set **Configure H.264/AVC hardware encoding for Remote Desktop connections** to **Enabled**.
144149

145150
1. For full-screen video encoding, set **Prioritize H.264/AVC 444 Graphics mode for Remote Desktop connections** to **Enabled**.
151+
152+
1. For GPU-accelerated remote frame encoding using H.265/HEVC set **Configure H.265/HEVC hardware encoding for Remote Desktop Connections** to **Enabled**.
146153

147154
1. Select **Next**.
148155

@@ -170,11 +177,14 @@ To enable GPU-accelerated application rendering using Group Policy:
170177

171178
1. For GPU-accelerated application rendering, double-click the policy setting **Use hardware graphics adapters for all Remote Desktop Services sessions** to open it. Select **Enabled**, then select **OK**.
172179

173-
1. For GPU accelerated frame encoding, double-click the policy setting **Configure H.264/AVC hardware encoding for Remote Desktop Connections** to open it. Select **Enabled**, then select **OK**. If you're using Windows Server 2016, you see an extra drop-down menu in the setting; set **Prefer AVC Hardware Encoding** to **Always attempt**.
180+
1. For GPU-accelerated remote frame encoding using H.264/AVC:
181+
1. Double-click the policy setting **Prioritize H.264/AVC 444 Graphics mode for Remote Desktop connections** to open it. Select **Enabled**, then select **OK**.
182+
1. Double-click the policy setting **Configure H.264/AVC hardware encoding for Remote Desktop Connections** to open it. Select **Enabled**, then select **OK**. If you're using Windows Server 2016, you see an extra drop-down menu in the setting; set **Prefer AVC Hardware Encoding** to **Always attempt**.
174183

175-
1. For full-screen video encoding using AVC/H.264 only, double-click the policy setting **Prioritize H.264/AVC 444 Graphics mode for Remote Desktop connections** to open it. Select **Enabled**, then select **OK**.
184+
> [!NOTE]
185+
> Enabling the policy setting to **Prioritize H.264 Graphics mode** without checking the box to **Configure hardware encoding** can result in software/CPU-based H.264/AVC full-screen video encoding.
176186
177-
1. For full-screen video encoding using HEVC/H.265 only, navigate to **Computer Configuration** > **Policies** > **Administrative Templates** > **Windows Components** > **Remote Desktop Services** > **Remote Desktop Session Host** > **Azure Virtual Desktop**.
187+
1. For GPU-accelerated remote frame encoding using HEVC/H.265 only, navigate to **Computer Configuration** > **Policies** > **Administrative Templates** > **Windows Components** > **Remote Desktop Services** > **Remote Desktop Session Host** > **Azure Virtual Desktop**.
178188

179189
:::image type="content" source="media/administrative-template/azure-virtual-desktop-gpo.png" alt-text="A screenshot showing the Azure Virtual Desktop options in Group Policy." lightbox="media/administrative-template/azure-virtual-desktop-gpo.png":::
180190

@@ -217,7 +227,13 @@ To verify that a remote session is using GPU acceleration, GPU-accelerated appli
217227
> [!TIP]
218228
> For NVIDIA GPUs, you can also use the `nvidia-smi` utility to check for GPU utilization when running your application. For more information, see [Verify driver installation](/azure/virtual-machines/windows/n-series-driver-setup#verify-driver-installation).
219229
220-
1. Open Event Viewer from the start menu, or run `eventvwr.msc` from the command line.
230+
1. To verify GPU-accelerated full-screen encoding using HEVC/H.265 you can open the **Connection Information** window from your session.
231+
232+
1. If your session is in full-screen mode, select the signal strength icon in the RDP connection bar at the top of your session window. If your session is in windowed mode, right-click on the top of the window and select **Connection Information** from the context menu.
233+
234+
1. Select **"See details"** to expand the window with additional information. If you see **Codecs Used: HEVC** under **Graphics details**, then GPU-accelerated frame encoding with HEVC/H.265 and full-screen video encoding is in use.
235+
236+
1. You can use Event Viewer to verify GPU acceleration with either AVC/H.264 or HEVC/H.265. To do so, open **Event Viewer** from the Start menu, or run `eventvwr.msc` from the command line.
221237
222238
1. Navigate to one of the following locations:
223239
@@ -230,8 +246,8 @@ To verify that a remote session is using GPU acceleration, GPU-accelerated appli
230246
- **Event ID 170**: If you see **AVC hardware encoder enabled: 1** in the event text, GPU-accelerated frame encoding is in use.
231247
232248
- **Event ID 162**:
233-
- If you see **AVC available: 1, Initial Profile: 2048** in the event text, GPU-accelerated frame encoding with AVC/H.264 and full-screen video encoding is in use.
234-
- If you see **AVC available: 1, Initial Profile: 32768** in the event text, GPU-accelerated frame encoding with HEVC/H.265 is in use.
249+
- If you see **Avc444FullScreenProfile** in the event text, GPU-accelerated frame encoding with AVC/H.264 and full-screen video encoding is in use.
250+
- If you see **HevcProfile** in the event text, GPU-accelerated frame encoding with HEVC/H.265 and full-screen video encoding is in use.
235251
236252
## Related content
237253

0 commit comments

Comments
 (0)