Skip to content

Conversation

@navba-MSFT
Copy link
Contributor

@navba-MSFT navba-MSFT commented Dec 9, 2022

Fix to support ARM64 arch for Bicep installation

fixes #24810

On OSX ARM64 architecture VMs the Bicep install fails because the bicep_target_platform_type enum currently has only x64 arch. So this ends up installing x64 version. It eventually fails with the below error:

$ az bicep install --target-platform osx-arm64
az bicep install: 'osx-arm64' is not a valid value for '--target-platform'. Allowed values: win-x64, linux-musl-x64, linux-x64, osx-x64.
> az bicep version
qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory

Here is the download URL for the ARM64:
https://github.com/Azure/bicep/releases/latest/download/bicep-linux-arm64
https://github.com/Azure/bicep/releases/download/v0.13.1/bicep-osx-arm64

Related command

Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature


This checklist is used to make sure that common guidelines for a pull request are followed.

…stallation

 fixes Azure#24810 

On OSX ARM64 architecture VMs the Bicep install fails because the `bicep_target_platform_type` enum currently has only x64 arch. So this ends up installing x64 version. It eventually fails with the below error:

```
$ az bicep install --target-platform osx-arm64
az bicep install: 'osx-arm64' is not a valid value for '--target-platform'. Allowed values: win-x64, linux-musl-x64, linux-x64, osx-x64.
```

```
> az bicep version
qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
```
@ghost ghost requested a review from yonzhan December 9, 2022 03:34
@ghost ghost added the Auto-Assign Auto assign by bot label Dec 9, 2022
@ghost ghost requested a review from wangzelin007 December 9, 2022 03:34
@ghost ghost assigned jiasli Dec 9, 2022
@ghost ghost added the Installation label Dec 9, 2022
@ghost ghost requested a review from jiasli December 9, 2022 03:34
@yonzhan
Copy link
Collaborator

yonzhan commented Dec 9, 2022

AzureBicep

Copy link
Contributor

@shenglol shenglol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

@shenglol
Copy link
Contributor

shenglol commented Dec 9, 2022

@zhoxing-ms Could you help merge the PR? Thanks.

@zhoxing-ms zhoxing-ms changed the title {AzureBicep} fixes Azure/azure-cli#24810 Fix to support ARM64 arch for Bicep installation [ARM] Fix #24810: Support ARM64 architecture for Bicep installation Dec 9, 2022
@zhoxing-ms zhoxing-ms merged commit 4836ec1 into Azure:dev Dec 9, 2022
avgale pushed a commit to avgale/azure-cli that referenced this pull request Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot Installation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OS architecture mismatch when installing Azure Bicep with the az bicep install command

5 participants