Azure / Azure/azure-devops-cli-extension

[Feature Request] All az pipelines variable-group subcommands should support --name argument

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

Description

**Is your feature request related to a problem? Please describe.**
All `az pipelines variable-group` subcommands should support --name argument.

If user wants to update, show, delete variable groups or add, edit or delete group variabled group-id must be known. To fetch group ip user must do extra manual request with CLI.

**Describe the solution you'd like**
Extension should support --name and fetch group id internally

**Workaround for batch update**
```bash
id=$($CMD pipelines variable-group list $AZ_EXTRA_FLAGS --org "$ORG" --project "$PROJECT" --output tsv --query '[?name == `'common'`]'.id)
$CMD pipelines variable-group delete $AZ_EXTRA_FLAGS --org "$ORG" --project "$PROJECT" --group-id $id
$CMD pipelines variable-group create $AZ_EXTRA_FLAGS --org "$ORG" --project "$PROJECT" --name common --variables $COMMON_VARIABLE_GROUP --authorize true
```

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.