[ARM] az bicep: Install correct bicep for apple M1, M2 and respect bicep.use_binary_from_path in all commands#27194
[ARM] az bicep: Install correct bicep for apple M1, M2 and respect bicep.use_binary_from_path in all commands#27194colbylwilliams wants to merge 4 commits intoAzure:devfrom
az bicep: Install correct bicep for apple M1, M2 and respect bicep.use_binary_from_path in all commands#27194Conversation
❌AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
Resource |
az bicep: Install correct bicep for apple M1, M2 and respect bicep.use_binary_from_path in all commands
|
@colbylwilliams Please resolve these CI issues |
|
@shenglol Could you please help take a look at this PR? |
|
@zhoxing-ms @shenglol can you please help resolve the CI issues. Unfortunately, I'm having trouble finding time to commit to this. |
|
I am so sorry, because we have been super busy with the top priority project Azure Copilot recently, and the end of September is the Mid-Autumn Festival holiday in China, I am afraid we do not have enough time and bandwidth to review this PR. |
@zhoxing-ms I don't think this is acceptable. Users on Apple computers with M1 or M2, cannot use the built-in bicep functionality of the Azure CLI. Without this fix, az cli attempts to install the wrong architecture bicep binaries, and throws errors. The (failing) workaround would be to manually install correct (arm64) bicep binaries and tell az cli to use those instead using These issues prevent all users on Apple M1 and M2 from using azure cli + bicep. |
|
Add @yanzhudd to help take a look at this PR~ |
|
@colbylwilliams Could you please resolve these conflicts? |
|
@zhoxing-ms please review and merge. Conflicts have been resolved. |
Related command
Description
The commands above and almost all other
az bicep ..commands callensure_bicep_installation(cmd.cli_ctx)which doesn't respect thebicep.use_binary_from_pathand installs a new the bicep executable the.azure/binregardless ifbicep.use_binary_from_path=true.This is annoying, but the wrong archetecure was being selected for osx arm machines, resulting in
az deployment group|sub createand allaz bicep xxcommands failing with:Testing Guide
See screenshot.
History Notes
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.