Skip to content

Instantly share code, notes, and snippets.


SrDios/login.go Secret

Created Oct 23, 2018
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)
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.