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

Contributor

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

0 Replies