I have an Azure DevOps release pipeline which reads an input JSON in Powershell having the format
{
"activities": [
"activityA",
"activityB",
"activityC"
]
}
Now, depending on which activity has been specified, I need to run that corresponding task in the release pipeline and not all the activities. So, in the above, if activityB is not specified, then the task to install it should not run.
I know we can use custom conditional expressions to run a task, but not sure how to read a JSON array in PowerShell and use that in the custom conditional expression.
Any help would be appreciated.