Skip to content

Commit c1a8624

Browse files
authored
Updated for Linux Distros and metadata
1 parent 778ef0f commit c1a8624

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/batch/tutorial-parallel-python.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Tutorial: Run a parallel workload using the Python API"
33
description: Learn how to process media files in parallel using ffmpeg in Azure Batch with the Batch Python client library.
44
ms.devlang: python
55
ms.topic: tutorial
6-
ms.date: 04/19/2023
6+
ms.date: 05/25/2023
77
ms.custom: mvc, devx-track-python
88
---
99

@@ -155,7 +155,7 @@ input_files = [
155155

156156
### Create a pool of compute nodes
157157

158-
Next, the sample creates a pool of compute nodes in the Batch account with a call to `create_pool`. This defined function uses the Batch [PoolAddParameter](/python/api/azure-batch/azure.batch.models.pooladdparameter) class to set the number of nodes, VM size, and a pool configuration. Here, a [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 18.04 LTS image published in the Azure Marketplace. Batch supports a wide range of VM images in the Azure Marketplace, as well as custom VM images.
158+
Next, the sample creates a pool of compute nodes in the Batch account with a call to `create_pool`. This defined function uses the Batch [PoolAddParameter](/python/api/azure-batch/azure.batch.models.pooladdparameter) class to set the number of nodes, VM size, and a pool configuration. Here, a [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 image published in the Azure Marketplace. Batch supports a wide range of VM images in the Azure Marketplace, as well as custom VM images.
159159

160160
The number of nodes and VM size are set using defined constants. Batch supports dedicated nodes and [Spot nodes](batch-spot-vms.md), and you can use either or both in your pools. Dedicated nodes are reserved for your pool. Spot nodes are offered at a reduced price from surplus VM capacity in Azure. Spot nodes become unavailable if Azure doesn't have enough capacity. The sample by default creates a pool containing only five Spot nodes in size *Standard_A1_v2*.
161161

@@ -170,10 +170,10 @@ new_pool = batch.models.PoolAddParameter(
170170
image_reference=batchmodels.ImageReference(
171171
publisher="Canonical",
172172
offer="UbuntuServer",
173-
sku="18.04-LTS",
173+
sku="20.04-LTS",
174174
version="latest"
175175
),
176-
node_agent_sku_id="batch.node.ubuntu 18.04"),
176+
node_agent_sku_id="batch.node.ubuntu 20.04"),
177177
vm_size=_POOL_VM_SIZE,
178178
target_dedicated_nodes=_DEDICATED_POOL_NODE_COUNT,
179179
target_low_priority_nodes=_LOW_PRIORITY_POOL_NODE_COUNT,

0 commit comments

Comments
 (0)