Category "azure-pipelines"

AzureDevops Api call for pull-request doesn't work

I'm referring to this page, to create a pull request during the build process in Azure DevOps via API call. I'm using authorization as Bearer using $(System.Acc

Script path of PowerShell task Azure DevOps release

I have PowerShell script, that I would like to use in deployments of Dynamics 365 to migrate an Access Team Template to our Test and Prod environments. I have a

Resolve Azure YAML Pipeline overlapping variable names in multiple variable groups

We're working on converting our Classic Azure Pipelines to YAML Pipelines. One thing that is not clear is how to ensure that two different variable groups with

Azure pipeline EACH issue

I found a lot of examples about using EACH loop in an Azure pipeline, but all of them I found are using a parameter as the array. What about using an array that

Issue restoring local NuGet package through Azure Pipelines

I have come across an issue in Azure Pipelines where I have a local NuGet package in my repo that I wish to include in the pipelines build alongside all other N

what is the way to get the variable group id of AzureDevops using CLI command

We are using AzureDevops server and automated our pipeline variable group and variables creation using a pre-build task which will run bash script below and wil

Construct a condition in Azure DevOps using 'each'

In Azure DevOps (YAML pipeline), we have a stages that should be run only after another set of stages have been skipped. In the example below, the parameter cop

Azure DevOps pipeline - How to tag sources when using multiple Git source repos

I have a multi-stage pipeline that is building multiple applications. I generate a common tag once per pipeline run. How do I have the pipeline update each sour

Build and push a docker image with build arguments from DevOps to ACR

I'm building a docker image in an Azure DevOps pipeline, then I want to push it to the Azure Container registry. The registry is already created and I've config

Skip pipeline build on branch creation

My YAML file does not have any triggers configured, so it runs on every commit, which I am happy with. But it also runs every time I create a new branch. As thi

Increase the version of npm in Azure DevOps pipeline

I have a YAML pipeline on Azure DevOps for building our client-side scripts via npm. The problem is that the pipeline is using version '6.14.13'. I would like t

Invicti Scan aborted because state is Failed

As part of our Azure DevOps Pipeline, we have to run a NetSparker scan. Currently the scan failed with this very cryptic error message: Starting: netsparkerclou

In Azure Pipelines how to post a dynamic, multi-line comment generated in a previous step using GitHubComment task?

In an Azure Pipeline, the following will post a multi-line comment to a GitHub PR: stages: - stage: MyStage jobs: - job: CommentOnPR steps:

How to print terraform variable values?

I am learning terraform. I want to print values of variables in "plan" stage. So I found how to do it. seems I am doing something wrong here.... in variables.tf

How do I set the default document of an Azure App Service when it exists in a subdirectory?

I am deploying an Azure App Service from Azure DevOps via a release pipeline that is configured to perform an Azure App Service Deploy task on my build agent. T

Azure Devops Get a repositoryId by using repository name

I am writing a BASH script, where its creating an azure repo and then pushing code. post this step it will go-ahead and create an azure pipeline via azure-pipel

Pull an image from AzureCR using docker task in Azure pipeline

I am trying to pull a docker image from an Azure CR connected via service connection. I was following this guideline https://docs.microsoft.com/en-us/azure/devo

How to pass complex DevOps pipeline template parameter to script

In an Azure DevOps pipeline template, I am declaring a parameter as an array/sequence parameters: mySubscription: '' myArray: [] steps: - AzureCLI@2 inp

VSTest task in Azure devops timing out after 60 minutes

I implemented a test method using MSTest2, the execution of the test code takes about a minute. This test uses DataTestMethod with DynamicData source. The resul

Azure DevOps: How to retrieve a build artifact from build Azure Pipeline from a PowerShell Script in Release Pipeline?

I have a published a build artifact published to $(Build.ArtifactStagingDirectory)/drop with artifactName "some_sidebar" and the artifact publish location is Az