1
votes

I have a build pipeline in YAML and it is working fine. I now want to create the release pipeline.

I have created the pipeline using the UI and I have added a task (which happens to be an AZURUE CLI Task), When U use the UI to add variables to the command I get the error.

#Your build pipeline references an undefined variable named ‘STORAGE_ACCOUNT_NAME’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
#Your build pipeline references an undefined variable named ‘STORAGE_ACCOUNT_KEY’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972

reading the documentation I need to add a

- variables:

section to the YAML, but I cannot find where to directly edit the release pipeline YAML. (The build pipeline YAML is in my code)

How do I edit that YAML Release Pipeline?

Alternatively, how do I add variables to this release pipeline using the UI?

1

1 Answers

0
votes

how do I add variables to this release pipeline using the UI

Edit your release pipeline and you will find the Variables tab just right beside Tasks:

enter image description here

Click Add to add new variables.

Or if you are using the variable group:

enter image description here

How do I edit that YAML Release Pipeline?

To enable YAML Release Pipeline, you need to enable Multi-stage YAML pipelines in Preview features:

enter image description here

Check Multi-stage YAML pipelines for more information.