Search code examples
azure-devopsazure-pipelinescicd

Dynamic parameters in Azure Pipeline base on another parameter value?


Currently my UI pipeline before running is like this:

enter image description here

As you can see I have "Flow File Path" which its value is path to my json file in the repo.

My question is can I parse that testfile.json and add more parameters in the UI? Because I need the value from the user enter in before running the pipeline (possibly sensitive value).

I searched for a while but seem like not available, is there any solution for this case?


Solution

  • In my opinion, it is much nicer and more convenient to use Azure Key Vault, especially if we are talking about sensitive data.

    Azure Key Vault in azure release pipeline

    Reference: Use Azure Key Vault secrets in Azure Pipelines

    Reference2: Add & use variable groups

    You can't upload a json file as a release variable from the UI.