Fix deprecated Ubuntu pool images in Batch samples#328
Open
xinlaoda wants to merge 1 commit into
Open
Conversation
The Ubuntu images referenced by several samples are no longer available in the Azure Marketplace / no longer supported by Batch node agents, which causes pool allocation to fail: - UbuntuServer 18.04-LTS (offer retired; only <=16.04 remains under that offer) - 0001-com-ubuntu-server-focal 20.04 (batch.node.ubuntu 20.04 no longer supported for new pools) Update them to Ubuntu Server 24.04 LTS (canonical / ubuntu-24_04-lts / server-gen1, node agent batch.node.ubuntu 24.04), a currently Batch-verified image. The Gen1 sku (server-gen1) is used so the pools keep working with the existing default VM sizes (Standard_DS1_V2 / Standard_D1_V2 / Standard_A1_v2), which are Gen1 (V1) only. Affected samples: - Python/Batch/sample1_helloworld.py - Python/Batch/sample1_jobprep_and_release.py - Python/Batch/sample2_pools_and_resourcefiles.py - Python/Batch/sample3_encrypted_resourcefiles.py - JavaScript/Node.js/sample.js Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Author
|
@NickKouds could you please review and merge this PR? 🙏 It fixes deprecated Ubuntu pool images that currently cause pool allocation to fail:
Updated to Ubuntu Server 24.04 LTS ( |
jingjlii
approved these changes
Jul 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Several samples reference Ubuntu pool images that are no longer available in the Azure Marketplace / no longer supported by Batch node agents, so pool allocation currently fails with these samples:
UbuntuServer18.04-LTS— theUbuntuServeroffer now only publishes SKUs up to 16.04.0001-com-ubuntu-server-focal20.04—batch.node.ubuntu 20.04is no longer supported for new pools.Fix
Update them to Ubuntu Server 24.04 LTS (
canonical/ubuntu-24_04-lts/server-gen1, node agentbatch.node.ubuntu 24.04), which is currently Batch-verified (confirmed vialist_supported_images).The Gen1 sku (
server-gen1) is used intentionally so the pools keep booting on the existing default VM sizes (Standard_DS1_V2/Standard_D1_V2), which support Hyper-V Gen1 (V1) only.Affected samples
Python/Batch/sample1_helloworld.pyPython/Batch/sample1_jobprep_and_release.pyPython/Batch/sample2_pools_and_resourcefiles.pyPython/Batch/sample3_encrypted_resourcefiles.pyJavaScript/Node.js/sample.jsValidation
flake8gate onPython/Batchpasses.py_compile(Python) andnode --check(JS) succeed.