Skip to content

Commit 1524a2f

Browse files
authored
Incorporated review feedback comments
1 parent 18f5a23 commit 1524a2f

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

articles/batch/batch-sig-images.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ To create a managed image from a snapshot, use Azure command-line tools such as
9292

9393
To create an image from a VM in the portal, see [Capture an image of a VM](../virtual-machines/capture-image-portal.md).
9494

95-
To create an image using a source other than a VM, see [Create an image](../virtual-machines/image-version.md#tab/portal).
95+
To create an image using a source other than a VM, see [Create an image](../virtual-machines/image-version.md#tab/portal-2Ccli).
9696

9797

9898
### Create an Azure Compute Gallery
@@ -106,12 +106,15 @@ To create a pool from your Shared Image using the Azure CLI, use the `az batch p
106106
> [!NOTE]
107107
> You need to authenticate using Azure AD. If you use shared-key-auth, you will get an authentication error.
108108
109+
> [!IMPORTANT]
110+
> The node agent SKU id must align with the publisher/offer/SKU in order for the node to start.
111+
109112
```azurecli
110113
az batch pool create \
111114
--id mypool --vm-size Standard_A1_v2 \
112115
--target-dedicated-nodes 2 \
113116
--image "/subscriptions/{sub id}/resourceGroups/{resource group name}/providers/Microsoft.Compute/galleries/{gallery name}/images/{image definition name}/versions/{version id}" \
114-
--node-agent-sku-id "batch.node.ubuntu 20.04"
117+
--{node-agent-sku-id}
115118
```
116119

117120
## Create a pool from a Shared Image using C#
@@ -123,7 +126,7 @@ private static VirtualMachineConfiguration CreateVirtualMachineConfiguration(Ima
123126
{
124127
return new VirtualMachineConfiguration(
125128
imageReference: imageReference,
126-
nodeAgentSkuId: "batch.node.windows amd64");
129+
nodeAgentSkuId: {});
127130
}
128131

129132
private static ImageReference CreateImageReference()
@@ -197,7 +200,7 @@ ir = batchmodels.ImageReference(
197200
# be installed on the node.
198201
vmc = batchmodels.VirtualMachineConfiguration(
199202
image_reference=ir,
200-
node_agent_sku_id="batch.node.ubuntu 20.04"
203+
{node_agent_sku_id}
201204
)
202205

203206
# Create the unbound pool
@@ -223,12 +226,10 @@ Use the following steps to create a pool from a Shared Image in the Azure portal
223226
1. In the **Image Type** section, select **Azure Compute Gallery**.
224227
1. Complete the remaining sections with information about your managed image.
225228
1. Select **OK**.
226-
1. Once the node is allocated, use **Connect** to generate user and the RDP file to login to the allocated node and verify.
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.
227230

228231
![Create a pool with from a Shared image with the portal.](media/batch-sig-images/create-custom-pool.png)
229-
230-
> [!NOTE]
231-
> Ensure that the OS SKU is matching the custom image SKU. If the selected option is not matching your custom image, the node will not start.
232+
232233

233234
## Considerations for large pools
234235

0 commit comments

Comments
 (0)