Questions tagged [azure-pipelines]

For questions about Azure Pipelines, which is a proprietary Microsoft CI solution for deploying your applications.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
15 views

sonarqube analysis of a frontend (javascript) and backend (.net) from same azure devops yaml pipeline

I'm utilizing Azure DevOps YAML pipelines to construct both the backend and frontend of an application. We have .NET and React housed within the same repository, and our aim is to integrate SonarQube ...
Eduard Paul Lakida's user avatar
0 votes
1 answer
90 views

How to setup a DotNetCoreCLI@2 task to publish a self-contained exe-file for a WPF project with .Net 8?

The settings My goal is to understand the CI/CD process on Azure (and in general). For that, I have build a little Wpf-App. It is not doing much. Just displaying a simple ReadMe.txt file. A test ...
karwenzman's user avatar
0 votes
1 answer
82 views

Why are the outputs variables that I am passing from one job to another showing empty in Azure pipelines?

I have a pipeline with multiple jobs. I would like to send the output that I am setting in a powershell script to another job in the pipeline. I have followed several examples to do this, like: 'https:...
krakergig's user avatar
0 votes
0 answers
67 views

Failure when deploying Azure Container Apps

I am trying to deploy a container app to Azure and I have hit a roadblock. I am somewhat new to this space so I hope someone sees something that I am missing. I am building an image, putting that ...
AdamCodes716's user avatar
0 votes
0 answers
13 views

Managing Azure storage account with IP whitelisting using build agents with random IP's

I want to manage an Azure Storage Account which IP whitelisting enabled, in a pipeline which runs on an Azure DevOps build agent hosted by MS which have random IP's. As expected, as soon as I try to ...
Alex's user avatar
  • 101
0 votes
0 answers
16 views

Unable to run helm --set command in bash pipeline when using semicolon

I have a CICD pipeline in yaml which runs a bash command to run a series of helm commands. Part of the process is to insert values in the pipeline into the container which is installed by helm chart ...
David Hirst's user avatar
0 votes
0 answers
91 views

Azure pipeline if statement is always false

I've got a variable in my library with a value of 'yes': I store this variable in a variables object like so: variables: - name: runNonDeltaTest value: $(RUN_NON_DELTA_TEST) When running the ...
user3057533's user avatar
0 votes
0 answers
60 views

latest Changes are not reflecting in azure app service after deploying via azure devops pipeline

I have deployed java app in one of the app service using azuredevops pipeline. I have tested in one environment where manual deployments are not done , it is working fine. I have tested in another ...
Sandhya's user avatar
0 votes
0 answers
25 views

Best artifactory type for Azure release pipeline

We've just started to use Azure DevOps platform and having some doubts regarding artifactory type for release pipeline. Here's the situation: we get complete delivery in zip file from Dev team which ...
i8z's user avatar
  • 1
0 votes
0 answers
21 views

How to create a work item in Azure Boards using service hooks in the DevOps Projects

So in my organization, we have two different projects, Say Project-C and Project-D as follows: https://dev.azure.com/SomeOrganisation/Project-C https://dev.azure.com/SomeOrganisation/Project-D I ...
Black_Zero's user avatar
2 votes
1 answer
174 views

What are the differences between Azure DevOps (Pipelines) and GitHub Actions?

My team is thinking of switching from Azure DevOps to GitHub Actions, currently we are using Azure DevOps Pipelines to handle code deployments. Our release pipelines are configured in a way where they ...
Eric Swiggum's user avatar
0 votes
1 answer
873 views

In a YAML file how do I checkout a specific branch in different repo and fallback if it doesn't exist using Azure DevOps?

I have a project I need to build in ADO that contains code in two different repos. Usually there is a matching release branch in both, but occasionally not. I would like to get the matching value and ...
Dilbert789's user avatar
0 votes
1 answer
234 views

Azure pipeline is publishing an empty zip file

I have an Azure pipeline for a Blazor project and I'm trying to publish the results of the build to an Azure app service. The build completes fine but the deploy task throws an error. At first I ...
Chris's user avatar
  • 1
0 votes
0 answers
73 views

Azure DevOps clean download folder before run

I have a deployment job like this: jobs: - deployment: workspace: clean: all strategy: runOnce: deploy: steps: - download: build ...
Bouke's user avatar
  • 101
0 votes
3 answers
238 views

How do I access custom artifact properties in Azure Devops pipelines?

I've been using Azure Pipelines, but I'm stuck trying to find any examples or documentation on this one point. The PublishPipelineArtifact@1 documentation lists a properties input that you can attach ...
Clockwork-Muse's user avatar
0 votes
1 answer
201 views

How to specify ANY for tags in the yaml file for pipelines

In my pipeline definition, for getting resources from other pipeline, I'd like to define a default tags value to use, such as "release candidate", but allow to select to use any tags or even ...
Weishan Yang's user avatar
0 votes
1 answer
154 views

Report on job status by agent in Azure Devops

