Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InstallAzureCli One Line Command ? #30580

Open
alnhk opened this issue Dec 26, 2024 · 2 comments
Open

InstallAzureCli One Line Command ? #30580

alnhk opened this issue Dec 26, 2024 · 2 comments
Assignees
Labels
Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization.
Milestone

Comments

@alnhk
Copy link

alnhk commented Dec 26, 2024

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.

@microsoft-github-policy-service microsoft-github-policy-service bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Dec 26, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Dec 26, 2024

Thank you for opening this issue, we will look into it.

@yonzhan yonzhan added the Azure CLI Team The command of the issue is owned by Azure CLI team label Dec 26, 2024
@yonzhan yonzhan added this to the Backlog milestone Dec 26, 2024
@bebound
Copy link
Contributor

bebound commented Jan 2, 2025

This script is deprecated. Please see #20476 for installing from pip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization.
Projects
None yet
Development

No branches or pull requests

3 participants