Deploy an Azure disk pool (preview)

This article covers how to deploy and configure an Azure disk pool (preview). Before deploying a disk pool, read the conceptual and planning articles.

For a disk pool to work correctly, you must complete the following steps:

  • Register your subscription for the preview.
  • Delegate a subnet to your disk pool.
  • Assign the resource provider of disk pool role-based access control (RBAC) permissions for managing your disk resources.
  • Create the disk pool.
    • Add disks to your disk pool.

Prerequisites

To successfully deploy a disk pool, you must have:

  • A set of managed disks you want to add to a disk pool.
  • A virtual network with a dedicated subnet deployed for your disk pool.
    • Outbound ports 53, 443, and 5671 must be open.
    • Ensure that your network setting don't block any of your disk pool's required outbound dependencies. You can use either the Azure PowerShell module or Azure CLI to get the complete list of all outbound dependencies.

If you're going to use the Azure PowerShell module, install version 6.1.0 or newer.

If you're going to use the Azure CLI, install the latest version.

Register your subscription for the preview

Register your subscription to the Microsoft.StoragePool provider, to be able to create and use disk pools.

  1. Sign in to the Azure portal.
  2. On the Azure portal menu, search for and select Subscriptions.
  3. Select the subscription you want to use for disk pools.
  4. On the left menu, under Settings, select Resource providers.
  5. Find the resource provider Microsoft.StoragePool and select Register.

Once your subscription has been registered, you can deploy a disk pool.

Delegate subnet permission

For your disk pool to work with your client machines, you must delegate a subnet to your Azure disk pool. When creating a disk pool, you specify a virtual network and the delegated subnet. You may either create a new subnet or use an existing one and delegate to the Microsoft.StoragePool/diskPools resource provider.

  1. Go to the virtual networks pane in the Azure portal and select the virtual network to use for the disk pool.
  2. Select Subnets from the virtual network pane and select +Subnet.
  3. Create a new subnet by completing the following required fields in the Add subnet pane: - Subnet delegation: Select Microsoft.StoragePool/diskPools

For more information on subnet delegation, see Add or remove a subnet delegation.

Assign StoragePool resource provider permissions

For a disk to be able to be used in a disk pool, it must meet the following requirements:

  • The StoragePool resource provider must have been assigned an RBAC role that contains Read and Write permissions for every managed disk in the disk pool.
  • Must be either a premium SSD, standard SSD, or an ultra disk in the same availability zone as the disk pool.
    • For ultra disks, it must have a disk sector size of 512 bytes.
  • Disk pools can't be configured to contain both Premium/standard SSDs and ultra disks. A disk pool configured for ultra disks can only contain ultra disks. Likewise, a disk pool configured for premium or standard SSDs can only contain premium and standard SSDs.
  • Must be a shared disk with a maxShares value of two or greater.
  1. Sign in to the Azure portal.

  2. Search for and select either the resource group that contains the disks or each disk themselves.

  3. Select Access control (IAM).

  4. Select Add role assignment (Preview), and select Disk Pool Operator in the role list.

    If you prefer, you may create your own custom role instead. A custom role for disk pools must have the following RBAC permissions to function: Microsoft.Compute/disks/write and Microsoft.Compute/disks/read.

  5. For Assign access to, select User, group, or service principal.

  6. Select + Select members and then search for StoragePool Resource Provider, select it, and save.

Create a disk pool

For optimal performance, deploy the disk pool in the same Availability Zone of your clients. If you are deploying a disk pool for an Azure VMware Solution cloud and need guidance on identifying the Availability Zone, fill in this form.

  1. Search for and select Disk pool.

  2. Select +Add to create a new disk pool.

  3. Fill in the details requested, select the same region and availability zone as the clients that will use the disk pool.

  4. Select the subnet that has been delegated to the StoragePool resource provider, and its associated virtual network.

  5. Select Next to add disks to your disk pool.

    Screenshot of the basic pane for create a disk pool.

Add disks

Prerequisites

To add a disk, it must meet the following requirements:

  • Must be either a premium SSD, standard SSD, or an ultra disk in the same availability zone as the disk pool.
    • Currently, you can only add premium SSDs and Standard SSDs in the portal. Ultra disks must be added with either the Azure PowerShell module or the Azure CLI.
    • For ultra disks, it must have a disk sector size of 512 bytes.
  • Must be a shared disk with a maxShares value of two or greater.
  • Disk pools can't be configured to contain both premium/standard SSDs and ultra disks. A disk pool configured for ultra disks can only contain ultra disks. Likewise, a disk pool configured for premium or standard SSDs can only contain premium and standard SSDs.
  • You must grant RBAC permissions to the resource provide of disk pool to manage the disk you plan to add.

If your disk meets these requirements, you can add it to a disk pool by selecting +Add disk in the disk pool pane.

Screenshot of the disk pane for create a disk pool, add a disk highlighted.

Enable iSCSI

  1. Select the iSCSI pane.

  2. Select Enable iSCSI.

  3. Enter the name of the iSCSI target, the iSCSI target IQN will generate based on this name.

    • The ACL mode is set to Dynamic by default. To use your disk pool as a storage solution for Azure VMware Solution, the ACL mode must be set to Dynamic.
  4. Select Review + create.

    Screenshot of the iscsi pane for create a disk pool.

Next steps