If you've tried to simply execute Microsoft's Azure-CLI installation method using curl and bash, you've probably run into errors about gcc being unable to find certain files during the build process. No fear, it's just a few dependencies that we need here.
From a basic Fedora 25 (or later) Workstation install, you'll need gcc
, libffi-devel
, python-devel
, openssl-devel
and redhat-rpm-config
. Run this command to install:
sudo dnf -y install gcc libffi-devel python-devel openssl-devel redhat-rpm-config
Once you have the required dependencies installed, all that's left to do is run Microsoft's installer for the CLI tool. Run this as your normal user without root privileges.
curl -L https://aka.ms/InstallAzureCli | bash