Questions tagged [azure-pipelines]
For questions about Azure Pipelines, which is a proprietary Microsoft CI solution for deploying your applications.
133
questions
0
votes
0
answers
9
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
...
0
votes
2
answers
39
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 ...
0
votes
1
answer
28
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 ...
0
votes
1
answer
37
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 ...
0
votes
1
answer
72
views
Azure Pipelines: How to install Xamarin components (for iOS & Android) on MacOS13 to make msbuild work in terms of building a 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 ...
0
votes
1
answer
20
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 ...
1
vote
1
answer
382
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 ...
2
votes
0
answers
114
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 ...
1
vote
0
answers
439
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 &...
1
vote
0
answers
64
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: &...
0
votes
0
answers
154
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 ...
0
votes
0
answers
127
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:
- ...
1
vote
0
answers
716
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 ...
0
votes
0
answers
52
views
Improvements to Azure Release workflow
I am looking for some feedback on how we can improve our release pipeline in Azure.
We have multiple environments with a corresponding deploy/* branch. Once these deploy branches are updated a release ...
0
votes
0
answers
412
views
Changes are not reflecting in azure app service after deploying via azure devops pipeline
I have a CI/CD pipeline in the azure DevOps pipeline that deploys the app into the azure app Service. Both build and release pipelines are executing without any errors. Before some days the deployed ...
2
votes
0
answers
1k
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
...
0
votes
1
answer
52
views
What is limit of runs does Azure Devops pipeline keeps?
What is the limit, and where do you increase the default setting?
0
votes
0
answers
14
views
Azure devops bug? Assigning default values to shell variables
Assigning default values to shell variables AgentPoolName, but if i unset "AGENT_POOLNAME" curl command select works for the default "the-prd" but when "AGENT_POOLNAME" ...
0
votes
0
answers
180
views
Azure Devops PR trigger doesn't respect path filters:
I have a build validation pipeline which generates and commits html based on jinja templates. Ideally this automatic commit should not re-trigger the pipeline during an open pull request and I use ...
0
votes
0
answers
223
views
How to write the web,config file inside the build (azureDevops pipeline)
I have deployed an Angular app through the pipeline, but some of the anchor tags are not working and throw this error when
The resource you are looking for has been removed, had its name
changed, or ...
0
votes
0
answers
111
views
Azure DevOps build pipeline with 2 build tasks
I am writing an azure devops build pipleine which is building a c# application, I am having an issue though as the developers have set the .sln to build as follows:
Debug (for dev use)
Release (for ...
0
votes
1
answer
2k
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, ...
1
vote
0
answers
494
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 ...
0
votes
1
answer
989
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 ...
0
votes
0
answers
19
views
Setting up the env.ts file in to release pipeline at run time in Azure DevOps
We have an angular and node based application. I have setup the CICD for that application in azure devops with the help of docker file, ACR and App service. I have 2 different environments dev and qa ...
0
votes
0
answers
176
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 ...
0
votes
0
answers
207
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 ...
1
vote
1
answer
239
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, ...
1
vote
1
answer
376
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/...
0
votes
0
answers
307
views
Cannot build multi-module Maven project with Azure Pipelines
I'm trying to build a Maven project using Azure Pipelines, but I'm having troubles with it, as for some reason the Maven@3 task seems to be unable to resolve some dependencies.
The project is ...
0
votes
0
answers
918
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 ...
0
votes
0
answers
124
views
Add more than one Package or Folder in Azure App Service Deploy
I am creating a release pipeline for Managed Cloud Service deployment.
I have written the CI pipeline and it successfully working fine and creating artifacts. My current soliton has more than one web ...
0
votes
1
answer
264
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 ...
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 ...
0
votes
2
answers
119
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 ...
1
vote
0
answers
52
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 ...
1
vote
1
answer
257
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?
0
votes
1
answer
1k
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.
[
{
&...
0
votes
1
answer
790
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 ...
0
votes
1
answer
233
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 ...
1
vote
1
answer
343
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
...
2
votes
0
answers
51
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 ...
0
votes
1
answer
615
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 ...
0
votes
2
answers
803
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 ...
2
votes
1
answer
384
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 ...
0
votes
1
answer
51
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 ...
1
vote
1
answer
886
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 ...
1
vote
0
answers
15
views
Prevent Azure from swapping VMSS release while VM is still booting up
I use Azure DevOps to release a new VM into a VMSS.
When I release the update, Azure swaps the images while the PHP-FPM process is still booting up. This results in 502 Bad Gateway errors for ...
0
votes
1
answer
546
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 ...
3
votes
1
answer
2k
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&...