microsoftgraph / microsoftgraph/msgraph-sdk-powershell
images won't work on ARM architecture CPUs (Mac M3)
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 898
- Forks
- 230
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 31
Description
Is your feature request related to a problem? Please describe the problem.
Hello,
Please consider to support to run on arm cpus, like Mac M3 / M4 ...
Currently, it refuses to run:
$ docker run --rm -it mcr.microsoft.com/microsoftgraph/powershell
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
However, I can run bash with the image, but if I run pwsh it fails with Segmentation fault
$ docker run --platform linux/amd64 --rm -it mcr.microsoft.com/microsoftgraph/powershell bash
root@d960df434419:/# pwsh
PowerShell 7.4.2
Segmentation fault
root@d960df434419:/# pwsh-preview
PowerShell 7.4.2
Segmentation fault
I noticed this issue 1920 metioned the base powershell image doesn't support for arm. However, it now support - https://mcr.microsoft.com/en-us/artifact/mar/powershell
Describe the solution you'd like.
Please add arm support!!!
Additional context?
And FYI - The Azure powershell module works well on my mac:
https://mcr.microsoft.com/en-us/artifact/mar/azure-powershell/about
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining the repository's Docker image definition and its referenced PowerShell base image, then compare them with the ARM-supporting PowerShell and Azure PowerShell images mentioned in the issue. Done means the Microsoft Graph PowerShell image runs on ARM64 hosts and pwsh no longer exits with a segmentation fault.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, powershell
- Domain
- devops, infrastructure
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100