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...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
== Description ==
 +
 +
Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources.
 +
<br>Azure CLI is available across Azure services and is designed to get you working quickly with Azure, with an emphasis on automation.
 +
 
== Preparation ==
 
== Preparation ==
  
 
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 ==

Latest revision as of 15:28, 3 August 2021

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 :

  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