Skip to content

Conversation

@MariuszFerdyn
Copy link
Contributor

Description

Modyfication of images/ubuntu/templates/locals.ubuntu.pkr.hcl to allow create Azure GEN 2 Images

Related issue:

Check list

Copilot AI review requested due to automatic review settings November 4, 2025 16:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for Generation 2 (Gen 2) Azure VM images for Ubuntu 24.04, providing enhanced security features through UEFI-based boot architecture. The Gen 2 VM support enables UEFI Secure Boot, vTPM, Trusted Launch compatibility, and protection against firmware-level attacks.

  • Adds new Ubuntu2404Gen2 image type alongside existing Ubuntu 24.04 Gen 1 support
  • Configures Packer template with Gen 2-specific Azure Marketplace image SKU
  • Updates documentation to explain Gen 2 security benefits and usage instructions

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
images/ubuntu/templates/locals.ubuntu.pkr.hcl Adds ubuntu24-gen2 configuration with "server" SKU for Gen 2 VM support
helpers/GenerateResourcesAndImage.ps1 Adds Ubuntu2404Gen2 enum value and template mapping logic
docs/create-image-and-azure-resources.md Documents Ubuntu2404Gen2 image type and Gen 2 security features
README.md Announces Gen 2 VM support availability with link to documentation
Comments suppressed due to low confidence (1)

helpers/GenerateResourcesAndImage.ps1:96

  • The documentation for the ImageType parameter is outdated and missing the newly added Ubuntu2404Gen2 option. Update the valid values list to include: 'Windows2019, Windows2022, Windows2025, Ubuntu2204, Ubuntu2404, Ubuntu2404Gen2'.
            The type of image to generate. Valid values are: Windows2019, Windows2022, Windows2025, Ubuntu2204, Ubuntu2404.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant