Skip to content

Commit 701e53c

Browse files
Support for Windows arm64 (#122)
# Pull Request ## Description Add support for Windows arm64 emulation mode ## License By submitting this pull request, I confirm that my contribution is made under the terms of the projects associated license.
1 parent 7efc21f commit 701e53c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/ALZ/Private/Shared/Get-OsArchitecture.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,21 @@ function Get-OSArchitecture {
2929
"linux_amd64",
3030
"linux_arm64",
3131
"windows_386",
32-
"windows_amd64"
32+
"windows_amd64",
33+
"windows_arm64"
3334
)
3435

3536
if($supportedOsAndArchitectures -notcontains $osAndArchitecture) {
3637
Write-Error "Unsupported OS and architecture combination: $osAndArchitecture"
3738
exit 1
3839
}
3940

41+
if($osAndArchitecture -eq "windows_arm64") {
42+
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
43+
$architecture = "amd64"
44+
$osAndArchitecture = "windows_amd64"
45+
}
46+
4047
return @{
4148
os = $os
4249
architecture = $architecture

0 commit comments

Comments
 (0)