-
-
Save SrDios/137f3365f557836e69835f5812d1a867 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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