I have a bunch of on-prem agents and I want to create a report that lists the jobs per agent and their status. There doesn't seem to be anything in the Pipeline Analytics Metadata that references the ...
melkisadek's user avatar
0 votes
1 answer
263 views

Azure Pipelines: How to install Xamarin components (for iOS & Android) on MacOS13 to make msbuild work in terms of building a Xamarin/C# project

Essentially what the subject says. I need Xamarin components in order to build some Xamarin/iOS libs that can only be build on MacOS (using sharpie etc). Currently I'm using MacOS12 (which does have ...
XDS's user avatar
  • 103
0 votes
1 answer
26 views

Re-using deployment stages in multiple YAMLs

We have large application we deploy from ADO using classic pipelines. In the process of converting over to yaml. The application is made up of multiple smaller apps which are deployed individually ...
Ceefla's user avatar
  • 1
1 vote
1 answer
884 views

Azure DevOps Pipeline failure - Program does not contain a static 'Main' method suitable for an entry point

I have been tasked with deploying an email service to an Azure tenant using Windows Containers. In my Pipeline (Azure DevOps), I am receiving the following error when in the build step: CSC : error ...
Hayen's user avatar
  • 11
3 votes
1 answer
222 views

Deleted service connection in Azure DevOps and now cannot select a new one

I deleted what I thought were unused service connections in Azure DevOps, and now I cannot change the connection on existing pipelines. The build pipelines are yaml based but the service connections ...
BuildMePlease's user avatar
1 vote
1 answer
726 views

How do I refer in Azure Pipelines to an output variable defined in a previous stage for defining stage conditions and new variables?

I'm writing an Azure Pipeline where I use the targetBranchName of a pull request to define the test environment I'm going to use. Since targetBranchName has no value before execution, I created a &...
lpacheco's user avatar
  • 125
1 vote
0 answers
122 views

How to get Azure DevOps Deployments to work when using approval gate?

I am trying to learn automating Salesforce Deployments using Azure DevOps. Below are two yaml one of which works and other doesn't. This works: I am not using approval gates here. pr: autoCancel: &...
Abhishek Singh's user avatar
0 votes
0 answers
262 views

What is the best option for uploading files to Azure storage in Azure pipeline to use them in persistent volumes for AKS pods?

I want to upload files to Azure storage in Azure pipeline to use them in persistent volumes for AKS pods. What I did: Created a storage account with NFS enabled and created a container in the storage ...
alcohol is evil's user avatar
0 votes
1 answer
201 views

Azure DevOps Build Validation of other repo's pipeline: "while loading the YAML build pipeline. Object reference not set to an instance of an object."

This (nearly empty) Azure DevOps pipeline yaml fails when initiated because of a PR from another repo's Build Validation: azure-pipelines.yaml of "App A": pool: name: default steps: - ...
Jason Kleban's user avatar
1 vote
0 answers
963 views

Failed to pull docker image from azure container registry while training

I'm trying to run a job on Azure Ml using Azure-cli. The training code is present in a custom docker image uploaded to Azure container registry. After firing this command az ml job create -f test.yaml ...
user38618's user avatar
2 votes
0 answers
2k views

How to configure ArgoCD access to the Azure Repos from a deployment pipeline?

Right now I have several ideas in theory, but they all have problems. My setup is: Azure DevOps Services Azure Cloud A powerful service principal connection with which I run the pipeline Idea #1 ...
mark's user avatar
  • 191
0 votes
1 answer
70 views

What is limit of runs does Azure Devops pipeline keeps?

What is the limit, and where do you increase the default setting?
JCP's user avatar
  • 3
0 votes
1 answer
4k views

Value of succeeded() in Azure DevOps pipeline before first stage is run

In an Azure DevOps pipeline, what is the value of Agent.JobStatus before any stages have been run? Is it initialized to 'Succeeded' or is it initially undefined or set to null or something like that, ...
Green Grasso Holm's user avatar
1 vote
0 answers
670 views

Syntax to reference a resources variable in an Azure DevOps condition

I have an Azure Devops YAML pipeline with several stages. Some should run when resources.pipeline.myPipeline.sourceBranch starts with 'refs/heads/release/'. Which of the 500 different syntaxes that ...
Green Grasso Holm's user avatar
0 votes
1 answer
1k views

Azure DevOps, get the triggering branch of the triggering pipeline

I've got two (YAML) pipelines in Azure DevOps, call them B (application build) and D (application deployment). D deploys to Dev, QA, and Test, each in a separate stage. The QA and Test environments ...
Green Grasso Holm's user avatar
0 votes
0 answers
241 views

Database Project Deploy to AWS RDS Endpoint

Solving: Successfully run a "Publish Database Project" (dacpac) task against an AWS RDS instance endpoint vis Azure DevOps. Problem: The task uses SqlPackage.exe to handle the dacpac file ...
Ross Bush's user avatar
  • 101
0 votes
0 answers
304 views

Is there an equivalent of GitLab's "before_script" in Azure DevOps?

