azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

[Feature]: azure-powershell container on arm64 hosts

Open sajithmuh opened this issue 4 years ago • 2 comments

Description of the new feature

Currently we use mcr.microsoft.com/azure-powershell:latest on amd64 hosts, it works perfectly fine. We would like to like to have a similar container image that would run on an arm64 host.

Proposed implementation details (optional)

No response

sajithmuh avatar Oct 18 '22 08:10 sajithmuh

It requires PowerShell support it. We will follow up.

PowerShell item https://github.com/PowerShell/PowerShell-Docker/issues/520

dingmeng-xue avatar Oct 20 '22 01:10 dingmeng-xue

For info, it is now possible to run PowerShell Docker image on Apple Silicon, you can use preview-mariner-2.0-arm64 tag:

docker run -it mcr.microsoft.com/powershell:preview-mariner-2.0-arm64
PowerShell 7.4.0-preview.4
PS /> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.0-preview.4
PSEdition                      Core
GitCommitId                    7.4.0-preview.4
OS                             CBL-Mariner/Linux
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Then you can import the Az module:

Install-Module -Name Az -Repository PSGallery -Force

And execute PowerShell Az commands on an Apple M2 (in my case):

Connect-AzAccount -UseDeviceAuthentication

ovanekem avatar Sep 26 '23 13:09 ovanekem