Accessing an Azure variable group from a different organization in a yaml pipeline

Viewed 42

I got a variable group in organization A in the library of Project1. I got a yaml pipeline in organization B in the repo of Project2. Usually to access a group, you just define it in the variables section, but in case of different organizations, how can the pipeline access the variable group?

1 Answers

I am afraid there is no such a built-in feature in Azure DevOps to share the variable groups across organizations. Currently we even cannot share variable groups across team projects within the same organization.

There's already similar features suggested before :

As a workaround, you can use the Azure Key Vault task to pull data from Azure Key Vault. You can have as many Vaults as you like and use in one or all projects. Alternately, create a new variable group in organization B and enable ā€œLink secrets from an Azure key vault as variablesā€. See Add & use variable groups for details.

Related