Questions tagged [azure-pipelines-yaml]

Azure Pipelines automatically builds and tests code projects to make them available to others. It works with just about any language or project type. Azure Pipelines combines continuous integration (CI) and continuous delivery (CD) to test and build your code and ship it to any target. YAML (or YML) is the language used to construct pipeline objects.

1379 questions
-1
votes
1 answer

How to loop through multiple Azure subscriptions on Azure Pipelines Yaml?

I have a yaml pipeline that's simply used to run a script on a subscription. I use the AzurePowerShell@5 task for this. The problem is I have 22 other subscriptions I need to run the same script on using the exact same script parameters. Only thing…
-1
votes
2 answers

How to specify a condition for a loop in yaml pipelines

I'm trying to download multiple artifacts into different servers(like web, db) using environments. Currently i have added the task DownloadPipelineArtifact@2 in a file and using template to add that task in azure-pipelines.yml. As i'm having…
Kart
  • 53
  • 2
  • 8
-1
votes
1 answer

How to identify the list of pipelines attached with a variable group in AzureDevops

Looking for 2 solutions How to identify the list of pipelines attached with a variable group in AzureDevops say from the variable group name, i want to understand what are the pipelines (both build and release) pipelines refering the values from…
-1
votes
2 answers

How to implement two level approval in azure devops pipeline

I'm in need of implementing two level approval checks in uat deployment. Once the first level approval is completed it should go to the second level of approval.
-1
votes
1 answer

YAML pipeline unable to parse input parameter with special characters to a Python task

How do I escape/handle parentheses/arbitrary inputs with special characters such as the one I have shown below so that my python code gets the proper string argument? I have a YAML pipeline and it takes an input parameter as a string from the user,…
-1
votes
1 answer

azure piplines Unable to create directory "/home/iradmin/aaaa/my-proj/WebUI/". Access to the path is denied

azure pipline yaml publish config trigger: testing pool: vmImage: ubuntu-latest variables: buildConfiguration: 'Release' PublishPath: '/home/iradmin/aaaa/my-proj' - task: UseDotNet@2 displayName: "Building .NET Core 5.x sdk" inputs: …
-1
votes
1 answer

Kubernetes@1 failed in azure devops pipeline

I have created build and release pipeline which is yaml based in azure devops services. I am using self host linux vm as a agent to run my pipeline. When the pipeline runs it complete all stage how ever it keep on waiting on deploy to k8s…
-1
votes
2 answers

Publishing Pipeline Artifacts for use in another pipeline

I'm trying to publish a couple of pipeline artifacts during a build so that I can use them in a build of another solution. My first build builds and tests the soltuion using the following yaml - stage: build_test_release displayName: Build …
-2
votes
1 answer

Azure DevOps - Publish Terraform Plan

I am trying to workout the directory on the Hosted VM where plan.out would be saved and so I can publish, I tired the below but the publish task failed with error... "Error... ##[error]Publishing build artifacts failed with an error: Not found…
Ian Carrick
  • 242
  • 3
  • 18
-2
votes
2 answers

Azure Devops structure for running a query on Azure SQL preferably via a Subscription

There is a rich API to manage Azure instances, servers, and security policies at az sql reference and Azure CLI reference commands for Azure SQL . But how can we simply connect to an existing subscription [or at least to a connection string] and…
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560
-2
votes
1 answer

how to pass mutiple parameters from YAML to Powershell Function

I have to invoke POST METHOD from powershell function which is having 8-9 parameters and these parameter may contain big strings. I am calling powershell function from Azure DevOps Yaml based pipelines and We have a configuration YAML file which…
F11
  • 3,703
  • 12
  • 49
  • 83
-2
votes
1 answer

azure devops dotnet core app : why "dotnet restore" job fails?

I have an azure pipeline for a dotnet core app, and when it executes this job , i got: 2023-02-16T17:02:26.7325011Z 1>C:\hostedtoolcache\windows\dotnet\sdk\6.0.406\NuGet.targets(132,5): error : '6.1.6,6.2.3' is not a valid version string.…
-2
votes
1 answer

Create yaml azure build pipeline for different task stages

Need to create a YAML based azure build pipeline i.e, need to run particular tasks like only build step when it is PR automated and when the same pipeline manually run it should run build task along with archive and publish artifact tasks
-3
votes
1 answer

Reading Terraform outputs from a YAML pipeline and use it in the deployment stage

- task: TerraformTaskV4@4 name: terraformOutput inputs: provider: 'azurerm' command: 'output' workingDirectory: '$(Pipeline.Workspace)' environmentServiceNameAzureRM: service_connection This task is giving the output in json (not in…
1 2 3
91
92