Pass Secret Variable from TFS Build to Powershell script
问题 I have added secret variable called Password in my build definition as shown in this image: I want to pass the Password to the PowerShell script in one of my build steps as shown in this image: My PowerShell script looks like this Param ( [Parameter(Mandatory=$true)] [string]$UserName, [Parameter(Mandatory=$true)] [string]$Password ) $appPool = New-WebAppPool -Name "test" $appPool.processModel.userName = $userName $appPool.processModel.password = $password $appPool.processModel.identityType =