Giter Site home page Giter Site logo

Comments (8)

 avatar commented on May 22, 2024 1

But ofcourse... Thanks, I'll give it a try.

from rover.

im2nguyen avatar im2nguyen commented on May 22, 2024 1

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.

therodfather avatar therodfather commented on May 22, 2024 1

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.

im2nguyen avatar im2nguyen commented on May 22, 2024

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.

im2nguyen avatar im2nguyen commented on May 22, 2024

Going to close this, if you're still experiencing this issue, can you comment/re-open on this issue? Thank you!

from rover.

therodfather avatar therodfather commented on May 22, 2024

Hey, any updates on this? I set the service principal but it still gave the same output.

from rover.

im2nguyen avatar im2nguyen commented on May 22, 2024

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.

therodfather avatar therodfather commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.