[Feature Request] 'Variables' and 'Variable groups' parameter for az pipelines create|update
See original GitHub issueIs 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:
- Created 4 years ago
- Reactions:4
- Comments:6 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The commands released as part of this change are the following two command groups-
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
Variable group linked to Azure Key Vault keys would be a great addition as well