Skip to content

Commit 7d51423

Browse files
Merge pull request #299379 from RoseHJM/mdb-serverless-gpu
MDB - serverless GPU
2 parents f2890b2 + a6e8030 commit 7d51423

File tree

4 files changed

+95
-0
lines changed

4 files changed

+95
-0
lines changed
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
---
2+
title: Serverless GPU Compute in Microsoft Dev Box
3+
description: Learn about serverless GPU compute in Microsoft Dev Box, how it works, benefits for developers and organizations, and key use cases.
4+
ms.service: dev-box
5+
ms.topic: how-to
6+
ms.date: 05/05/2025
7+
author: RoseHJM
8+
ms.author: rosemalcolm
9+
ai-usage: ai-generated
10+
11+
#customer intent: As a business decision-maker, I want to evaluate serverless GPU compute in Dev Box so that I can determine its value for my team's workflows.
12+
---
13+
14+
# Use serverless GPU compute in Microsoft Dev Box
15+
16+
This article explains what serverless GPU compute is, how it works, and key scenarios for its use. Serverless GPU compute in Microsoft Dev Box (preview) lets you spin up dev boxes with GPU acceleration—no extra setup needed. Dev Box serverless GPU compute lets developers use GPU resources on demand without permanent infrastructure or complex setup.
17+
18+
Common scenarios for serverless GPU compute include compute-intensive workloads like AI model training, inference, and data processing. Serverless GPU compute lets you:
19+
20+
- Use GPU resources only when you need them
21+
- Scale GPU resources based on workload demands
22+
- Pay only for the GPU time you use
23+
- Work in your organization's secure network environment
24+
25+
This capability integrates Microsoft Dev Box with Azure Container Apps to deliver GPU power without requiring developers to manage infrastructure.
26+
27+
Serverless GPU compute in Dev Box uses Azure Container Apps (ACA). When a developer starts a GPU-enabled shell or tool, Dev Box automatically:
28+
29+
- Creates a connection to a serverless GPU session
30+
- Provisions the necessary GPU resources
31+
- Makes those resources available through the developer's terminal or integrated development environment
32+
- Automatically terminates the session when no longer needed
33+
34+
## Prerequisites
35+
- An Azure subscription
36+
- A Microsoft Dev Box project
37+
38+
## Configure serverless GPU
39+
40+
Administrators control serverless GPU access at the project level through Dev Center. Key management capabilities include:
41+
42+
- **Enable/disable GPU access**: Control whether projects can use serverless GPU resources.
43+
- **Set concurrent GPU limits**: Set the maximum number of GPUs that can be used at the same time in a project.
44+
45+
Access to serverless GPU resources is managed through project-level properties. When the serverless GPU feature is enabled for a project, all Dev Boxes in that project can use GPU compute. This simple access model removes the need for custom roles or pool-based configurations.
46+
47+
### Register serverless GPU for the subscription
48+
49+
1. Sign in to the [Azure portal](https://portal.azure.com).
50+
1. Navigate to your subscription.
51+
1. Select **Settings** > **Preview features**.
52+
1. Select **Dev Box Serverless GPU Preview**, and then select **Register**.
53+
:::image type="content" source="media/how-to-configure-dev-box-serverless-gpu/serverless-gpu-register-subscription.png" alt-text="Screenshot of the Azure subscription page, showing the Dev Box Serverless GPU Preview feature." lightbox="media/how-to-configure-dev-box-serverless-gpu/serverless-gpu-register-subscription.png":::
54+
55+
### Enable serverless GPU for a project
56+
57+
1. Go to your project.
58+
1. Select **Settings** > **Dev box settings**.
59+
1. Under **AI workloads**, select **Enable**, and then select **Apply**.
60+
:::image type="content" source="media/how-to-configure-dev-box-serverless-gpu/serverless-gpu-project-settings.png" alt-text="Screenshot of the dev box settings page, showing the Serverless GPU option Enabled." lightbox="media/how-to-configure-dev-box-serverless-gpu/serverless-gpu-project-settings.png":::
61+
62+
## Connect to a GPU
63+
64+
After you enable serverless GPU, Dev Box users in that project see GPU options in their terminal and VS Code environments.
65+
66+
You can connect using one of these methods:
67+
68+
### Method 1: Launch a Dev Box GPU shell
69+
70+
1. Open Windows Terminal on your dev box.
71+
1. Run the following command:
72+
```bash
73+
devbox gpu shell
74+
```
75+
1. Connects you to a preconfigured GPU container.
76+
77+
### Method 2: Use VS Code with remote tunnels
78+
79+
1. Open Windows Terminal on your dev box.
80+
1. Run the following command:
81+
```bash
82+
devbox gpu shell
83+
```
84+
1. Launch Visual Studio Code.
85+
1. Install the [Remote Tunnels extension](https://code.visualstudio.com/docs/remote/tunnels#_remote-tunnels-extension).
86+
1. Connect to the **gpu-session** tunnel.
87+
88+
## Related content
89+
90+
- [Supercharge AI development with new AI-powered features in Microsoft Dev Box](https://aka.ms/devbox/serverlessGPU)
91+
- [Learn more about Azure Container Apps serverless GPU](/azure/container-apps/sessions-code-interpreter)
68.1 KB
Loading
143 KB
Loading

articles/dev-box/toc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ items:
104104
href: how-to-create-dev-boxes-developer-portal.md#configure-multiple-monitors
105105
- name: Connect to a dev box with a dev tunnel
106106
href: how-to-set-up-dev-tunnels.md
107+
- name: AI on Dev Box
108+
items:
109+
- name: Configure Serverless GPU
110+
href: how-to-configure-dev-box-serverless-gpu.md
107111
- name: Security
108112
items:
109113
- name: Provide access to project admins

0 commit comments

Comments
 (0)