Azure-cli: unattended install for cli2.0

Created on 3 Apr 2017  路  3Comments  路  Source: Azure/azure-cli

hi,
is there a way to perform an unattended install of cli2.0?

for comparison aws cli is a simple 'pip install awscli'

this is convenient to preload the cli into packer images etc..

Most helpful comment

This is what i do for Docker, hope it helps

RUN pip install --user azure-cli
ENV PATH "$PATH:/<user path>/.local/bin/"
# Add any components etc
RUN az component update --add acr

All 3 comments

This is what i do for Docker, hope it helps

RUN pip install --user azure-cli
ENV PATH "$PATH:/<user path>/.local/bin/"
# Add any components etc
RUN az component update --add acr

https://docs.microsoft.com/en-us/cli/azure/install-azure-cli

Pip install is the way to go. If you are installing on Linux, be sure to check out the prerequisites section in the install guid.

@IainColledge @tjprescott Thanks!

Was this page helpful?
0 / 5 - 0 ratings