Configure Managed DevOps Pools images

Important

Managed DevOps Pools is currently in PREVIEW. See the Supplemental Terms of Use for Microsoft Azure Previews for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.

Managed DevOps Pools provides you with several options for virtual machine images for running pipelines in your pool. You can create your pool using selected Azure Marketplace VM images, use your own custom Azure Compute Gallery images, or use the same images as Azure Pipelines Microsoft-hosted agents.

Managed DevOps Pools can be configured with a single image or multiple images. When your pool has multiple images, your pipelines specify the image they want to run on using aliases.

Choose your pool's image

A default image is selected when you create a Managed DevOps Pool. You can keep the default choice, or change it during pool creation. To configure the image after pool creation, go to Settings > Pool, choose Add from Image Library, and select one or more images for your pool.

Screenshot of configure image.

If you choose a single image, all pipelines run in your pool use that image. If you choose multiple images, you can specify the image to use on a per-pipeline basis. For more information, see Use multiple images per pool.

You can choose from the following types of images.

Azure Pipelines images

Managed DevOps Pools provides several preconfigured images that have the same software as selected Microsoft-hosted agents for Azure Pipelines.

Screenshot of Azure Pipelines images.

Each image includes the following installed software.

Image Included software
Azure Pipelines - Windows Server 2022 Included software
Azure Pipelines - Windows Server 2019 Included software
Azure Pipelines - Ubuntu 22.04 Included software
Azure Pipelines - Ubuntu 20.04 Included software

Selected marketplace images

Managed DevOps Pools provides a set of curated Microsoft published Azure Marketplace VM images for use in your pools.

Screenshot of selected marketplace images.

Choose Selected marketplace images, choose the desired image, and choose the desired version. Choose latest to always use the latest version of the image.

Choose Azure Compute Gallery images to specify an image from any Azure Compute Galleries that are available in your subscriptions. Generalized images with the following operating systems are supported.

  • Windows Server 2019
  • Windows Server 2022
  • Windows 11
  • Ubuntu 20.04
  • Ubuntu 22.04
  • Debian 9
  • RHEL 8
  • RHEL 9
  • SUSE 12
  • SUSE 15

Important

Managed DevOps Pools supports only generalized Azure Compute Gallery images.

Screenshot of Azure Compute Gallery images.

Grant Reader role access to the DevOpsInfrastructure Service Principal

Important

Assign the Reader role to the DevOpsInfrastructure Service Principal for the Azure Compute Gallery images you want to use. If you select an Azure Compute Gallery image that doesn't have this access configured, pool creation fails. You can assign the Reader role individually at the image level, or at the image gallery level for all images in the gallery.

  1. Go to the desired resource in the Azure Portal. To be able to use all images in a gallery, go to Azure Compute Gallery in the Azure portal. To use a specific image only, go to that image.

  2. Select Access control (IAM).

  3. Select Add > Add role assignment to open the Add role assignment page.

  4. Assign the following role. For detailed steps, see Assign Azure roles using the Azure portal.

    Setting Value
    Role Reader
    Assign access to Service Principal
    Members DevOpsInfrastructure

    Screenshot of Add role assignment.

Use multiple images per pool with aliases

If you have multiple images in your pool, you can configure your Azure DevOps pipeline to use a specific image by referencing an alias for that image.

Configure image aliases

To add and manage image aliases, go to the Images section of pool settings and choose ..., Add alias.

Screenshot of add alias menu option.

Add any desired aliases to the Alias list, and choose Save.

Screenshot of the alias pane.

The following example shows a pool with two Azure Pipelines images and one selected marketplace image. The Azure Pipeline images have their default aliases displayed, and the selected marketplace image has a single configured alias named ubuntu-20.04-gen2.

Screenshot of a pool with multiple images with aliases.

Azure Pipelines image predefined aliases

In addition to any aliases that you configure, Azure Pipelines images have the following predefined aliases.

Azure Pipelines image Predefined alias
Azure Pipelines - Windows Server 2022 windows-2022
Azure Pipelines - Windows Server 2019 windows-2019
Azure Pipelines - Ubuntu 22.04 ubuntu-22.04
Azure Pipelines - Ubuntu 20.04 ubuntu-20.04

Use demands to specify an image

If you have multiple images in your pool, you can configure a pipeline to run on a specific image by using a demand named ImageOverride. When you specify the ImageOverride demand in your pipeline, Managed DevOps Pools sends the job only to agents using that image.

To run a pipeline on the Ubuntu 20.04 image from the previous example that had an ubuntu-20.04-gen2 alias, specify the following demand in the pool section of your pipeline.

pool: 
  name: fabrikam-dev-pool # Name of Managed DevOps Pool
  demands:
  - ImageOverride -equals ubuntu-20.04-gen2

Important

Don't put quotes around the alias name in the ImageOverride demand, even if it has spaces in the name.

To run a pipeline using an Azure Pipelines image in your pool, use the alias in the previous table. To run a pipeline on the Azure Pipelines Windows Server 2022 image from the previous example, specify the following demand in the pool section of your pipeline.

pool: 
  name: fabrikam-dev-pool # Name of Managed DevOps Pool
  demands:
  - ImageOverride -equals windows-2022

See also