|
| 1 | +--- |
| 2 | +title: Migrate Azure Batch Custom Image Pools to Azure Compute Gallery |
| 3 | +description: Learn how to migrate Azure Batch custom image pools to Azure compute gallery and plan for feature end of support. |
| 4 | +author: harperche |
| 5 | +ms.author: harpercheng |
| 6 | +ms.service: batch |
| 7 | +ms.topic: how-to |
| 8 | +ms.date: 02/23/2023 |
| 9 | +--- |
| 10 | + |
| 11 | +# Migrate Azure Batch custom image pools to Azure Compute Gallery |
| 12 | + |
| 13 | +To improve reliability, scale, and align with modern Azure offerings, Azure Batch will retire custom image Batch pools specified from virtual hard disk (VHD) blobs in Azure Storage and Azure Managed Images on *March 31, 2024*. Learn how to migrate your Azure Batch custom image pools using Azure Compute Gallery. |
| 14 | + |
| 15 | + |
| 16 | +## Feature end of support |
| 17 | + |
| 18 | +When you create an Azure Batch pool using the Virtual Machine Configuration, you specify an image reference that provides the operating system for each compute node in the pool. You can create a pool of virtual machines either with a supported Azure Marketplace image or with a custom image. Custom images from VHD blobs and managed Images are either legacy offerings or non-scalable solutions for Azure Batch. To ensure reliable infrastructure provisioning at scale, all custom image sources other than Azure Compute Gallery will be retired on *March 31, 2024*. |
| 19 | + |
| 20 | +## Alternative: Use Azure Compute Gallery references for Batch custom image pools |
| 21 | + |
| 22 | +When you use the Azure Compute Gallery (formerly known as Shared Image Gallery) for your custom image, you have control over the operating system type and configuration, as well as the type of data disks. Your shared image can include applications and reference data that become available on all the Batch pool nodes as soon as they're provisioned. You can also have multiple versions of an image as needed for your environment. When you use an image version to create a VM, the image version is used to create new disks for the VM. |
| 23 | + |
| 24 | +Using a shared image saves time in preparing your pool's compute nodes to run your Batch workload. It's possible to use an Azure Marketplace image and install software on each compute node after provisioning, but using a shared image can lead to more efficiencies, in faster compute node to ready state and reproducible workloads. Additionally, you can specify multiple replicas for the shared image so when you create pools with many compute nodes, provisioning latencies can be lower. |
| 25 | + |
| 26 | +## Migrate Your Eligible Pools |
| 27 | + |
| 28 | +To migrate your Batch custom image pools from managed image to shared image, review the Azure Batch guide on using [Azure Compute Gallery to create a custom image pool](batch-sig-images.md). |
| 29 | + |
| 30 | +If you have either a VHD blob or a managed image, you can convert them directly to a Compute Gallery image that can be used with Azure Batch custom image pools. When you're creating a VM image definition for a Compute Gallery, on the Version tab, there is an option to select the source for image types to migrate that're being retired for Batch custom image pools: |
| 31 | + |
| 32 | +| Source | Other fields | |
| 33 | +|---|---| |
| 34 | +| Managed image | Select the **Source image** from the drop-down. The managed image must be in the same region that you chose in **Instance details.** | |
| 35 | +| VHD in a storage account | Select **Browse** to choose the storage account for the VHD. | |
| 36 | + |
| 37 | +For more information about this process, see [creating an image definition and version for Compute Gallery](../virtual-machines/image-version.md#create-an-image). |
| 38 | + |
| 39 | +## FAQs |
| 40 | + |
| 41 | +- How can I create an Azure Compute Gallery? |
| 42 | + |
| 43 | + See the [guide](../virtual-machines/create-gallery.md#create-a-private-gallery) for Compute Gallery creation. |
| 44 | + |
| 45 | +- How do I create a Pool with a Compute Gallery image? |
| 46 | + |
| 47 | + See the [guide](batch-sig-images.md) for creating a Pool with a Compute Gallery image. |
| 48 | + |
| 49 | +- What considerations are there for Compute Gallery image based Pools? |
| 50 | + |
| 51 | + See the [guide](batch-sig-images.md#considerations-for-large-pools) for more information. |
| 52 | + |
| 53 | +- Can I use Azure Compute Gallery images in different subscriptions or in different Azure AD tenants? |
| 54 | + |
| 55 | + If the Shared Image is not in the same subscription as the Batch account, you must register the Microsoft.Batch resource provider for that subscription. The two subscriptions must be in the same Azure AD tenant. The image can be in a different region as long as it has replicas in the same region as your Batch account. |
| 56 | + |
| 57 | + |
| 58 | +## Next steps |
| 59 | + |
| 60 | +For more information, see [Azure Compute Gallery](../virtual-machines/azure-compute-gallery.md). |
0 commit comments