Skip to content

Instantly share code, notes, and snippets.

@gravejester
Last active June 13, 2017 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gravejester/3fafce127f069b004885d24bd6db3356 to your computer and use it in GitHub Desktop.
Save gravejester/3fafce127f069b004885d24bd6db3356 to your computer and use it in GitHub Desktop.
@echo off
IF [%1]==[] (
IF [%2]==[] (
IF [%3]==[] (
az login
)
)
) ELSE (
az login --username %1 --password %2 --tenant %3 --service-principal
)
REM YOUR CODE GOES HERE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment