Install Azure CLI in Linux CentOS 7

From Gejoreuy
Jump to navigation Jump to search


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.


Before we install Azure CLI, we need to make sure we already have these installed :

  1. Python 3.6.x, 3.7.x or 3.8.x
  2. libffi
  3. 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 | 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