Hi@akhtar,
For Linux distributions with yum such as RHEL, Fedora, or CentOS, there's a package for the Azure CLI. You need to create the yum repository for Azure CLI. You can follow the below-given steps.
$ sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo 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'
$ sudo yum install azure-cli
$ az login
Hope this helps!!
To know more about Azure, enroll today with our Azure certification course.
Thanks!!