[windows-2025, ubuntu-24.04] Change to Generation 2 VM - #13543
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the Azure Marketplace SKU references for Windows Server 2025 and Ubuntu 24.04 to use Generation 2 VM images instead of Generation 1. For Windows 2025, the SKU changes from 2025-Datacenter to 2025-Datacenter-g2, explicitly specifying Gen2. For Ubuntu 24.04, the SKU changes from server-gen1 to server, which is the canonical default Generation 2 SKU for Ubuntu 24.04 LTS.
Changes:
- Updated Windows Server 2025 to use the
-g2SKU suffix for Generation 2 VM support - Updated Ubuntu 24.04 to use the default
serverSKU (Generation 2) instead ofserver-gen1
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| images/windows/templates/locals.windows.pkr.hcl | Changed Windows 2025 marketplace SKU to use Generation 2 variant with -g2 suffix |
| images/ubuntu/templates/locals.ubuntu.pkr.hcl | Changed Ubuntu 24.04 marketplace SKU from server-gen1 to server for Generation 2 support |
| @@ -5,7 +5,7 @@ locals { | |||
| os_disk_size_gb = 75 | |||
| }, | |||
| "ubuntu24" = { | |||
There was a problem hiding this comment.
The Ubuntu 24.04 SKU naming convention differs from Ubuntu 22.04. Ubuntu 22.04 uses the format 'canonical:0001-com-ubuntu-server-jammy:22_04-lts-gen2' with an explicit '-gen2' suffix, while Ubuntu 24.04 uses 'canonical:ubuntu-24_04-lts:server'. Consider adding a comment explaining that 'server' is the Generation 2 variant for Ubuntu 24.04 to maintain consistency with the explicit Gen2 naming used for Ubuntu 22.04 and to clarify the PR's intent.
| "ubuntu24" = { | |
| "ubuntu24" = { | |
| // For Ubuntu 24.04, the 'server' SKU corresponds to the Generation 2 image (analogous to the '-gen2' suffix used for Ubuntu 22.04). |
Description
This PR changes
windows-2025andubuntu-24.04to produce Generation 2 VMsRelated issue:
Check list