If you want to interact with Microsoft Azure resources from your machine, you need an Azure CLI installed.
*Pre-Requisites: *
- Host Laptop (Windows, Mac, Linux)
- Azure CLI Installation documentation.
In this tutorial, I will share specific steps for installing Azure CLI using PowerShell.
Step 1: Installation using Powershell
Open PowerShell and copy paste the following commands
- For Windows 32 Bit
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'; Remove-Item .\AzureCLI.msi
- For Windows 64 Bit
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://aka.ms/installazurecliwindowsx64 -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'; Remove-Item .\AzureCLI.msi
Step 2: Verify Installation
you can enter in powershell by typing 'az --version'
-
az --version
PS C:\WINDOWS\system32> az --version
azure-cli 2.53.0
core 2.53.0
telemetry 1.1.0
Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Once you see this post - that's it. you are able to install Azure CLI successfully.
Step 3: Update the Azure CLI Uninstall
- type -
az upgrade
PS C:\WINDOWS\system32> az upgrade
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
You already have the latest azure-cli version: 2.53.0
Upgrade finished.You can enable auto-upgrade with 'az config set auto-upgrade.enable=yes'. More details in https://docs.microsoft.com/cli/azure/update-azure-cli#automatic-update
Step 4: Uninstall Azure CLI
Platform Instructions
- Windows 11 Start > Settings > Apps > Installed apps
- Windows 10 Start > Settings > System > Apps & Features
- Windows 8 and Windows 7 Start > Control Panel > Programs > Uninstall a program
Top comments (0)