I have a pipeline with different tasks in one job: azure_pipelines.yml: jobs: - job: displayName: Deploy Terraform infrastructure steps: - task: Bash@3 displayName: Configure AWS ...
avazula's user avatar
  • 939
1 vote
1 answer
421 views

Trunk Based Development Deployment Pipeline

We are currently working on transitioning to Trunk Based Development and starting to look at our deployment pipeline and how we can improve. Our current workflow: All engineers work on the trunk, ...
Rob Fyffe's user avatar
  • 113
1 vote
1 answer
442 views

Missing some subscriptions in Azure DevOps UI when using automatic service principal

I am trying to select a subscription I have access to in another tenant from my Azure DevOps UI where I am connected to the Azure tenant AAD as a member with external login and certain permissions/...
Supernatix's user avatar
0 votes
0 answers
1k views

is it bad practice to store yaml pipelines in the same repo as code

I created a couple of yaml pipelines and am storing them in the gitrepo of the application that I am deploying. The issue is, Now I have a couple of tools in separate repos and often reuse the same ...
qBasicBoy's user avatar
  • 101
0 votes
1 answer
415 views

Why are Release and Build pipeline separated?

Most of the time I have seen that Infrastructure build and deployment have separate YAML configuration build and release respectively. Why do we do that? What If infrastructure build and deployments ...
bruno's user avatar
  • 3
1 vote
1 answer
1k views

Guarantee latest version of Chrome on Azure VM

We have automated tests run by an Azure pipeline on an Azure VM and would like to guarantee that the latest version of Chrome is installed before running the tests. Is there any way to do this? We use ...
Farinha's user avatar
  • 111
0 votes
2 answers
141 views

How do I run a CI build in a docker image matching the current `Dockerfile` while being resource-aware?

Given a repository containing a Dockerfile that defines the build environment used by the CI pipeline as well as by the developer (e.g. as a Visual Studio Code devcontainer), the CI pipeline shall ...
Roland Sarrazin's user avatar
1 vote
0 answers
67 views

SonarQube in Azure Devops

I am a newbie to DevOps and wanted to learn things by doing. What I have done: I got my code into the Azure Repo (courtesy: Visual Studio Credits) and have a successful build. Now I want to integrate ...
NutsAndBolts's user avatar
1 vote
1 answer
429 views

What permission is required to deploy release?

What permission is required to allow a user to manually deploy (or redeploy) a stage in an Azure DevOps Release Pipeline?
JumpingJezza's user avatar
0 votes
1 answer
2k views

Docker Push Container to Azure ACR "unauthorized: authentication required"

What is going on here? This should work. $ az logout $ az login To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code FW....C to authenticate. [ { &...
Adam Winter's user avatar
0 votes
1 answer
1k views

Azure pipelines Docker@2 build command does not pass through build args

I'm running an azure build pipeline for a dockerized application set up using an azure-pipelines.yml file. The problem is that we require a build arg passed through to the docker build command, but ...
Jake Conkerton-Darby's user avatar
0 votes
1 answer
334 views

Azure Web Apps Serves Old Files

I am using an Azure DevOps release pipeline to deploy code to an Azure Web App. It pulls my .war file from my most recent build pipeline to deploy. However, it serves old code. For example, the app ...
highsilkhat's user avatar
1 vote
1 answer
460 views

Checkout specific ref in Azure Pipeline from private GitHub

I'm facing a problem when trying to use a parameter in my resources. parameters: - name: MyVersion default: "0.0.0" resources: repositories: - repository: other type: github ...
user3280964's user avatar
2 votes
1 answer
65 views

How to prevent user who does not have approval rights to click redeploy if approved task fail in release?

In a release pipeline, we have a post deployment approval in a stage 1 task which triggers the stage 2 task. In the Approval Policies, we have checked the box: "The user requesting a release or ...
greenjackal's user avatar
0 votes
1 answer
776 views

Azure Devops deploy docker image to ACR using deployment job

I'm trying to deploy a docker image to Azure Container Registry via an Azure Devops pipeline. Now this works fine when I run it with this script: trigger: - master variables: # Container registry ...
Josh's user avatar
  • 101
0 votes
2 answers
1k views

Trigger different environments in one pipeline

I have a dev, uat, and prod environment for my ado project, and I just completed a pipeline deploy to dev. Is it better practice to have a second pipeline that triggers on the uat branch, or is ...
ChrisW's user avatar
  • 13
2 votes
1 answer
482 views

Merge trains in Azure DevOps

Is it possible to somehow implement a merge trains in Azure DevOps, similar to what GitLab does? Merge train example Three merge requests (A, B and C) are added to a merge train in order, which ...
spydon's user avatar
  • 121
0 votes
1 answer
58 views

Missing Red Hat agent specification in Agent Specification drop down in building Azure Pipeline

In Azure DevOps, I want to use an agent running Red Hat. How do I do that ? It does not list in the Agent Specification drop down: This link shows how to add a Self-Hosted Linux Redhat agent. Is this ...
Veverke's user avatar
  • 101