Code Monkey home page Code Monkey logo

Comments (8)

ruslangabitov avatar ruslangabitov commented on July 17, 2024

Updated readme.
Now we can use:
subscriptionCert, err := ioutil.ReadFile(SUBSCRIPTION_CERTIFICATE_PATH)
if err != nil {
fmt.Println(err)
os.Exit(1)
}

client, err := management.NewClient(SUBSCRIPTION_ID, subscriptionCert)
if err != nil {
    fmt.Println(err)
    os.Exit(1)
}

from azure-sdk-for-go.

waitingkuo avatar waitingkuo commented on July 17, 2024

Thanks, it works!
Is it possible to use the publishsettings file to create the client?
#57

from azure-sdk-for-go.

anweiss avatar anweiss commented on July 17, 2024

@ahmetalpbalkan Since we made cert handling the responsibility of the caller, how do we want to provide for .publishsettings handling?

from azure-sdk-for-go.

jen20 avatar jen20 commented on July 17, 2024

@anweiss In my opinion this library should handle the .publishsettings files as it's Azure specific. It should also deal with multiple subscriptions in one file and mandate selection of which one is used in the case that more than one is present.

from azure-sdk-for-go.

ahmetb avatar ahmetb commented on July 17, 2024

@jen20 +1.
@anweiss We need a new constructor for the client. It was vaguely defined how the subscription was picked.
@waitingkuo you might want to switch to 1.2 tag to unblock yourself and use old version of SDK.

from azure-sdk-for-go.

waitingkuo avatar waitingkuo commented on July 17, 2024

According to the current architecture, i've made a patch
3c9cf2fecccf6bbbedbc117ac48c12f381536e02

from azure-sdk-for-go.

ahmetb avatar ahmetb commented on July 17, 2024

@waitingkuo can you please send a pull request? �We should probably add another constructor that takes Config as well and one should call another (just like what we have today)

from azure-sdk-for-go.

paulmey avatar paulmey commented on July 17, 2024

fixed in #65 / ea0d561

from azure-sdk-for-go.

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.