Error parsing json result from the Azure CLI: launching Azure CLI: exec: "az": executable file not found in %PATH%

Viewed 81

I get this error running a "terraform plan". I authenticated terraform to Azure via CLI. I have set up an account subscription. How can I solve this problem?

Error: building AzureRM Client: please ensure you have installed Azure CLI version 2.0.79 or newer. Error parsing JSON result from the Azure CLI: launching Azure CLI: exec: "az": executable file not found in %PATH%.

1 Answers

The error says that az is not found. So for this type of error simple way out is logging-in into Azure like below:

az login

enter image description here

Then the error goes:

enter image description here

And then you can check your subscriptions once like below:

 az account list

And following login step i got resolved my problem. And also check if you are using latest Azure Cli version. And also try the below command:

az account get-access-token

enter image description here

References taken from:

Related