skip to Main Content

I’m wondering if Azure Pipelines support interactive user input during execution. Specifically, can user input be utilized in next stage of the pipeline? Any insights or examples would be appreciated.

I’ve tried ManualIntervention & ManualValidation tasks in Azure pipeline, which should actually prompt user for inputs, but it’s not.
These are the possible ways listed official Microsoft page.
Ref:https://learn.microsoft.com/en-us/azure/devops/pipelines/release/approvals/?view=azure-devops&tabs=yaml

2

Answers


  1. The build process on build agents is not interactive. To pass information to your pipelines consider using Variables (Allow at queue time, Use output variables from tasks) or Parameters.

    Login or Signup to reply.
  2. As others are suggesting, there is no built in way to parse variables in during a pipeline run, only variables created in yaml/code can be parsed to subsequent steps/jobs/stages.

    To achieve something like you are describing, you can add approver gates on the stages that force a user with the correct privileges to click an approve button before the stage commences. There are several ways to include approvers on your pipeline runs. See here.

    Before an approver clicks the approve button, then can modify variables stored in a third party vault, such as an Azure Key Vault. Once the stage begins, it will grab the updated variables.

    - task: AzureKeyVault@2
      inputs:
        azureSubscription: 'Your-Azure-Subscription'
        KeyVaultName: 'Your-Key-Vault-Name'
        SecretsFilter: '*'
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search