Fix Azure CLI Installer Error on Windows

visibility 18 event 2022-12-19 access_time 2 months ago language English
more_vert

When installing Azure CLI tool on Windows 10 or 11 directly via Windows installer, you may encounter this error - cannot find the path specified. 

Solution

Azure CLI requires Administrator permission when installing. You can follow these steps to fix the above error.

  1. Go to the folder that contains your downloaded Azure CLI installer. For example, azure-cli-2.43.0.msi.
  2. Click File in the menu and then click Open Windows PowerShell -> Open Windows PowerShell as administrator.
  3. In the opened PowerShell terminal, run the downloaded msi file like the following screenshot shows:
    20221219102040-image.png
  4. Follow the installer to complete the setup.

Once the installation is completed, you can type command az version in any terminal to verify:

az --version
azure-cli                         2.43.0

core                              2.43.0
telemetry                          1.0.8

Dependencies:
msal                              1.20.0
azure-mgmt-resource             21.1.0b1

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\fahao\.azure\cliextensions'

Python (Windows) 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:37:59) [MSC v.1933 32 bit (Intel)]

Legal docs and information: aka.ms/AzureCliLegal


Your CLI is up-to-date.
copyright This page is subject to Site terms.
Like this article?
Share on

Please log in or register to comment.

account_circle Log in person_add Register

Log in with external accounts