rover icon indicating copy to clipboard operation
rover copied to clipboard

unable to connect to azure az cli

Open majdyafi opened this issue 2 years ago • 2 comments

docker run --rm -it -p 9000:9000 -v $(pwd):/src -v "$HOME/.azure-for-docker:/root/.azure" im2nguyen/rover
2023/04/12 12:07:08 Starting Rover... 2023/04/12 12:07:08 Initializing Terraform... 2023/04/12 12:07:15 Generating plan... 2023/04/12 12:07:18 Unable to parse Plan: Unable to run Plan: exit status 1

Error: unable to build authorizer for Resource Manager API: could not configure AzureCli Authorizer: could not parse Azure CLI version: launching Azure CLI: exec: "az": executable file not found in $PATH

with provider["registry.terraform.io/hashicorp/azurerm"], on demo.tf line 1, in provider "azurerm": 1: provider "azurerm" {

majdyafi avatar Apr 12 '23 12:04 majdyafi

as error says az is not found in $PATH, no rover issue.

kk-rishang avatar May 20 '23 18:05 kk-rishang

Getting the same thing and AZ CLI is definitely in PATH. I got this error when running the Docker version.

If I use the Windows release version, then it complains that my Terraform binary isn't found, but it is definitely added to Path.

image

Anyway, I got the Windows version to work using this:

rover.exe -tfPath "D:\5. Program Files (x86)\terraform\terraform.exe"

chaoscreater avatar Jun 24 '23 09:06 chaoscreater