The new Azure CLI – 2.0, The term ‘az’ is not recognized as the name of a cmdlet

Couple of interesting changes that MS has done are

  1. To switch from node to python
  2. And the other is “az configure”

az configure lets you choose the output you want and some other features like logging, sending usage info, all in all a great cli tool.

 

While installing the tooling, I ran into the following issue

az : The term ‘az’ is not recognized as the name of a cmdlet, function, script file, or operable program.

Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

At line:1 char:1

+ az

+ ~~~~~

+ CategoryInfo : ObjectNotFound: (az:String) [], CommandNotFoundException

+ FullyQualifiedErrorId : CommandNotFoundException

 

Per the website https://docs.microsoft.com/en-us/cli/azure/install-azure-cli#windows there is a Note asking to do this

Add %APPDATA%\PythonXY\Scripts to your PATH. Where X.Y is your Python version (for example, %APPDATA%\Python27\Scripts).

However on my machine I had to append another “Python” to get it running and by the way I installed python 3.6

%APPDATA%\Python\Python36\Scripts