Azure Pipeline Nuget Package Versioning Scheme, How to Get "1.0.$(Rev:r)"

I'm setting up an Azure Pipelines build that needs to package a C# .NET class library into a NuGet package. In this documentation, it lists a couple different ways to automatically generate SemVer...

Azure Devops Boards- Different Teams with same backlog possible?

Is it possible to have a kind of view of the tasks in Boards/ Sprints of a common backlog but for the different people in teams? I have already built several teams and gave them the same backlog...

nuget command to IncludeReferencedProjects in azure devops

In Azure devops I want to issue a nuget pack command that passes the option IncludeReferencedProjects. My repo is in TFVC so I do not believe I can use azure-pipelines.yml. I believe I must do...

Using stages in Azure DevOps Pipeline : Unexpected value 'stages'

I create an Azure-Pipelines file that starts as follows: pool: vmImage: 'Ubuntu-16.04' trigger: - master variables: buildConfiguration: 'Release' buildPlatform: 'any cpu' version:...

How to modify Azure Devops email notification template?

How to modify the build notification template in Azure Devops. Need to add some details in the notification body.

Azure pipelines run specific task if and ONLY IF branch is equal to master in yaml

I am trying to change my yaml file to add some more tasks. This is my current yaml file: trigger: - master pool: vmImage: 'Ubuntu-16.04' steps: - task: [email protected] inputs: ...

Powershell script completes but exits with error code 1

$myValue= (.\command.exe arguments | select -first 1) I run the above code in my Azure Devops pipeline, $myValue contains the value I'm expecting, but I get: ##[error]PowerShell exited with code...

How can a script access Service Connections? (Azure Devops Pipelines)

According to https://docs.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints there's a rich array of Service Connection types. I can easily manage a set of service connections at...

Features spanning multiple sprints in Azure Devops

I'm trying to organize the work for my team in Azure Devops and have started to break down my work into the work item types provided: Epics, Features and Backlog Items. My understanding is that...

Accessing container resource variables in Azure Devops YAML Pipeline

Using Azure Devops YAML Pipelines and trying to have a pipeline trigger on a container being pushed to an ACR. According to the documentation in the link below, I should be able to access the tag...

Azure Pipelines: Bulk approve of deployments to environments

Is there any way to approve runs via the CLI or the API (or anything else)? I'm looking for a way to bulk approve multiple runs from different pipelines but it's not available in the UI. Let's say...

'Clone URL is incorrect' when importing from GitHub to Azure DevOps

I am trying to import a GitHub repository to Azure DevOps and I keep getting this error: Import request cannot be processed due to one of the following reasons: Clone URL is incorrect. Clone URL...

Azure Pipelines: "No packages matched the search pattern."

I am writing a YAML pipeline that should publish a NuGet package. When coming to the deployment job I get a warning: "No packages matched the search pattern." The package is there and it is...

Azure Devops clone This is not a valid source path in source tree

I have managed to finally add my devops account in sourcetree using the https://orgname.visualstudio.com path Now I am having issues cloning the repository I am using the path that devops gives...

Invalid character error while running terraform init, terraform plan or apply

I'm running Terraform using VScode editor which uses PowerShell as the default shell and getting the same error when I try to validate it or to run terraform init/plan/apply through VScode,...

Azure DevOps code coverage with .coverage for PR and Cobertura for full report

I have an Azure DevOps pipeline that validates pull requests. I have configured dotnet test to collect code coverage metrics using the --collect "Code coverage" argument: - task: [email protected] ...

How to deploy multiple apps (monorepo) with Azure and NX

I'm using NX tools to manage a monorepo with multiple apps and I'm struggling to understand how to deploy using Azure and release pipelines. Disclaimer : I'm very new to Azure and devops in...

Modify content of .sppkg file before uploading to SPO app catalog using DevOps pipelines

I want to run a SPFx web part through DevOps build pipeline once, and have the same artifacts be deployable to any environment. Currently I have a setup where there are #{PlaceHolders}# in the...

App Center Distribute IOS app using Azure Pipelines: Resource not found

i'm currently working on Azure Pipelines to Distribute the app using App Center. build and create certificate.p12 and provsion profile working fine, but in App Center Distribute task i...

Azure DevOps Service - Authenticate with On-Premise ADFS

All, The organization for whom I work requires on-premise AD and we currently use different trusts within ADFS to allow authentication to apps such as paycor, ppmpro, promapp, and others. My...

Run NUnit tests in Azure DevOps pipeline

Is it possible? (It seems not. Does it not support NUnit? What should I use instead?) Here is my test project. <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> ...

How to create an azure repository directly from git bash command line? (without entering the browser)

Update I am trying to create a repository from git bash command line to AzureDevops team platform, I've been following these...

Read AzureDevOps Pipeline Variables in C#

I need develop a C# .NetCore Console Application to access my DevOps account, select a release and read all variables in Pipeline Variables[ Anybody can give me an example?

How to source Terraform module hosted within Azure DevOps Repo via ssh

Looking for the correct/working way to source a Terraform module that is hosted within a private Azure DevOps git repo via SSH (see TF Docs on Git repo sourcing via ssh). It's undesirable to have...

Azure Devops Pipeline returning: 'Failed to deploy web package to App Service. Internal Server Error (CODE: 500)'

I am trying to use Azure DevOps pipelines to build a .NET 5 (Core) web app and deploy it to my Azure app service. I can't find any complete examples in the documentation that achieve this so I'm...

Get current Timestamp and concatenate with string in yml file

Setting up a yml based azure build pipeline for which publishing artifacts require timestamp based name. Trying to do something like this 'ArtifactName' + currentTimeStamp How can this be done...

Migration of Work Items from TFS 2018 to Azure DevOps 2020 fails to migrate links between Work Items

I am exploring different possibilities to move our organisations Work Items from a TFS 2018 (v. 16.131.28507.4) to Azure DevOps 2020 (v. Dev18.M170.6). with Azure DevOps Migration Tools. I am now...

How to get file content of repositories in Azure DevOps

could someone tell a way to get file contents through rest api in azure devops? I tried in this way but it isnt getting proper...

C# WASM without Blazor

I want to be able to call C# code from JavaScript. The mono project used to have a WASM SDK that you could download from their old Jenkins server, but that is no longer public. Existing docs tend...

Azure Devops yml pipeline if else condition with variables

I am trying to use if else conditions in Azure Devops yml pipeline with variable groups. I am trying to implement it as per latest Azure Devops yaml pipeline build. Following is the sample code...