Tuesday, August 22, 2023

Install Azure CLI in Red Hat Linux | How to setup Azure CLI in Linux | How to Install Azure CLI in Red Hat Enterprise Linux

The Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources. The Azure CLI is available across Azure services and is designed to get you working quickly with Azure, with an emphasis on automation. Azure CLI is Microsoft's cross-platform command-line experience for managing Azure resources.

Azure CLI can be installed by following below steps:

Import the Microsoft repository key

sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc

For RHEL 8 or CentOS Stream 8, add packages-microsoft-com-prod repository:

sudo dnf install -y https://packages.microsoft.com/config/rhel/8/packages-microsoft-prod.rpm

Install with the dnf install command
sudo dnf install azure-cli -y

Check the version of Azure CLI

az version

Run the Azure CLI with the az command. To sign in, use the az login command.

az login

No comments:

Post a Comment

How to configure Self-Hosted GitHub Actions Runner | How to install Self-Hosted GitHub Actions Runner | Configure EC2 instance as self-hosted runner in GitHub Actions

A self-hosted GitHub runner is a machine (physical or virtual) that you set up and manage to run GitHub Actions workflows.  A self-hosted ru...