How to install Azure CLI
on CentOS

Azure CLI

Azure CLI

Azure CLI Team (azpycli) Verified account
  • Azure CLI Team (azpycli) Verified account

Microsoft Azure CLI

A great cloud needs great tools; we're excited to introduce Azure CLI 2.0, our next generation multi-platform command line experience for Azure.

Details for Azure CLI

License
MIT
Last updated
19 January 2018

Enable snaps on CentOS and install Azure CLI

Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.

Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.

Enable snapd

Snap is available for CentOS 7.6+, and Red Hat Enterprise Linux 7.6+, from the Extra Packages for Enterprise Linux (EPEL) repository. The EPEL repository can be added to your system with the following command:

Snap can now be installed as follows:

Once installed, the systemd unit that manages the main snap communication socket needs to be enabled:

To enable classic snap support, enter the following to create a symbolic link between /var/lib/snapd/snap and /snap:

Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.

Install Azure CLI

To install Azure CLI, simply use the following command:

Other popular snaps…

See more...
See more in Featured

More things to do…

Get the snap store

Browse and find snaps from the convenience of your desktop using the snap store snap.

Learn more about snaps

Interested to find out more about snaps? Want to publish your own application? Visit snapcraft.io now.