Skip to content

Instantly share code, notes, and snippets.

@SrDios SrDios/login.go Secret
Created Oct 23, 2018

Embed
What would you like to do?
func login() bool {
out, err := exec.Command("az", "login", "--service-principal", "-u", userid, "-p", secret, "--tenant", teenant, "--allow-no-subscriptions").Output()
if err != nil {
fmt.Printf("There was a login error: %s", out)
color.R.Printf(err.Error())
return false
}
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.