How to Install Azure CLI in Cent OS 7/8 or RHEL 7/8

How to Install Azure CLI in Cent OS 7/8 or RHEL 7/8

Azure CLI

For Linux distributions with yum such as RHEL, Fedora, or CentOS, there's a package for the Azure CLI. The current version of the Azure CLI is 2.3.1.

1. Import the Microsoft repository key.
rpm --import https://packages.microsoft.com/keys/microsoft.asc

2. Create local azure-cli repository information.
sh -c 'echo -e "[azure-cli]
name=Azure CLI
baseurl=https://packages.microsoft.com/yumrepos/azure-cli
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/azure-cli.repo'

3. Install with the yum install command.

yum install azure-cli

Check the Azure CLI Version:

az --version

1. Run the login command.

az login

The CLI will open your default browser and load an Azure sign-in page.

Otherwise, open a browser page at https://aka.ms/devicelogin and enter the authorization code displayed in your terminal.

2. Sign in with your account credentials in the browser.

0 Response to "How to Install Azure CLI in Cent OS 7/8 or RHEL 7/8"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel