An Azure service that is used to provision Windows and Linux virtual machines.
Welcome to Microsoft Q&A
Hello @John Larew , I hope you are doing well.
The command:
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
installs the Azure CLI system-wide on Debian-based Linux distributions. The use of sudo means the installation is performed with administrative privileges and is not limited to the current user.
For uninstalling Azure CLI, there is no separate uninstall script corresponding to the installation script. Since the installation uses the system package manager, you can remove it with:
sudo apt remove azure-cli
If you also want to remove the package configuration files:
sudo apt purge azure-cli
You can then optionally remove unused dependencies:
sudo apt autoremove
The installation location and package management are handled by APT, so the installation is system-wide rather than user-specific. The InstallAzureCLIDeb script does not provide a parameter to switch between a per-user and system-wide installation.
You can verify the installed version with:
az version
And check the location of the executable with:
which az
References:
If my answer helped you, please consider marking it as accepted. This helps others in the community find similar solutions.