How do i install azure command line tools?
-
Link: https://azure.microsoft.com/en-us/free/?b=17.01
Link: https://docs.microsoft.com/en-us/azure/xplat-cli-install (command install)After you have setup your Azure account on the website, you can install azure command line utilities to manage your Azure cloud platform.
First you need to install Node.js and npm. Node.js is a javascript runtime server, essentially an advanced development tool. See link: https://nodejs.org/en/about. npm is a javascript package manager.
There are three methods to install the command line tools.
- Use npm
- Use Windows MSI or Mac installer
- Use within a docker container.
To install under linux:
$ sudo npm install -g azure-cli
To view all the options:
$ azure help
To install the docker container:
$ docker run -it microsoft/azure-cli
Enable bash command line completion:
$ azure --completion >> ~/azure.completion.sh $ echo 'source ~/azure.completion.sh' >> ~/.bash_profile
To upgrade the tools:
$ sudo npm update -g azure-cli
© Lightnetics 2024