Install Azure CLI in Linux CentOS 7
Description
Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources.
Azure CLI is available across Azure services and is designed to get you working quickly with Azure, with an emphasis on automation.
Preparation
Before we install Azure CLI, we need to make sure we already have these installed :
- Python 3.6.x, 3.7.x or 3.8.x
- libffi
- OpenSSL 1.0.2
If we have now it, install it like below :
root@gejoreuy:~# yum install -y gcc libffi-devel python37u-devel openssl-devel
Step by Step Install Azure CLI
Install the CLI by running curl.
root@gejoreuy:~# curl -L https://aka.ms/InstallAzureCli | bash
If no issue, set the az cli can be run from anywhere.
root@gejoreuy:~# exec -l $SHELL
Check to make sure az cli installed successfully.
root@gejoreuy:~# az --version