Questions tagged [azure-pipelines-release-pipeline]

Visual Studio Team Services and Team Foundation Server Release Management.

1942 questions
6
votes
1 answer

Azure Dev ops replace tokens per environment in release pipeline

i am using the Replace token extension https://marketplace.visualstudio.com/items?itemName=qetza.replacetokens to replace variable in **/*.config files Our build pipeline creates one artifact that needs to be deployed to all environments we have 2…
6
votes
2 answers

MSBUILD : Logger error MSB4104: Failed to write to log file "XYZ.sln.log"

It would be great if someone can help me to fix the randomly seeing error in VSTS Build agents: MSBUILD : Logger error MSB4104: Failed to write to log file XYZ.sln.log. . The process cannot access the file XYZ.sln.log because it is being used…
6
votes
1 answer

Azure pipeline delete Files on app service before deploy

I'm using Azure pipeline to deploy my asp.net web site on an app service. Before deploy, I need to remove some files on the remove app service. The only way is to use kudu api? Or I can use PowerShell script to access and manipulate files directly?
6
votes
1 answer

Access file content within an Azure Dev Ops/VSTS artifact using REST API

I am looking to get the contents of a file I pushed as an artifact to Azure DevOps I was able to get a json response with a URL to the artifact zip by using this…
6
votes
4 answers

Use Azure CLI within Azure Powershell Task

I want to create a Powershell script which executes some AzureRm... commands and follows those up with some Az commands. Reason being that some commands are only available via Az. When trying to execute these scripts in a release pipeline, the…
6
votes
1 answer

PackageReference Versioning Wildcard csproj

I have the following in my NetStandard Project When I change it to use the wildcard (instead of 1.0.1) I get an exclamation mark on the dependencies toggle, then…
6
votes
3 answers

Publishing test assemblies with artifacts in order to use them during functional tests on VSTS

I am having a really hard time trying to figure out how to properly configure functional tests on my realease pipeline. I have a solution that contains some web projects being built using the default build configuration in VSTS. The artifact is ok…
6
votes
2 answers

Version 4 of Azure App Service Deploy - ERROR_USER_NOT_AUTHORIZED_FOR_CREATEAPP

This is a follow-up question to this question. The answer in the original question helped me, but I am stuck somewhere else. As a reminder, I want to deploy my application using a publish profile. My web app in Azure has two subfolders inside…
Kapol
  • 6,383
  • 3
  • 21
  • 46
6
votes
1 answer

Version 4 of Azure App Service Deploy - *.deploy.cmd not found

I am trying to release my application to Azure using Version 4 of Azure App Service Deploy and using publish profile for the connection. Unfortunately, the release always gets stopped at deployment stage with the following…
Kapol
  • 6,383
  • 3
  • 21
  • 46
6
votes
3 answers

Is there a way to use VSTS Variable Groups per environment?

I'm moving my configuration from using web.config transforms to being based on VSTS variables. I get process variables, you define a variable, pick an environment, and you're good to go. I also see "Variable Groups", these seem great, have…
6
votes
3 answers

How to access files in VSTS Source Repo at the time of release definition?

I have some 10 files in the VSTS source code repo (Git) I want to access those files at the time of release definition. I have kept my PowerShell scripts in the VSTS source Repo and after the deployment, I need to run those script files. So I have…
6
votes
2 answers

Azure app service docker container 'Service Unavailable'

I have followed the tutorials for building a .net core web application into a docker image, publishing to an azure container registry, and then I have setup my VSTS Release template to deploy the container to the app service. This all appears to…
6
votes
2 answers

VSTS Online Portal: Un-Nesting Build Folders on Release

I'm trying to set up automatic build + deploy for a rather large solution. The single solution produces 2 zip folders in the "$(Build.ArtifactStagingDirectory)" location, and these contain all the right files. For the purposes of…
5
votes
2 answers

How to run "docker login azure" from Azure DevOps pipeline

I have a shell script that deploys containers to Azure Container Instances that runs fine locally using the Azure CLI (on Linux) but I'm having trouble performing the login to Azure from a pipeline task. Locally the following command will open a…
5
votes
0 answers

How to integrate a task to perform OWASP ZAP scan with authentication in Azure DevOps release pipeline?

The requirement is to perform OWASP ZAP scan for a website that requires authentication in Azure DevOps release pipeline. Unable to find ways to perform this for an authenticated webpage. Please guide me on this. I could find ways of using OWASP ZAP…