Questions tagged [azure-yaml-pipelines]
146 questions
0
votes
1 answer
Azure DevOps pipeline yaml nested variables
So I have a sql user I want to use in my pipeline. Lets say username is "fred", password is "myPass". I store sql passwords in key vault, with a secret named afther the usernames. So for in the above case, secret name would be "fred"
In a pipeline…

Nikola R
- 33
- 1
- 3
0
votes
1 answer
How can I download an Azure Artifact (not build artifact) in a Azure Pipeline (YAML)
Is there a way to download an Azure Artifact into a Azure Pipeline? I see there's way to download a Build Artifact, however I am not looking for this. I push an Azure Artifact and need it in my pipeline.
user14925447
0
votes
0 answers
Git config still contains extraheader keys. It may cause errors
Git config still contains extraheader keys. It may cause errors. To remove the credential, execute git config --unset-all key-name from the repository root.
This warning keeps popping up on my pipeline runs(does nothing but its annoying to see it…
0
votes
1 answer
How to get build name on Azure?
My goal is to get the build name from Azure YAML pipeline code.
For example, here it is #20220803.9 JBS-2413 Do not approve yet, this is an experiment of automating the tra...
I looked here but no…

TSR
- 17,242
- 27
- 93
- 197
0
votes
2 answers
How build terraform approve and non approve YAML pipelines in Azure DevOps
I have configured the below YAML pipeline for generating terraform plan.
trigger:
- none
stages:
- stage: Terraform Build
displayName: Terraform Validate
pool:
vmImage: "ubuntu-latest"
jobs:
- job: Terraform Validate
…

Pradeep
- 5,101
- 14
- 68
- 140
0
votes
1 answer
Variable values are empty after stages following the first
I'm trying to access a variable from one stage in multiple consecutive stages.
In the first stage the variable has the correct value, but in all the following stages it becomes an empty string.
See also this post for more info
Any help would be…

Gab
- 1
- 1
0
votes
2 answers
Azure YAML if-else always fail
I am recently doing an CI/CD setup using Azure. The goal is to have the developer select the type of build to be created i.e Staging / Prod.
Thanks to How to write if else condition in Azure DevOps Pipeline, I have added following code…

Ganesh Somani
- 2,280
- 2
- 28
- 37
0
votes
2 answers
How to specify dynamic value as environment name for virtual machine resource in yaml pipelines
We are planning to move our release pipelines to yaml and we are ready with it.
I have multiple environments like dev, test and prod where I'm trying to use same deployment job templates for all environments.
jobs:
- deployment: deploy
…

Kart
- 53
- 2
- 8
0
votes
1 answer
Azure DevOps Pipelines - Deploy Cancelled
We had a service connection certificate expire last week so we created a new service connection and since then the deploy stage in our yaml pipeline will not run, the UI reports a status of cancelled and when I go into the logs this is all I…

Phil
- 1,609
- 12
- 24
0
votes
2 answers
Azure Pipeline: Unexpected value 'steps'
Can anybody point me in the right direction here?
When I attempt to kick off the pipeline from the main yaml template the reference template gives me the unexpected 'steps' value.
I attempted to add a stage before the defined job and then receive…

Taylor83
- 17
- 6
0
votes
1 answer
PowerShell Task not running the script in Azure Pipelines?
I have a powershell task that is used to run a script which involves creating azure resources (Example: Resource group, Azure Key Vault, Function App...). When the pipeline is being run and it arrives to the powershell task in the deploy stage, it…

Noobie2021
- 281
- 4
- 23
0
votes
2 answers
Azure DevOps Pipeline Resource Trigger is no longer working
I have a deployment pipeline that should run when the build pipeline completes. Here's the yaml:
resources:
pipelines:
- pipeline: BuildPipeline
source: buildpipelinename
trigger: true
I have set the Default branch for manual and…

Rachel
- 686
- 1
- 6
- 18
0
votes
1 answer
Azure Devops pipeline can't find a checkouted template
My issue
I have an Azure devops project with a template on another repository than main one's.
I try to load the template but I get this:
/azure-pipelines.yml: File /TemplateRepository/build.yml not found…

Frédéric De Lène Mirouze
- 545
- 5
- 25
0
votes
1 answer
Run a powerscript file through a YAML task
Do you have some simple working example on how to run a powershell script file in a task inside YAML file. just like this one? Seems that mine is not able to pick up and execute the script since logs are not being printed.
- task: PowerShell@2
…

rnstvrcstll
- 71
- 1
- 7
0
votes
1 answer
How to copy data from private S3 bucket to Azure Blob storage via Azure yaml pipeline
I have one S3 bucket storing CSV files in it. New CSV files get added to this bucket at the beginning of each month. I want these new files to be uploaded automatically to the Azure blob storage at the beginning of each month.
The way I was thinking…

Auto geek
- 464
- 1
- 6
- 21