Edit

Share via


Configure storage

Do you want more disk space for your agents? Managed DevOps Pools supports attaching an empty data disk to the agents in your pool. When you attach a data disk, you can get more storage space without incurring the potentially greater cost of moving your virtual machine (VM) size to a more expensive size that has more built-in storage.

Attach an empty data disk

Configure the storage settings when you create your pool on the Storage tab. The default setting is no empty data disk.

Screenshot that shows how to configure a data disk when you create a pool.

To configure more storage for an existing pool, go to the pool in the Azure portal as described in the following steps:

  1. Sign in to the Azure portal.
  2. Search for Managed DevOps Pools and select it from the available options.
  3. Select your pool from the list.
  4. Go to Settings > Storage to configure the Empty data disk settings for your pool.

Screenshot that shows an empty data disk menu.

Configure the properties in the following table for your disk, and select Apply (or Next if you're creating a pool) to save your changes. You can add a single empty data disk configuration for your pool. All agent instances have an empty data disk attached that matches the configuration you specify.

To delete the data disk configuration for an existing pool, select Delete.

Configure the following properties for your attached data disk.

Property Description
Size (GiB) or diskSizeGiB Specify the size of your data disk. The maximum size depends on the storage type. For more information, see Disk type comparison.
Caching type Specify the caching type for your disk. Select from Default, None, ReadOnly, or ReadWrite. The default for data disks that support caching is ReadOnly. For more information, see Virtual machine and disk performance.
Storage type Select from the following storage types: Standard_LRS (default), Premium_LRS, StandardSSD_LRS, Premium_ZRS, or StandardSSD_ZRS. For more information about these types, see SKU types and Azure managed disk types.
Drive letter If you have any Windows agent images in your pool, choose a drive letter for your disk. If you don't specify a drive letter, F is used for VM sizes with a temporary disk. Otherwise, E is used. The drive letter must be a single letter except A, C, D, or E. If you're using a VM size without a temporary disk and want E as your drive letter, leave the Drive Letter field empty to get the default value of E. If you're configuring your storage by using an ARM template or an Azure CLI script, omit the drive letter parameter if you don't want a drive letter.

Use the data disk for your agent working directory

To configure your agents to use a working directory on the data disk, specify a folder from the data disk in a WorkFolder demand.

In the following example, the agent working directory on a Windows agent is configured to use a folder on an attached data disk with the drive letter F.

pool:
  name: fabrikam-managed-pool # Name of pool
  demands:
  - WorkFolder -equals f:\custom-work-folder # Windows agent example

For more information about how to configure the agent work directory, see Demands: WorkFolder.