azure-pipelines-release-pipeline

How to include my config transformation files in the web deploy zip?

佐手、 提交于 2019-12-09 13:07:14
问题 Im setting up a new build and deploy pipeline in Azure Devops. It is an older Web application with some transformation files for the web.config. In the old days we would build the same code x times depending on how many environments. This this is no longer necesary as I read from here https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/transforms-variable-substitution?view=vsts#xmltransform it looks like the deploy pipeline can pick up the changes from my transform file. But the

How do you deploy an Azure WebJob and App to the same App Service via VSTS?

廉价感情. 提交于 2019-12-09 03:11:05
问题 I have a Visual Studio 2017 solution with both an ASP.NET Web Application project (called UI) and an Azure WebJob project (called WebJobs). I have configured both to deploy to Azure from within Visual Studio (right click, publish) to the same App Service. The solution is also configured to build whenever I push to VSTS. I would like to set up VSTS to also deploy both projects upon successful builds but I cam having problems. My understanding is that to achieve this I need to create a release

VSTS REST API to change security permissions on Release definition or Release definition environment

时光总嘲笑我的痴心妄想 提交于 2019-12-08 16:26:27
I cannot find any documentation referring to VSTS REST API to change security for Release Definition or Release Definition environment. I am trying to create an automation script to create a Release definition which will accept user list as a parameter and assign limited permission on the Release Definition and Release Definition environment. Is there any way of doing this? There isn’t the REST API to change permission of release definition or release environment. I submit a user voice that you can vote. REST API for release defintion or release enviornment 来源: https://stackoverflow.com

Azure Dev ops replace tokens per environment in release pipeline

两盒软妹~` 提交于 2019-12-08 15:54:34
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 environments in our release pipeline(DEV ,QA) Each environment has a set of variables configured I have added the replace token task onto our release pipeline My config files looks like this The the tokens are not replaces , i Am new to Azure DevOps , am i missing anything here? Release activities run on the release agent . You're running token

Hardcode arguments to the PowerShell Script in VSTS Release definition

梦想与她 提交于 2019-12-08 12:00:37
问题 I have PowerShell scripts to deploy csv files into Azure tables storage.Now,I want to configure these scripts in VSTS at the release definition after the WebApp deployment is done.So once the web app deploy is done,I will execute these scripts using VSTS PowerShell task.So I have 6 environments ,My PowerShell script will have to be deployed into different azure storage accounts(Environments).So I need to pass the storage account name,storage account key,resource group separately for different

How do I stop the previous queued releases without having to cancel them one at a time?

自作多情 提交于 2019-12-08 08:30:11
问题 We have a release pipeline that automatically creates a new release every time a build is completed. At that point, we have a release candidate, so this makes sense. Every build is potentially releasable. In the pipeline, the Release goes automatically to dev. So we get a check in and the build and then it goes to the Dev server. There is an approval gate on the release moving to Stage. The approval usually takes a while and development will continue while waiting for the approval. Now, we

Exclude/Skip files in VSTS Build and release

假装没事ソ 提交于 2019-12-08 06:22:31
问题 We are in process of creating architecture for VSTS CI/CD to deploy our web app to our Azure App Services. We want to exclude the web.config while deploying it to the Azure server as we are directly modifying the web.config on the different environment. CI Tasks looks like this: CI Taks CD Task: Deploy Azure App Service I am aware of other ways of updating the web.config https://docs.microsoft.com/en-us/vsts/build-release/tasks/transforms-variable-substitution, but in our case we want to skip

VSTS Release pipeline - token substitution

≡放荡痞女 提交于 2019-12-08 05:34:21
问题 I've been using Replace Tokens (from VS Marketplace) and it served me well so far for the dynamic connection string substitution in the web.config file. The way it works, in the Web.Release.config I have a construction like this: <connectionStrings> <add name="Default" connectionString="__AzureDBConnectionString__" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/> </connectionStrings> When I start release in VSTS, it replaces this token (in between "__") with the variable value in the

Azure Dev ops replace tokens per environment in release pipeline

好久不见. 提交于 2019-12-08 05:09:49
问题 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 environments in our release pipeline(DEV ,QA) Each environment has a set of variables configured I have added the replace token task onto our release pipeline My config files looks like this The the tokens are not replaces , i Am new to Azure DevOps

Schedule a Azure devops release in multiple timings

北战南征 提交于 2019-12-08 04:43:34
问题 I am able to schedule the release using Rest API call . Is there any way to Queue it to run Multiple times.THe code i tried is given below. $timinglist=@(1:30,2:30,3:30) foreach($time in $timinglist) { $PATtoken= 'PAT' Write-Host "Initialize Autnetication COntext" -ForegroundColor DarkBlue $token = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes(":$($PATtoken)")) $header=@{authorization= "Basic $token" } $defurl = "https://vsrm.dev.azure.com/Organization/Project/_apis