OS architecture mismatch when installing Azure Bicep with the `az bicep install` command
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az bicep version
Errors:
qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Run the
az bicep install
command from any ARM64-based operating system (e.g., Dev Container running locally on M1 Mac) - Run the
az bicep version
command to validate install
Expected Behavior
- The installer should download the appropriate executable if run from an
amd64
based system
Environment Summary
Linux-5.15.49-linuxkit-aarch64-with-glibc2.35, Ubuntu 22.04.1 LTS
Python 3.10.6
Installer: PIP
azure-cli 2.42.0
Additional Context
Issue Analytics
- State:
- Created 10 months ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Troubleshoot Bicep installation - Azure - Microsoft Learn
First, open your command prompt (not PowerShell), and run where bicep . This command returns the locations of your Bicep installations. If you' ......
Read more >Migrating Azure ARM templates to Bicep - Rick Roché
You may need to fix warnings and errors in the generated bicep file(s), or decompilation may fail entirely if an accurate conversion is...
Read more >Getting Started with Azure Bicep (Step-by-Step)
Before attempting to install the Bicep CLI, first check to see if it's already installed. Depending on the version of the Azure CLI...
Read more >Gijs Reijn - 5 best practices for using Azure Bicep
You already have your software installed locally, like Visual Studio Code, the Bicep extension and the Azure CLI.
Read more >Get Started With Azure Bicep - Alternative To ARM Templates
On Windows machines, Azure Bicep can be installed using PowerShell ... .bicep files into ARM Template JSON with a single command, such as:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@pauldotyu Thanks for your reply. The above PR has been created to address the installation issue on Linux ARM64 machines. Currently it is pending under review. The PR should address the installation issue on Linux ARM64 machines. However, currently we are having issue with signing the osx-arm64 executable in official build, so it won’t run on M1 Mac (this is tracked by Cannot run bicep-osx-arm64 on macOS 12 · Issue #6195 · Azure/bicep (github.com). M1 Mac users would have to use the osx-x64 version for now. Please track the progress of the fix release for M1 Mac for ARM 64 here https://github.com/Azure/bicep/issues/6195
@navba-MSFT here is the debug log when attempting to install inside my Dev Container on my darwin-arm64 system
Here is the error I get when attempting to run
az bicep version
post installNote the error above states “OSError: [Errno 8] Exec format error:”
Also, since I am on a darwin arm64 system, I’d expect to be able to run the
az bicep install
command with a--target-platform
value ofosx-arm64
but the enum for the parameter does not support that value yet.Here is what I get when attempting to install for a target platform that is not supported.