Azure CLI Installation on Linux

  1. Import the Microsoft repository key.

›_ Console

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

  1. For RHEL 9, CentOS Stream 9, Rocky Linux 9, or other RHEL-compatible distributions, add the packages-microsoft-com-prod repository.

›_ Console

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

image-20260629-053508.png

Microsoft packages

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

›_ Console

> dnf install azure-cli

image-20260629-053633.png


Installing Azure CLI packages