1

I want to use azure key vault secrets in azure devops release pipeline.could someone help me with powershell script in which I can define these variables and pass it in pipeline.

1 Answer 1

3

Powershell script that can be added to a release pipeline for fetching variables from key vault

You could configure a Variable Group to connect to an Azure Key Vault:

  • Go to "Pipelines" and then "Library" and "Add variable group".
  • Link secrets from an Azure key vault
  • Configure a Pipeline to make use of the new Variable Group

Then, whatever variables you have in your variable group can be accessed from your build pipe as $(VariableNameHere) including the key vault.

You could check the great document for some more details.

Hope this helps.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.