Skip to content

InstallAzureCli One Line Command ? #30580

@alnhk

Description

@alnhk

Want to install az command in alpine docker image, the below command is

curl -L https://aka.ms/InstallAzureCli | bash

However, when run from docker image, it fails to install, yet, when manually executing, we are seeing some values to be provided like this :

Downloading Azure CLI install script from https://azurecliprod.blob.core.windows.net/install.py to /tmp/azure_cli_install_tmp_pEDgEM.
######################################################################## 100.0%
/tmp/azure_cli_install_tmp_pEDgEM: OK
Running install script.
-- Verifying Python version.
-- Python version 3.12.8 okay.
-- Verifying native dependencies.
-- Unable to verify native dependencies. dist=alpine linux, version=3.21.0. Continuing...

===> In what directory would you like to place the install? (leave blank to use '/root/lib/azure-cli'):

Question - can we skip the above prompts and go with "silent" install and use all defaults or is there any options to provide the value so that we have one line command execute ? Yes we can use pip install azure-cli but we have requirements to not to install pip or setuptools. We want to use InstallAzureCli.

pls provide the information.

Metadata

Metadata

Assignees

Labels

Azure CLI TeamThe command of the issue is owned by Azure CLI teamOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-author-feedbackMore information is needed from author to address the issue.no-recent-activityThere has been no recent activity on this issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions