Skip to content

Latest commit

 

History

History
67 lines (43 loc) · 2.23 KB

install-azure-cli-linux.md

File metadata and controls

67 lines (43 loc) · 2.23 KB
title description author ms.author manager ms.date ms.topic ms.service ms.tool ms.custom zone_pivot_group_filename zone_pivot_groups keywords
Install the Azure CLI on Linux | Microsoft Docs
Learn how to install and run the Azure CLI on Linux manually. You can install the Azure CLI on Linux computers with one command or a step-by-step process.
chasecrum
chasecrum
mamccrea
12/19/2022
conceptual
azure-cli
azure-cli
devx-track-azurecli, seo-azure-cli
azure/zone-pivot-groups.json
cli-linux-installation-method
linux cli, azure cli linux, install azure cli ubuntu, install azure cli linux

Install the Azure CLI on Linux

The Azure CLI is a cross-platform command-line tool that can be installed locally on Linux computers. You can use the Azure CLI on Linux to connect to Azure and execute administrative commands on Azure resources. The CLI on Linux allows the execution of various commands through a terminal using interactive command-line prompts or a script. When you are ready to install the Azure CLI on Linux, it is recommended to use a Linux distribution's package manager. Select the appropriate package manager for your distribution from the options above. If you do not have one of the listed package managers, you may manually install the Azure CLI on Linux by selecting the Install script option.

[!INCLUDE current-version]

::: zone pivot="dnf"

[!INCLUDE cli-install-linux-dnf]

::: zone-end

::: zone pivot="zypper"

[!INCLUDE cli-install-linux-zypper]

::: zone-end

::: zone pivot="apt"

[!INCLUDE cli-install-linux-apt]

::: zone-end

::: zone pivot="tdnf"

[!INCLUDE cli-install-linux-tdnf]

::: zone-end

::: zone pivot="script"

[!INCLUDE cli-install-linux-apt]

::: zone-end

Remove data

If you don't plan to reinstall Azure CLI, remove its data.

rm -rf ~/.azure

Next Steps

Now that you've installed the Azure CLI, take a short tour of its features and common commands.

[!div class="nextstepaction"] Get started with the Azure CLI