Microsoft Dev Box Team Customizations
Getting developers started on a new project or team can be complex and time-consuming. Microsoft Dev Box Team Customizations enables you to streamline developer environment setup. With Team Customizations, you can configure ready-to-code workstations with necessary applications, tools, repositories, code libraries, packages, and build scripts. Team Customizations allows you to define a shared Dev Box configuration for each of your development teams without having to invest in setting up an imaging solution like Packer or Azure virtual machine (VM) Image Templates. It provides a lightweight alternative that allows central platform engineering teams to delegate Dev Box configuration management to the teams that use them. Team Customizations also offers an in-built way of optimizing your team's Dev Box customizations by flattening them into a custom image using the same customization file, without the need to manage added infrastructure or maintain image templates.
Important
Dev Box Team Customizations are currently in PREVIEW. For more information about the preview status, see the Supplemental Terms of Use for Microsoft Azure Previews. The document defines legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
How does Dev Box Team Customizations work?
When you configure Dev Box Team Customizations for your organization, careful planning and informed decision-making are essential. The following diagram provides an overview of the process and highlights key decision points.
- Configure your dev center:
- Enable project-level catalogs.
- Assign permissions for Project Admins.
- Decide whether to use a catalog with custom reusable components:
- Dev center
- PowerShell or WinGet statements.
- Your own catalog
- Host in Azure Repos or GitHub.
- Add tasks.
- Attach to dev center or project.
- Dev center
- Create a team customizations file:
- Create a team customizations file called imagedefinition.yaml.
- Specify image in a dev box pool:
- Create or modify a dev box pool and specify imagedefinition.yaml as the image definition.
- Choose how you'll use the image definition:
- Optimize for team customization.
- Build each time you create a dev box.
- Create dev box:
- Create your dev box from the configured pool using the developer portal.
What is a customization file?
Dev Box customizations use a yaml formatted file to specify a list of tasks to apply from the catalog when creating a new dev box. These tasks identify the catalog task and provide parameters like the name of the software to install. The customization file is then made available to the developers creating new dev boxes.
You can use secrets from your Azure Key Vault in your customization file to clone private repositories, or with any custom task you author that requires an access token.
What are tasks?
Dev Box customization tasks are wrappers for PowerShell scripts, allowing you as a platform team to define reusable components that your teams can use in their customizations. WinGet and PowerShell are available as primitive tasks out of the box.
When creating tasks, determine which need to run in a SYSTEM context and which can run after sign-in, in a user context. Team customizations can be run in a SYSTEM context and in a user context (after sign-in). Individual customizations can only run in a user context.
Differences Between Team and Individual Customizations
Individual developers can attach a yaml-based customization file when creating their Dev Box to control the development environment on their Dev Box. Individual customizations should be used only for personal settings and apps. Tasks specified in the individual customization file run only in the user context, after sign-in. While teams of developers can share common yaml files, this approach can be inefficient and error-prone, and against compliance policies. Dev Box Team Customizations provides a workflow for developer team leaders, Project Admins, and dev center administrators to preconfigure customization files on Dev Box pools. This way, a developer creating a dev box doesn't need to find and upload a customization file for themselves.
Key terms
When working with Dev Box Team Customizations, you should be familiar with the following key terms:
- Catalog
- Can be stored in your code repository, or in a separate repository of customization files.
- Hosted on GitHub or Azure Repos.
- Attached to dev center or project to make tasks accessible to the developer team.
- Tasks
- Perform specific actions, like installing software.
- Consist of one or more PowerShell scripts and a task.yaml file.
- Customization file
- Yaml-based file defining tasks for dev boxes.
- When shared across a team, it's an image definition and specifies the base dev box image, along with its customization options.