Created
March 23, 2020 20:19
-
-
Save zloeber/bc3e48aa20001c81b718fdcfc4f58ce5 to your computer and use it in GitHub Desktop.
ado-var-groups-1
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
# Login | |
az login --service-principal \ | |
--username "${SPNAPPID}" \ | |
--password "${SPNSECRET}" \ | |
--tenant "${TENANTID}" | |
# Add the cli extension | |
az extension add --name azure-devops | |
# Profit! | |
az pipelines variable-group create \ | |
--name "$name" \ | |
--authorize true \ | |
--detect false \ | |
--subscription "$AZSUB" \ | |
--organization "$ADO_ORG" \ | |
--project "$ADO_PROJECT" \ | |
--variables "${arr[@]}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment