Skip to content

Instantly share code, notes, and snippets.

@zloeber
Created March 23, 2020 20:19
Show Gist options
  • Save zloeber/bc3e48aa20001c81b718fdcfc4f58ce5 to your computer and use it in GitHub Desktop.
Save zloeber/bc3e48aa20001c81b718fdcfc4f58ce5 to your computer and use it in GitHub Desktop.
ado-var-groups-1
# 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