Azure CLI Installation on Linux

  1. Import the Microsoft repository key.

›_ Console

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

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

›_ Console

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

tmpzgcxvpzp.png

Microsoft packages

  1. Install azure-cli with the dnf install command.

›_ Console

> dnf install azure-cli

tmpps3p_e20.jpg

Installing Azure CLI packages