From fc66ad070af1cae7e0e0d60e7b398159746e4868 Mon Sep 17 00:00:00 2001 From: navba-MSFT <57353862+navba-MSFT@users.noreply.github.com> Date: Fri, 9 Dec 2022 09:03:44 +0530 Subject: [PATCH] {AzureBicep} fixes Azure/azure-cli#24810 Fix to support ARM64 arch for Bicep installation fixes Azure/azure-cli#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 ``` --- src/azure-cli/azure/cli/command_modules/resource/_params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/resource/_params.py b/src/azure-cli/azure/cli/command_modules/resource/_params.py index 0e80ac79a46..bcef62c3fb6 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/_params.py +++ b/src/azure-cli/azure/cli/command_modules/resource/_params.py @@ -105,7 +105,7 @@ def load_arguments(self, _): bicep_stdout_type = CLIArgumentType(options_list=['--stdout'], action='store_true', help="When set, prints all output to stdout instead of corresponding files.") bicep_target_platform_type = CLIArgumentType(options_list=['--target-platform', '-t'], arg_type=get_enum_type( - ["win-x64", "linux-musl-x64", "linux-x64", "osx-x64"]), + ["win-x64", "linux-musl-x64", "linux-x64", "osx-x64", "linux-arm64", "osx-arm64"]), help="The platform the Bicep CLI will be running on. Set this to skip automatic platform detection if it does not work properly.") _PROVIDER_HELP_TEXT = 'the resource namespace, aka \'provider\''