Forum Discussion

rodsan724's avatar
rodsan724
Brass Contributor
May 02, 2022

How to pass PowerShell task argument to secure string param in PowerShell file

Is it possible to pass a parameter as a SecureString from a PowerShell task in Azure DevOps into params list in a PowerShell file called from pipeline?

 

AzureDevOps PowerShell Tasks Arguments

 

-windowstyle hidden -MyPass $(pass)

 

 

 

PowerShell file called by task in pipeline

 

param([SecureString] $MyPass)

 

 

Here's an illustration

No RepliesBe the first to reply

Resources