107 questions
0
votes
2
answers
451
views
Force azure pipeline task PowerShellonTargetMachines to use Powershell Core
Is there a way to make the azure pipeline task PowerShellonTargetMachines hit the powershell core endpoint instead of the windows powershell endpoint?
Changing the machine profile doesn't seem to be ...
0
votes
1
answer
88
views
How to add tag to a build from classic release after successful deployment to stage
I want to tag a build that is part of the release pipeline automatically after it is successfully deployed to a specific stage[Env].
This will help us deploy the same build in different release ...
1
vote
1
answer
618
views
How to perform AzureRM update for release tasks
We started receiving warnings regarding the AzureRM for updates since it is retiring soon:
2024-09-27T01:14:07.8264879Z ##[warning]You're using AzureRM which will be retired soon, please schedule an ...
0
votes
1
answer
1k
views
How to override pipeline's parameters in Azure DevOps during the release?
I have specified parameters in some pipelines in Azure Synapse Analytics, like this:
The value of the variables is different in Production and Pre-Production's environments. During the release in ...
0
votes
0
answers
80
views
Same Azure Release Task in Two Different Release Pipelines Behave Differently git clone *> $null
I have two different Azure Releases that each have the exact same task that includes cloning a repo, except for one difference. I have to send the output to null in one case and not in the other, ...
0
votes
1
answer
78
views
reactJS artifact directory unreachable during deploy even if it's well compiled in Azure DevOps Pipeline
# This task install dependencies & compile the code.
- script: |
npm install
npm install @rollup/rollup-linux-x64-gnu --save-optional
npm install -D vitest happy-dom @testing-library/...
3
votes
1
answer
10k
views
How to deploy Next JS application to Azure App service via Azure Pipeline
I am just starting out with Next.JS and am trying to understand how to deploy it to an Azure App Service via a pipeline in Azure. To start with I have literally created a basic create-next-app as my ...
1
vote
1
answer
1k
views
Azure DevOps Release Pipeline: Install custom powershell module for use by multiple tasks
I want to understand if it is possible to install/import a custom module and have its functions available for multiple Azure Powershell Tasks within the same Azure DevOps release pipeline stage.
...
0
votes
1
answer
527
views
Azdo Releases Powershell Inline vs File Path
I am using Azure DevOps Deployment Group Agent to deploy Azure DevOps Releases Tasks.
Is there a way to utilize Azure DevOps built-in variables, such as $(System.DefaultWorkingDirectory), within ...
0
votes
1
answer
316
views
Getting System.ComponentModel.Win32Exception (5): Access is denied on Azure-Release
I am running UI-Automation Test with Appium WinAppDriver using a .bat file. When I run the .bat file manually on the agent everything goes as expected but it produces
System.ComponentModel....
0
votes
1
answer
2k
views
Getting a "Credentials cannot be null" error when trying to deploy via a devops release pipeline
I'm trying to deploy an Azure Function from an Azure DevOps repo via an DevOps pipeline and release.
When it gets to the deploy stage I get an error message stating that the credentials can not be ...
1
vote
2
answers
777
views
Azure DevOps SSH release pipeline task and Docker Compose STDERR
I am using Classic release pipelines in Azure DevOps and configured simple SSH task what calls docker-compose:
cd /home/asem/platform/$(ServiceName) && sudo docker-compose up -d --force-...
2
votes
2
answers
3k
views
How to set PATH for all steps in Azure Pipeline Yaml?
I want to define the PATH only once for the whole pipeline.
Is this possible?
I've done this, but it doesn't work:
trigger:
- master
jobs:
- job: Application
pool:
vmImage: ubuntu-...
3
votes
1
answer
3k
views
Azure DevOps Release Pipeline - How to get the source code that was used to create the build artifact?
I have a continuously triggered Azure DevOps release definition that deploys a compiled Angular app to a web server and also runs Cypress e2e tests. The Cypress tests must run against the source code, ...
0
votes
1
answer
1k
views
Azure DevOps: Auto-redeploy trigger (When New target is available) Not working
I'm using Azure DevOps pipeline to trigger automated release to group of servers. For this using Deployment group job.
My situation is i'm a fleet of EC2 instances grouped and managed by AWS ...
0
votes
1
answer
938
views
Azure Release Pipeline: How to pass a variable to Manual Intervention instructions?
I would like to personalize the instruction message of a Manual Intervention task in a Release Pipeline.
Right now the message is very simple, as you can see:
It just says "I need your ...
1
vote
1
answer
501
views
How can I use Release pipeline to deploy to openshift
I am working with Azure Devops server, CI is handled by build pipeline, now I want to use Release pipeline to be able to deploy the built image of the code to openshift, How can I achieve this ?
I am ...
0
votes
1
answer
2k
views
How to use SAS Token in Azure File Copy Pipeline Task?
I am trying to copy ADF ARM templates to a storage account using the Azure File Copy Task in my Azure release pipeline. Since the storage account has firewall and networking set up, I want to use the ...
3
votes
1
answer
3k
views
The release pipeline cannot be saved because the stage 'Prod' references a service connection that cannot be found
In AzureDevOps when saving a Release Pipeline I get the error:
VS402913: The release pipeline cannot be saved because the stage 'Prod' references a service connection that cannot be found, or that you ...
-1
votes
1
answer
163
views
How to pass variable to Azure DevOps Run Pipeline
I am trying to put predefined value RELEASE_RELEASENAME to Azure DevOps Run Pipeline task, but it ends always with error: "##[error]Build parameters is not a valid json object array. Example ...
1
vote
1
answer
2k
views
Azure Devops Yaml Python Script task: PythonScriptV0 , how to pass arrays as the field supports only a strings
I am trying to pass to a python scripts 3 parameters one of them is an array, this works when i run the script locally, i am using sys.argv to achieve this.
However the argument field support only ...
1
vote
0
answers
511
views
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 ...
1
vote
2
answers
527
views
How to Use Powershellscript in Azure classic Release pipeline - script file stored in Azure Devops Secure File
I am using a custom script extension for VM in ARM Template:
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('vm-...
0
votes
0
answers
766
views
Is there any way to take input from user after azure devops release creation?
We have a scenario where some stages that are auto triggered a specific stage in our Azure DevOps release pipeline is set to trigger manually.
Now, release will be created by a user after setting all ...
0
votes
1
answer
728
views
Azure Pipeline - nested tasks or other way to run task for selected hosts
I have parameter "parameters.affectedHosts" with 4 hosts:
${{ parameters.affectedHosts }} = "host1, host2, host3, host4"
I need to check if Edge is installed and then install if ...
2
votes
0
answers
3k
views
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 ...
1
vote
2
answers
2k
views
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....
0
votes
2
answers
3k
views
How to pass the secret from azure key vault to Environmental variable
The environmental variable TEST_SECRETS shall contain the secrets from the azure key vault.
This can be achieved by the AzureKeyVault task shown as follow
- task: AzureKeyVault@2
displayName:...
0
votes
1
answer
450
views
Automatic Release deployment on a specific Environment
I have an azure organization with multiple projects and repositories. Whenever I make some commits in any repository in a project, a new release gets created under a pipeline with the same name as ...
0
votes
1
answer
1k
views
What is the difference between Azure Devops AzurePowerShell@4 and AzurePowerShell@5 tasks?
I have some existing ADO YAML pipelines. They are using AzurePowerShell@4 task. But the latest version of this task is AzurePowerShell@5 . I have checked on the internet but I couldn't find their ...
1
vote
1
answer
387
views
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 ...
0
votes
1
answer
463
views
How can I pass a gate output value from an agentless job -> agent job?
I am using the official Microsoft ServiceNow plugin in a gate to create tickets via Azure Pipelines.
Once the gate is finished processing, there is an output that I'd like to consume in an agent job. ...
2
votes
0
answers
441
views
How to copy files from a linux agent to windows agent in Azure DevOps release pipeline?
I have to run a Linux docker image for performing testing in Azure DevOps release pipeline. Hence, I have used;
Agent Pool : Azure Pipelines and Agent Specification: ubuntu-20.04
for that task. Now, ...
2
votes
4
answers
1k
views
Azure DevOps Release Pipeline - Run a task when a specific previous task failed
I am using classic editor release pipeline and the requirement is to run a 'send email' task when a specific task fails. How can we configure custom condition for this requirement?
When we use the ...
1
vote
1
answer
1k
views
anywork around for running Azure devops Test plans for javascript tests?
Currently Azure devops maynot work with javascript tests.
Has anyone found work around for running Jest/Mocha/ codeceptjs/ webdriver io tests as part of Test plans?
0
votes
1
answer
1k
views
Cannot update variable in Azure Pipelines Library group from Release definition
I have an Azure Pipelines variable group with tree variables defined in "Library". I want to update one of the values from my pipelines.
I have written this Powershell script to do so.
$...
2
votes
2
answers
816
views
Assign Key Vault Secrets to an Azure Function using Azure PowerShell
I am trying to automate the creation of certain azure resources via an Azure PowerShell script that is triggered from an Azure DevOps release pipeline. I want to create a function app, and ...
2
votes
2
answers
5k
views
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, ...
1
vote
1
answer
4k
views
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 ...
-1
votes
1
answer
1k
views
Assign a Variable to Shell inline script of Azure release
I have an inline script where one of the command is the below one. How can i Replace LINUX_PASSWD with a variable in Azure release.
I have added LINUX_PASSWD and FILENAME as variable in Azure release ...
4
votes
2
answers
4k
views
How can I query which docker image is currently deployed to an app service from an azure release pipeline?
I have an Azure release pipeline that uses an Azure Web App for Containers task to deploy a docker image on an Azure App Service.
The image is specified in the form of some_image:$(Build.BuildId). The ...
2
votes
2
answers
2k
views
Multi-Stage Release pipeline variable value overriden by current value during rerun
In the classic release pipeline when you rerun a release build the same variables that were used when the release was initially created were used. In multi stage pipeline I am seeing the value is ...
10
votes
1
answer
27k
views
How to properly do file transforms on Azure Pipelines
I am attempting to do file transforms on my Web.config depending on each environment I publish to. Mostly, everything looks fine until I deploy to my UAT stage on the release pipeline.
In my build ...
0
votes
1
answer
310
views
"Run this job" when sourceFolder contains a folder in Azure Release Pipeline
I have Azure pipeline, i need to stop the pipeline when the sourceFolder doesn't contains a specific folder.
For Ex: if my sourceFolder contains
/home/vsts/work/1/s/projectName/src/app/pos - pipeline ...
0
votes
2
answers
4k
views
Azure DevOps Pipeline Task to connect to Unix Server and execute commands
I am seeking to set up a Release Pipeline in Azure DevOps Services that will deploy
an application to a Unix server, where it then executes some unix commands as part
of the deployment.
Would ...
1
vote
1
answer
897
views
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 ...
0
votes
1
answer
2k
views
Could not load file or assembly sapnco vstest Azure Pipelines
When running a tests from a test plan in Azure Pipeline using Automated tests using Release stage, we are getting a failure "Could not load file or assembly 'sapnco, Version=3.0.0.42, Culture=...
0
votes
1
answer
2k
views
Azure Pipelines: Rollback to a certain version (release) after failed deployment to Kubernetes cluster in Azure-Pipelines.yml
I am using Azure DevOps (Pipelines -> Pipelines) to create my CD pipeline to release to production. I understand that using Pipelines releases (Pipelines -> Releases) I am able to select and ...
1
vote
2
answers
1k
views
i am facing below issue in git based wiki updater task
I created Authentication token as well all permission for user which running pipeline is defined
1
vote
1
answer
3k
views
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 ...