Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to connect to azure az cli #124

Open
majdyafi opened this issue Apr 12, 2023 · 2 comments
Open

unable to connect to azure az cli #124

majdyafi opened this issue Apr 12, 2023 · 2 comments

Comments

@majdyafi
Copy link

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" {

@kk-rishang
Copy link

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

@chaoscreater
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants