hashicorp / packer-plugin-azure

Packer plugin for Azure Virtual Machine Image Builders
https://www.packer.io/docs/builders/azure
Mozilla Public License 2.0
51 stars 80 forks source link

Can't build 2025-datacenter-azure-edition #453

Open mindfulmonk opened 1 day ago

mindfulmonk commented 1 day ago

Overview of the Issue

When trying to build Windows 2025 image I get

{"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"InvalidParameter","target":"windowsConfiguration.patchSettings.patchMode","message":"The selected VM image is not supported for VM Guest patch operations. Learn more at: https://aka.ms/VMGuestPatchingCompatibility"}]}}

Reproduction Steps

  image_publisher = "MicrosoftWindowsServer"
  image_offer     = "WindowsServer"
  image_sku       = "2025-datacenter-azure-edition"

Plugin and Packer version

Packer v1.11.2 Plugin version = "~> 2.2.0"

This looks similar to a previous 2022 issue:

https://github.com/hashicorp/packer/issues/11746 https://github.com/hashicorp/packer-plugin-azure/issues/189

Gill-Bates commented 14 hours ago

It seems to be an Azure thing. Building from the Portal ends up with the same error:

{ "code": "DeploymentFailed", "target": "/subscriptions/****/resourceGroups/rg-test/providers/Microsoft.Resources/deployments/CreateVm-MicrosoftWindowsServer.WindowsServer-202-20241107135051", "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.", "details": [ { "code": "InvalidParameter", "target": "windowsConfiguration.patchSettings.patchMode", "message": "The selected VM image is not supported for VM Guest patch operations. Learn more at: https://aka.ms/VMGuestPatchingCompatibility" } ] }