Comments (8)
But ofcourse... Thanks, I'll give it a try.
from rover.
You could try downloading the rover binary and run it locally.
Just to confirm, these are the steps to export the Azure environment variables to the container.
$ printenv | grep "ARM" > .env
Then, add it as environment variables to your Docker container with --env-file
flag.
$ docker run --rm -it -p 9000:9000 -v $(pwd):/src --env-file ./.env im2nguyen/rover
from rover.
You could try downloading the rover binary and run it locally.
Just to confirm, these are the steps to export the Azure environment variables to the container.
$ printenv | grep "ARM" > .env
Then, add it as environment variables to your Docker container with
--env-file
flag.$ docker run --rm -it -p 9000:9000 -v $(pwd):/src --env-file ./.env im2nguyen/rover
Yesssss! That was the missing info. Thank you!!
from rover.
Hi @andreasasujacgi, glad you like it so far! The reason why it's not working is because the Docker image doesn't have the az
CLI. I recommend using environment variables containing your Azure credentials to resolve this issue.
This issue/PR raised similar concerns. Please let me know if that helps!
First, create your service principal.
$ az ad sp create-for-rbac --role="Contributor"
{
"appId": "00000000-0000-0000-0000-000000000000",
"displayName": "azure-cli-2017-06-05-10-41-15",
"name": "http://azure-cli-2017-06-05-10-41-15",
"password": "0000-0000-0000-0000-000000000000",
"tenant": "00000000-0000-0000-0000-000000000000"
}
Then, configure Terraform to use the service principal by setting the following environment variables only (no CLI).
$ export ARM_CLIENT_ID="00000000-0000-0000-0000-000000000000"
$ export ARM_CLIENT_SECRET="00000000-0000-0000-0000-000000000000"
$ export ARM_SUBSCRIPTION_ID="00000000-0000-0000-0000-000000000000"
$ export ARM_TENANT_ID="00000000-0000-0000-0000-000000000000"
The provider block will automatically use these to auth to Azure.
# Configure the Microsoft Azure Provider
provider "azurerm" {
features {}
}
from rover.
Going to close this, if you're still experiencing this issue, can you comment/re-open on this issue? Thank you!
from rover.
Hey, any updates on this? I set the service principal but it still gave the same output.
from rover.
Hey @therodfather, did you pass the environment variables into the docker container?
The Azure provider defaults to using the az
CLI when it doesn't detect the necessary environment variables to authenticate to Azure.
from rover.
I set the environment variables as show in the example above. I'm wondering if I got some of the information incorrect. Are there any other step besides exporting them?
from rover.
Related Issues (20)
- Dependencies in configuration blocks are not shown HOT 1
- SVG image is not at all visible HOT 2
- SIGSEGV in map.go line 250 HOT 2
- Dependencies GCP
- Windows support HOT 2
- Can we have a new release from main? HOT 2
- [Feature Request] pass a plan file instead of generating inside rover HOT 9
- Issues with terraform versioning when using rover
- Brew Terraform dependency
- Plan fails due to missing variable, even when passing variable with -tfVar HOT 1
- CI/CD Integration ideas
- terraform target option
- UI Improvements
- unable to connect to azure az cli HOT 2
- Was Rover Development Dropped? HOT 4
- UI - pan/zoom enhancements HOT 6
- Support OpenTofu HOT 2
- Terraform Version is out dated HOT 1
- 'invalid memory address or nil pointer dereference' against local plan
- Explain "Continuing without loading module from filesystem"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rover.