From 5187f12f9a0e6891aa99d8e98abeb6a4fbc8dfd8 Mon Sep 17 00:00:00 2001 From: Jared Holgate Date: Mon, 15 Jul 2024 14:47:41 +0100 Subject: [PATCH] Support for Windows arm64 --- src/ALZ/Private/Shared/Get-OsArchitecture.ps1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ALZ/Private/Shared/Get-OsArchitecture.ps1 b/src/ALZ/Private/Shared/Get-OsArchitecture.ps1 index c3fe3b6..80004b2 100644 --- a/src/ALZ/Private/Shared/Get-OsArchitecture.ps1 +++ b/src/ALZ/Private/Shared/Get-OsArchitecture.ps1 @@ -29,7 +29,8 @@ function Get-OSArchitecture { "linux_amd64", "linux_arm64", "windows_386", - "windows_amd64" + "windows_amd64", + "windows_arm64" ) if($supportedOsAndArchitectures -notcontains $osAndArchitecture) { @@ -37,6 +38,12 @@ function Get-OSArchitecture { exit 1 } + if($osAndArchitecture -eq "windows_arm64") { + Write-InformationColoured "Windows arm64 is not currently supported by Terraform, so we will pull the Windows amd64 verison instead and run in emulation mode: https://learn.microsoft.com/en-us/windows/arm/apps-on-arm-x86-emulation" -ForegroundColor Yellow -NewLineBefore -InformationAction Continue + $architecture = "amd64" + $osAndArchitecture = "windows_amd64" + } + return @{ os = $os architecture = $architecture