Skip to main content

Azure DevOps Variable Groups as YAML files

Project description

vaml: Azure DevOps Variable Groups as YAML files

vaml helps you get Azure DevOps variable groups as simple YAML files, making it easier than the current UI to modify a large amount of variable groups, while also allowing to put them back into the AZDO Library.

Introduction

vaml is a tool to get and put Azure DevOps variable groups as files in YAML format.

Why?

When you have multiple variable group to modify, the Azure DevOps interface can be a nuescence, going back and forth between variable groups while searching means you have to search again, and again, and again, this is very time consuming.

So I wanted a tool to obtain one, many or all variable groups in a project in one sweep, modify them locally, and them put them back.

Usage

VAML requires 3 things:

  • Organization
  • Project
  • Personal Access Token (Please create this in Azure DevOps)

They can be set as environment variables:

  • VAML_ORGANIZATION
  • VAML_PROJECT
  • VAML_PAT

Example:

export VAML_ORGANIZATION=ExampleOrg
export VAML_PROJECT=ExampleProject
export VAML_PAT=accesstokengoeshere
vaml get 'project-testing*'

As a config file in (~/.vaml.cfg)

organization: ExampleOrg
project: ExampleProject
pat: accesstokengoeshere

Example: vaml get 'project-testing*'

Or as arguments: ./vaml --organization ExampleOrg --project ExampleProject -pat accesstokengoeshere get 'testing-project*' to get the arguments per command.

Currently supported commands:

  • get
  • put

Caveats

Currently only GET and PUT operations are allowed, so there's the following Todo

Todo

  • Create and delete operations
  • Ability to identify mixed operations, update and create for one-off operations

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vaml-0.1.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vaml-0.1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file vaml-0.1.1.tar.gz.

File metadata

  • Download URL: vaml-0.1.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.7 Darwin/19.4.0

File hashes

Hashes for vaml-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9d110f443ab1d62e0d427ce08d72b632e52e7889175d2a78112fd0cf36683531
MD5 c782900c42391ef271cf4914489d6019
BLAKE2b-256 5c8c26d935241fbe1eb00d72082ed94dabfb9f35272b894a5f3803a89cad78a5

See more details on using hashes here.

File details

Details for the file vaml-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: vaml-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.7 Darwin/19.4.0

File hashes

Hashes for vaml-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd62d8b8f951d7f47cb90fdeb431a0d13898a0d04a00b5552f5701a59bfc4bf4
MD5 0c900350b6ebfba9e44c00ce55a4f027
BLAKE2b-256 79df5a4dadf5fb112eab5f3374849805d408f35bd641f52b610538b92653e86a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page