Giter Site home page Giter Site logo

azure:login: make deps explicit about klb HOT 8 OPEN

katcipis avatar katcipis commented on September 1, 2024 1
azure:login: make deps explicit

from klb.

Comments (8)

i4ki avatar i4ki commented on September 1, 2024 1

got it! Only wondering for real use cases for that. Thanks!

from klb.

vitorarins avatar vitorarins commented on September 1, 2024

I agree completely. But I think it should be subscription instead of service_principal. Am I tripping?

from klb.

i4ki avatar i4ki commented on September 1, 2024

but then klb users will have to invoke azure_login passing the environment variables anyway.
I'm not against this change, only missing the benefits.

from klb.

katcipis avatar katcipis commented on September 1, 2024

@tiago4orion why they have to use env vars ? it is not required, we assumed that was the best way. It could be a config file that is loaded from the user HOME (like aws/azure cli).

We can go on using env vars, from another helper function, but it seems like a good idea to have a explicit login function that is not coupled with environment variables.

from klb.

katcipis avatar katcipis commented on September 1, 2024

Even the name change seems advantageous to me, it is very odd to just call azure_login with no parameters and it just works, or not :-P

azure_login_env would make the env vars explicit and give an option to people who want to handle this differently.

I think @ppizarro is one of these people =)

from klb.

katcipis avatar katcipis commented on September 1, 2024

@vitorarins it was @lborguetti who called like that, I never inspected in details. I looked here:

https://github.com/NeowayLabs/klb/blob/master/azure/login.sh#L24

And it seems that it is a username...got a little confused. @lborguetti some help ?

from klb.

vitorarins avatar vitorarins commented on September 1, 2024

@katcipis Ok then.

@tiago4orion maybe a use case would be automating resources in more than one subscription.

from klb.

ppizarro avatar ppizarro commented on September 1, 2024

from klb.

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.