Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 701e53c

Browse filesBrowse files
Support for Windows arm64 (Azure#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
Copy full SHA for 701e53c

File tree

1 file changed

+8
-1
lines changed
Filter options

1 file changed

+8
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/ALZ/Private/Shared/Get-OsArchitecture.ps1
+8-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.