Skip to content

Commit

Permalink
Support for Windows arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredfholgate committed Jul 15, 2024
1 parent 12b34af commit 57941e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ALZ/Private/Shared/Get-OsArchitecture.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,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
Expand Down

0 comments on commit 57941e2

Please sign in to comment.