Skip to content

Commit e9ba903

Browse files
authored
Fixed the Linux Distro and ms.date
1 parent 3403cd3 commit e9ba903

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/batch/quick-run-python.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'Quickstart: Use Python to create a pool and run a job'
33
description: Follow this quickstart to run an app that uses the Azure Batch client library for Python to create and run Batch pools, nodes, jobs, and tasks.
4-
ms.date: 03/01/2024
4+
ms.date: 03/21/2025
55
ms.topic: quickstart
66
ms.devlang: python
77
ms.custom: mvc, devx-track-python, mode-api
@@ -13,7 +13,7 @@ This quickstart shows you how to get started with Azure Batch by running an app
1313

1414
> [!div class="checklist"]
1515
> - Uploads several input data files to an Azure Storage blob container to use for Batch task processing.
16-
> - Creates a pool of two virtual machines (VMs), or compute nodes, running Ubuntu 20.04 LTS OS.
16+
> - Creates a pool of two virtual machines (VMs), or compute nodes, running Ubuntu 22.04 LTS OS.
1717
> - Creates a job and three tasks to run on the nodes. Each task processes one of the input files by using a Bash shell command line.
1818
> - Displays the output files that the tasks return.
1919
@@ -150,7 +150,7 @@ Review the code to understand the steps in the [Azure Batch Python Quickstart](h
150150

151151
### Create a pool of compute nodes
152152

153-
To create a Batch pool, the app uses the [PoolAddParameter](/python/api/azure-batch/azure.batch.models.pooladdparameter) class to set the number of nodes, VM size, and pool configuration. The following [VirtualMachineConfiguration](/python/api/azure-batch/azure.batch.models.virtualmachineconfiguration) object specifies an [ImageReference](/python/api/azure-batch/azure.batch.models.imagereference) to an Ubuntu Server 20.04 LTS Azure Marketplace image. Batch supports a wide range of Linux and Windows Server Marketplace images, and also supports custom VM images.
153+
To create a Batch pool, the app uses the [PoolAddParameter](/python/api/azure-batch/azure.batch.models.pooladdparameter) class to set the number of nodes, VM size, and pool configuration. The following [VirtualMachineConfiguration](/python/api/azure-batch/azure.batch.models.virtualmachineconfiguration) object specifies an [ImageReference](/python/api/azure-batch/azure.batch.models.imagereference) to an Ubuntu Server 22.04 LTS Azure Marketplace image. Batch supports a wide range of Linux and Windows Server Marketplace images, and also supports custom VM images.
154154

155155
The `POOL_NODE_COUNT` and `POOL_VM_SIZE` are defined constants. The app creates a pool of two size Standard_DS1_v2 nodes. This size offers a good balance of performance versus cost for this quickstart.
156156

@@ -163,10 +163,10 @@ new_pool = batchmodels.PoolAddParameter(
163163
image_reference=batchmodels.ImageReference(
164164
publisher="canonical",
165165
offer="0001-com-ubuntu-server-focal",
166-
sku="20_04-lts",
166+
sku="22_04-lts",
167167
version="latest"
168168
),
169-
node_agent_sku_id="batch.node.ubuntu 20.04"),
169+
node_agent_sku_id="batch.node.ubuntu 22.04"),
170170
vm_size=config.POOL_VM_SIZE,
171171
target_dedicated_nodes=config.POOL_NODE_COUNT
172172
)

0 commit comments

Comments
 (0)