Skip to content

Commit a63e479

Browse files
authored
Update batch-linux-nodes.md
Change to latest image reference
1 parent a9c369a commit a63e479

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

articles/batch/batch-linux-nodes.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ When you create a virtual machine image reference, you must specify the followin
2424

2525
| **Image reference property** | **Example** |
2626
| --- | --- |
27-
| Publisher |Canonical |
28-
| Offer |UbuntuServer |
29-
| SKU |20.04-LTS |
27+
| Publisher |canonical |
28+
| Offer |0001-com-ubuntu-server-focal |
29+
| SKU |20_04-lts |
3030
| Version |latest |
3131

3232
> [!TIP]
@@ -89,9 +89,9 @@ new_pool.start_task = start_task
8989
# Create an ImageReference which specifies the Marketplace
9090
# virtual machine image to install on the nodes
9191
ir = batchmodels.ImageReference(
92-
publisher="Canonical",
93-
offer="UbuntuServer",
94-
sku="20.04-LTS",
92+
publisher="canonical",
93+
offer="0001-com-ubuntu-server-focal",
94+
sku="20_04-lts",
9595
version="latest")
9696

9797
# Create the VirtualMachineConfiguration, specifying
@@ -118,8 +118,8 @@ images = client.account.list_supported_images()
118118
image = None
119119
for img in images:
120120
if (img.image_reference.publisher.lower() == "canonical" and
121-
img.image_reference.offer.lower() == "ubuntuserver" and
122-
img.image_reference.sku.lower() == "20.04-lts"):
121+
img.image_reference.offer.lower() == "0001-com-ubuntu-server-focal" and
122+
img.image_reference.sku.lower() == "20_04-lts"):
123123
image = img
124124
break
125125

@@ -157,9 +157,9 @@ List<ImageInformation> images =
157157
ImageInformation image = null;
158158
foreach (var img in images)
159159
{
160-
if (img.ImageReference.Publisher == "Canonical" &&
161-
img.ImageReference.Offer == "UbuntuServer" &&
162-
img.ImageReference.Sku == "20.04-LTS")
160+
if (img.ImageReference.Publisher == "canonical" &&
161+
img.ImageReference.Offer == "0001-com-ubuntu-server-focal" &&
162+
img.ImageReference.Sku == "20_04-lts")
163163
{
164164
image = img;
165165
break;
@@ -187,9 +187,9 @@ Although the previous snippet uses the [PoolOperations.istSupportedImages](/dotn
187187

188188
```csharp
189189
ImageReference imageReference = new ImageReference(
190-
publisher: "Canonical",
191-
offer: "UbuntuServer",
192-
sku: "20.04-LTS",
190+
publisher: "canonical",
191+
offer: "0001-com-ubuntu-server-focal",
192+
sku: "20_04-lts",
193193
version: "latest");
194194
```
195195
::: zone-end

0 commit comments

Comments
 (0)