azure-pipelines-yaml

How to pass complex DevOps pipeline template parameter to script

自作多情 提交于 2020-06-27 15:05:09
问题 In an Azure DevOps pipeline template, I am declaring a parameter as an array/sequence parameters: mySubscription: '' myArray: [] steps: - AzureCLI@2 inputs: azureSubscription: ${{ parameters.mySubscription }} scriptType: pscore scriptPath: $(Build.SourcesDirectory)/script.ps1 arguments: '-MyYAMLArgument ${{ parameters.myArray }}' Value for the parameter is then passed from pipeline definition as steps: - template: myTemplate.yml parameters: mySubscription: 'azure-connection' myArray: - field1

How to pass complex DevOps pipeline template parameter to script

血红的双手。 提交于 2020-06-27 15:03:10
问题 In an Azure DevOps pipeline template, I am declaring a parameter as an array/sequence parameters: mySubscription: '' myArray: [] steps: - AzureCLI@2 inputs: azureSubscription: ${{ parameters.mySubscription }} scriptType: pscore scriptPath: $(Build.SourcesDirectory)/script.ps1 arguments: '-MyYAMLArgument ${{ parameters.myArray }}' Value for the parameter is then passed from pipeline definition as steps: - template: myTemplate.yml parameters: mySubscription: 'azure-connection' myArray: - field1

Azure DevOps Pipeline define variable in deployment and reuse in subsequent job

会有一股神秘感。 提交于 2020-05-14 14:37:06
问题 I'm using an Azure DevOps pipeline to deploy my code and now I'm in need of passing a variable value from a deployment job to a subsequent job that depends on it. I've read up on this example but it does not seem to work at all. What I'm trying to do is run an Azure ARM Deployment that provisions a Key Vault. The name of the key vault is outputted from the ARM deployment job and I'm then trying to pass that name to another job which needs to add specific secrets. Access control is taken care