Difference between revisions of "Install Azure CLI in Linux CentOS 7"

From Gejoreuy
Jump to navigation Jump to search
(Created page with "== Preparation == 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...")
 
Line 3: Line 3:
 
Before we install Azure CLI, we need to make sure we already have these installed :
 
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
+
# Python 3.6.x, 3.7.x or 3.8.x
2. libffi
+
# libffi
3. OpenSSL 1.0.2
+
# OpenSSL 1.0.2
  
 
If we have now it, install it like below :
 
If we have now it, install it like below :
  
 
  root@gejoreuy:~# yum install -y gcc libffi-devel python37u-devel openssl-devel
 
  root@gejoreuy:~# yum install -y gcc libffi-devel python37u-devel openssl-devel
 
  
 
== Step by Step Install Azure CLI ==
 
== Step by Step Install Azure CLI ==

Revision as of 15:26, 3 August 2021

Preparation

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 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