question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] 'Variables' and 'Variable groups' parameter for az pipelines create|update

See original GitHub issue

Is your feature request related to a problem? Please describe. Some variables can’t be in the azure-pipelines.yaml file in source control. For that we have the ability to edit via the UI the variables of the pipeline definition. It would be ideal to have the ability to set variables while leveraging az pipelines create and az pipelines update.

Describe the solution you’d like az pipelines create --variables key1=value1 key2=value2 same for az pipelines update

Describe alternatives you’ve considered The alternative is to do that via the UI by editing the pipelines definition, but not very efficient for automation.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
atbaggacommented, Jul 19, 2019

The commands released as part of this change are the following two command groups-

  1. az pipelines variable
  2. az pipelines variable-group

You can manage creating variables normal/secrets using commands in these two groups. e.g. az pipelines variable create --name MyTestVar --value TestValue --pipeline-id 1

Linking variables and variable groups to pipelines is recommended to be done through yaml file for yaml based pipelines. Documentation for the same is here - https://docs.microsoft.com/en-us/azure/devops/pipelines/library/variable-groups?view=azure-devops&tabs=yaml

3reactions
LaurentLeslecommented, Jun 2, 2019

Variable group linked to Azure Key Vault keys would be a great addition as well

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add & use variable groups - Azure Pipelines
Share common variables across pipelines using variable groups.
Read more >
Update Redirect URIs from Azure DevOps - Martin CodeZ
The command to modify a variable group is az pipelines variable-group ... The --organization and --project parameters are used frequently, ...
Read more >
variables in azure devops
Feature branch: Builds the code and releases it … ... Select "Variables" and then "Link variable group": Azure DevOps pipeline linking a Variable...
Read more >
Masking runtime parameters in Azure DevOps pipeline logs
During our tests, we tried to define a variable as secret with the same value to the parameter, and in the pipeline logs,...
Read more >
Azure DevOps Automated Variable Groups - SPR
Azure DevOps Libraries are groups of variables which can be exceedingly useful in your pipelines. ... az pipelines variable-group create \.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found