Azure / Azure/azure-devops-cli-extension

[Feature Request] az pipeline variable-group importing

Open
#941 9 comments 5 reactions 0 assignees View on GitHub
Feature
Dominant language
Python
Stars
682
Forks
278
Avg merge
3d 23h
Merged PRs (30d)
3

Description

### Issue

When exporting variable-groups via Devops cli using the following command -
az pipelines variable-group show --group-id # -o yaml (Gets individual group variable) or if using this - az pipelines variable-group list -o yaml (Lists all the variable groups in one)

You end up with a long list of yaml code that you are unable to import, the same is if creating a new Variable Groups, this is more of an issue when moving DevOps accounts so doing an Export to then do a import. There appears to be no way to import this information.

### Feature

When creating large ranges of names and values to a new or update Pipeline variable-group, rather than putting these in each time, could a yaml or json file be used to import the names and values, as doing this with out this you manually enter the cli each time.

With multiple variables being required would mean entering in them multiple times, when there is only a few lines to import this isn't so much of an issue but when a yaml/json file could be over 200 lines doing this manually each time could become laborious and time consuming, so could something like the following be added?

i.e. –
az pipelines variable-group create -f c:\Azure\testyaml.yaml

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.