Skip to main content

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
0 votes
0 answers
10 views

How to create vnet peering between the vnet for my vm and the vnet where azure pipeline agents are hosted?

I try to run some scans on Azure pipeline agents and send the result from the scan to application hosted on a vm in an Azure virtual machine. Azure pipeline agents are Microsoft managed, but the ...
verb's user avatar
  • 1
0 votes
0 answers
19 views

Azure Devops not pulling the latest build artifact from the branch that I passed in using a variable

When I run this pipeline in Azure Devops, it doesn't pull in the latest build from the master branch. Here's what I have: resources: pipelines: - pipeline: My-Pipeline source: My-Source ...
user45330's user avatar
0 votes
0 answers
7 views

Pipeline flagging build as failed when a warning is printed to the output stream

I have an azure-pipelines.yml file which runs a django server. Now, I had set SET GLOBAL sql_mode = ''; in MySQL. So when the django server starts its throws a warning which is getting printed to the ...
anjanesh's user avatar
  • 101
0 votes
0 answers
19 views

How should we organize our pipelines?

In a large cloud software project, we are using Azure DevOps yaml pipelines (in one DevOps project) for various purposes: validation of changes (set up as prerequisites for pull requests) build of ...
F-H's user avatar
  • 101
0 votes
1 answer
506 views

Pass a Pipeline Variable Between Jobs

Before I start using this hack that I found from an article in 2020, I would like to ask if this is a supported feature or is there an easy solution that I have overlooked. PROBLEM: In a single ...
Ross Bush's user avatar
  • 103
0 votes
0 answers
21 views

Link Deployment status to workitems in TFS

I am new to Tfs or Azure DevOps and I am trying to link deployment status of my releases to work items. I have tried going to classic release pipelines -> options -> integrations -> Report ...
Ramu's user avatar
  • 1
0 votes
0 answers
51 views

Azure Devops pipeline to build .NET Framework Artifact multiple projects

I am using Azure DevOps to build and package a .NET csproj with multiple project references. While the MSBuild task successfully compiles the csproj and includes all referenced projects in the bin\...
Jonathan Buffoni's user avatar
0 votes
0 answers
43 views

How do I gracefully rename a pipeline YAML (yml) file without braking the pull request merging process?

We have a pull request process for a repo "Repo-1" that requires the Azure DevOps pipeline "Pipeline-1", pointing to "azure-pipeline.yml", to pass. "azure-pipeline....
Roland Sarrazin's user avatar
0 votes
1 answer
762 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
2 answers
428 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
1 answer
70 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
2 votes
1 answer
897 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
2k 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
566 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
3 answers
628 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
378 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
304 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
481 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
51 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
2 votes
1 answer
1k 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
  • 21
3 votes
1 answer
331 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
1k 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
  • 115
0 votes
1 answer
300 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
0 votes
0 answers
1k 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
  • 181
0 votes
1 answer
85 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
1 vote
1 answer
5k 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
0 votes
1 answer
2k 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
1 vote
1 answer
539 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
507 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
1 answer
540 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
2k 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
170 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
1 answer
604 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
420 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
599 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
83 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
940 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
2k 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
545 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
59 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
1 vote
1 answer
1k views

Equivalent of dependsOn in azure-pipelines?

In azure-pipelines one can use dependsOn to indicate what jobs or deployments should be completed before another job will be started. At the moment, the dependsOn array of the final job has to be ...
030's user avatar
  • 13.2k
0 votes
1 answer
791 views

access secret Azure DevOps environment variables in SpecFlow tests

I have a SpecFlow test suite running some Selenium UI tests for our web app in ADO, and we need to access some sensitive information to be able to log in to various places. They are currently stored ...
Jeremy Meadows's user avatar
4 votes
1 answer
3k views

Deployment group not showing in Azure DevOps release pipeline

I am trying to follow these instructions: https://docs.microsoft.com/en-us/azure/devops/pipelines/apps/cd/deploy-webdeploy-iis-deploygroups I get to step 6 under "Define your CD release pipeline&...
Chris's user avatar
  • 181
4 votes
3 answers
10k views

Azure DevOps Clean after pipeline run

I have self-hosted build agents using Azure DevOps. We have the clean flag in the checkout step, however we run out of space sometimes. What is the preferred way of cleaning the agents' work ...
zerocukor287's user avatar
0 votes
2 answers
686 views

Azure Pipeline Ubuntu 20.04 agent not picking up jobs

I took over admin of our dev environment, found out our Azure Pipelines Build Agent is running on the computer of an employee that quit, under his name. Trying to get a pipeline running on an Unbuntu ...
mmeasor's user avatar
  • 101
2 votes
0 answers
959 views

Programmatically access output of azure pipeline runs?

Is there an SDK or cli tooling to retrieve the logging output of steps from azure pipeline runs ? I'd really like to be able to grep into the output of a given template I am changing for prior runs ...
Scott Stensland's user avatar
2 votes
2 answers
12k views

Deployment Error: getaddrinfo ENOTFOUND <appServiceName>.scm.<appServiceEnvironment>.appserviceenvironment.net

Issue We're getting the error: ##[error]Error: Error: Failed to deploy web package to App Service. Error: getaddrinfo ENOTFOUND {appServiceName}.scm.{appServiceEnvironment}.appserviceenvironment.net {...
JohnLBevan's user avatar