You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/batch/batch-sig-images.md
+24-7Lines changed: 24 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Use the Azure Compute Gallery to create a custom image pool
3
3
description: Custom image pools are an efficient way to configure compute nodes to run your Batch workloads.
4
4
ms.topic: conceptual
5
-
ms.date: 03/04/2021
5
+
ms.date: 05/12/2023
6
6
ms.devlang: csharp, python
7
7
ms.custom: devx-track-python, devx-track-azurecli
8
8
---
@@ -60,7 +60,14 @@ The following steps show how to prepare a VM, take a snapshot, and create an ima
60
60
61
61
### Prepare a VM
62
62
63
-
If you are creating a new VM for the image, use a first party Azure Marketplace image supported by Batch as the base image for your managed image. Only first party images can be used as a base image. To get a full list of Azure Marketplace image references supported by Azure Batch, see the [List node agent SKUs](/java/api/com.microsoft.azure.batch.protocol.accounts.listnodeagentskus) operation.
63
+
If you are creating a new VM for the image, use a first party Azure Marketplace image supported by Batch as the base image for your managed image. Only first party images can be used as a base image.
64
+
65
+
To get a full list of current Azure Marketplace image references supported by Azure Batch, use one of the following APIs to return a list of Windows and Linux VM images including the node agent SKU IDs for each image:
- Azure CLI: [Azure Batch pool supported images](/cli/azure/batch/pool/supported-images)
69
+
- Batch service APIs: [Batch service APIs](batch-apis-tools.md#batch-service-apis) and [Azure Batch service supported images](/rest/api/batchservice/account/listsupportedimages)
70
+
- List node agent SKUs: [Node agent SKUs](/java/api/com.microsoft.azure.batch.protocol.accounts.listnodeagentskus)
64
71
65
72
> [!NOTE]
66
73
> You can't use a third-party image that has additional license and purchase terms as your base image. For information about these Marketplace images, see the guidance for [Linux](../virtual-machines/linux/cli-ps-findimage.md#check-the-purchase-plan-information) or [Windows](../virtual-machines/windows/cli-ps-findimage.md#view-purchase-plan-properties)VMs.
@@ -83,6 +90,11 @@ A snapshot is a full, read-only copy of a VHD. To create a snapshot of a VM's OS
83
90
84
91
To create a managed image from a snapshot, use Azure command-line tools such as the [az image create](/cli/azure/image) command. Create an image by specifying an OS disk snapshot and optionally one or more data disk snapshots.
85
92
93
+
To create an image from a VM in the portal, see [Capture an image of a VM](../virtual-machines/capture-image-portal.md).
94
+
95
+
To create an image using a source other than a VM, see [Create an image](../virtual-machines/image-version.md).
96
+
97
+
86
98
### Create an Azure Compute Gallery
87
99
88
100
Once you have successfully created your managed image, you need to create an Azure Compute Gallery to make your custom image available. To learn how to create an Azure Compute Gallery for your images, see [Create an Azure Compute Gallery](../virtual-machines/create-gallery.md).
@@ -94,12 +106,15 @@ To create a pool from your Shared Image using the Azure CLI, use the `az batch p
94
106
> [!NOTE]
95
107
> You need to authenticate using Azure AD. If you use shared-key-auth, you will get an authentication error.
96
108
109
+
> [!IMPORTANT]
110
+
> The node agent SKU id must align with the publisher/offer/SKU in order for the node to start.
111
+
97
112
```azurecli
98
113
az batch pool create \
99
114
--id mypool --vm-size Standard_A1_v2 \
100
115
--target-dedicated-nodes 2 \
101
116
--image "/subscriptions/{sub id}/resourceGroups/{resource group name}/providers/Microsoft.Compute/galleries/{gallery name}/images/{image definition name}/versions/{version id}" \
## Create a pool from a Shared Image using the Azure portal
219
+
## Create a pool from a Shared Image or Custom Image using the Azure portal
205
220
206
221
Use the following steps to create a pool from a Shared Image in the Azure portal.
207
222
@@ -211,8 +226,10 @@ Use the following steps to create a pool from a Shared Image in the Azure portal
211
226
1. In the **Image Type** section, select **Azure Compute Gallery**.
212
227
1. Complete the remaining sections with information about your managed image.
213
228
1. Select **OK**.
229
+
1. Once the node is allocated, use **Connect** to generate user and the RDP file for Windows OR use SSH to for Linux to login to the allocated node and verify.
214
230
215
231

232
+
216
233
217
234
## Considerations for large pools
218
235
@@ -225,4 +242,4 @@ If you plan to create a pool with hundreds or thousands of VMs or more using a S
225
242
## Next steps
226
243
227
244
- For an in-depth overview of Batch, see [Batch service workflow and resources](batch-service-workflow-features.md).
228
-
- Learn about the [Azure Compute Gallery](../virtual-machines/shared-image-galleries.md).
245
+
- Learn about the [Azure Compute Gallery](../virtual-machines/shared-image-galleries.md).
0 commit comments