azure-devops

Enable prompt for user input during Azure release pipeline


As a part of Azure pre-deployment condition I need to include a pause which should prompt for user input variable which can be used inside the task.


Solution

  • I need to update the variable in the Azure release task dynamically during run time. For that Is there a way to implement user prompt so that the variable will be overided.

    I am afraid this is impossible to update the variable in the Azure release task dynamically during run time.

    First, Azure devops does not support prompt for user input.

    Second, when we queue a build/release pipeline, all the related data like variables, settings are loaded into the compiler, even if we modify the variable, the modified variable will not be reloaded into the compiler. We have to restart the compiler to recompile the modified variables.

    So, it is impossible to update the variable in the Azure release task dynamically during run time.

    To resolve this issue, we have to find other workarounds to solve this issue. For example, Usig Settable at release time:

    enter image description here

    In this case, we could update the variable when you queue the release pipeline.

    Or we could use the Logging Command during the release pipeline to update the variable.

    If above not resolve your question, please share the reason and situation why you want to update the variable in the Azure release task dynamically during run time, we can try other solutions.