Questions tagged [azure-pipelines-release-task]

98 questions
1
vote
0 answers

Change resolution of VM through Azure DevOps Pipeline

I'm trying to change screen resolution of a VM through Azure CI-CD pipeline using a powershell task. The powershell task contains the below inline script to do this. $script="/c SetResolution.exe 0 1 , 0 0 1920 1080" #ResolutionPath is a Pipeline…
1
vote
0 answers

How to deploy Functions in Azure Pipelines for WEBSITE_RUN_FROM_PACKAGE = 1

Microsoft's Run your functions from a package file in Azure recommends running functions with WEBSITE_RUN_FROM_PACKAGE = 1. In 'Using WEBSITE_RUN_FROM_PACKAGE = 1' section one can read: Zip deployment is the recommended way to upload a deployment…
1
vote
2 answers

Is there a way to have a variable group defined at stage level? If so how to access it at Job Level?

I am trying to find a way to define a variable group at stage level and then access it in below jobs through a template? How would I go about doing this? # Template file getchangedfilesandvariables.yaml parameters: - name: "previouscommitid" …
1
vote
1 answer

Azure devops pipeline only publishes web projects

The following YAML produced only web projects, my repo has 2 web api projects, 1 blazor and one regular asp.net core but only the asp.net core and blazor get published to 'drop' and the web api projects are ignored. path of my .sln and…
1
vote
2 answers

Web.config variable update not working with Azure DevOps pipeline (File Transform)

I'm trying to use the task "File Transform" within my pipeline to modify a few values inside my web.config file during deployment. I created the tasks as the following: And in the pipeline, inside the variables, I set up the key & value that I want…
1
vote
1 answer

Azure DevOps Pipeline - Service Connection Permission

Assuming an Azure DevOps pipeline has been authorized to use a service connection. If the user that is running the pipeline does NOT have permission on the same service connection, will he/she be able to run the pipeline still? Just want to see…
1
vote
1 answer

How to download/inspect a transformed config file in an Azure DevOps release pipeline

In my release pipeline I have a File Transform task to insert several variables into my app.config file. The task finishes successfully and from the log it appears that all variables were substituted however my tests are failing and I have a feeling…
1
vote
1 answer

Azure Artifacts to download only specific files required for deployment on build server

I have a Package which is prepared manually from selecting the files from Artifacts then download that package and transfer it to a server and then execute powershell scripts from there to deploy. We wanted to implement the deployment via CI…
1
vote
1 answer

Azure DevOps AzureBlob File Copy Task Wildcard Directory Source Path

I have a Release Pipeline setup to extract my build artifact and then I use the RegEx Find & Replace task to update a few configuration files on my static website before uploading via AzureBlob File Copy task. What I have currently works. However I…
1
vote
2 answers

Azure Multistage Pipeline to deploy ASP.NET web app to self-hosted Windows agent: Runs without error but nothing deployed

I'm trying to create a proof of concept, deploying an ASP.NET web app (.NET Framework, not .NET Core) to an on-prem Windows server running IIS. I got it working using a YAML-based build pipeline and a release pipeline which uses the classic GUI. To…
1
vote
2 answers

Unable to read Secret Azure Release Pipeline Variable inside Marketplace Task

When trying to read Secret variables that is setup in azure release pipeline, I got the following error. The term 'SecretVariableName' is not recognized as the name of a cmdlet, function, script file or operable program. .... I know the variable is…
1
vote
2 answers

Azure replace token for Service model endpoint for Asp.net MVC in pipeline release task

There are 10+ project in my solution. One project has config, name Variable.release.config file which has all the application variable, connection string and other web.config's module which needs to replaced with Azure variable from Library. This…
1
vote
1 answer

AutoParameterizationWebConfigConnectionStrings not working in azure devops release pipelines

I am setting up build and release pipelines in Azure DevOps for a new project. I mirrored this off an existing project that has been working for a while now. The problem is that the connection strings aren't transforming by XML or by the release…
1
vote
1 answer

How to add remote azure repo for terraform modules to make terraform code work on Azure pipelines

Source definition given below works for terraform modules BUT it has a PAT TOKEN. Works fine on local VM as well as on Azure Pipelines. This question is about how to define source definition for terraform modules but without hard coding PAT…
1
vote
2 answers

Pass a Variable group name using REST API Azure devops

Is there any way to pass a variable group name to a release pipeline using REST API without editing the release definition. I am able to do it using the following $defurl =…