Giter VIP home page Giter VIP logo

Comments (3)

charleszipp avatar charleszipp commented on August 20, 2024 1

@dvasdekis, in order to use runAzLogin, you will need to specify a service connection via the environmentServiceName input in order for the azure cli to authenticate. The task uses the service connection's credentials to run az login. Without specifying the service connection, then it would have no means to authenticate against azure.
When doing this on your desktop, you have likely already logged into the az cli before running terraform import. Terraform will automatically pick the az cli context up to authenticate against azure.
If you cannot use a service connection, an alternative is to set the environment variables terraform expects for the azurerm provider. The task provides a means to more easily establish these via Secure Var Files. If you specify a secure var file via secureVarsFile input whose extension ends with .env it will export the vars set in the .env file as environment variables on the agent.

from azure-pipelines-tasks-terraform.

charleszipp avatar charleszipp commented on August 20, 2024

See also docs about how to specify a service connection here
Also, see docs about how to setup secure env files for manual configuration

from azure-pipelines-tasks-terraform.

dvasdekis avatar dvasdekis commented on August 20, 2024

Thanks Charles! Setting the service connection worked a treat :)

from azure-pipelines-tasks-terraform.

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.