From a9cc1331ddc2e16a23e863ad82076875b4bb3129 Mon Sep 17 00:00:00 2001 From: Srikanth Myakam <374767+SRIKKANTH@users.noreply.github.com> Date: Mon, 27 Apr 2026 21:49:42 +0530 Subject: [PATCH] use x64 as default arch for .vhd images --- lisa/sut_orchestrator/azure/common.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lisa/sut_orchestrator/azure/common.py b/lisa/sut_orchestrator/azure/common.py index b4478b07ad..8fcde125c5 100644 --- a/lisa/sut_orchestrator/azure/common.py +++ b/lisa/sut_orchestrator/azure/common.py @@ -563,6 +563,13 @@ class VhdSchema(AzureImageSchema): data_vhd_paths: Optional[List[DataVhdPath]] = None def load_from_platform(self, platform: "AzurePlatform") -> None: + # VHD images are user-provided custom images. Azure does not expose + # architecture metadata for them, and uploaded VHDs in this codepath + # are x64. Restrict candidate VM sizes to x64 to avoid selecting + # ARM64 SKUs that would fail to boot the VHD. + if self.architecture is None: + self.architecture = schema.ArchitectureType.x64 + # There are no platform tags to parse, but we can assume the # security profile based on the presence of a VMGS path. if self.cvm_gueststate_path: