Go to the official Azure CLI download page:
👉 https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows
Click on the link that says “Download the Microsoft Installer (MSI)”.
Open the downloaded .msi
file.
Follow the installer steps:
Accept the license.
Leave default settings.
Finish setup.
Open Command Prompt or PowerShell, and type:
bash az --version
This should show the version number, meaning it's installed correctly.
Open Terminal, then run the following:
bash brew update && brew install azure-cli
Make sure you have Homebrew installed. If not, you’ll need to install that first.
Then check:
bash az --version
In the terminal, run:
bash curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
Then verify:
bash az --version