Secret Variables

Product: PowerShell Universal
Version: 5.0.12

Testing secret variables in API and got stuck…
As pictures shown, $Secret:HelloSecret
I can’t get any value in API

image

$Secret: variables will not be shown in output, that would be a security issue :slight_smile:

1 Like

I see :slight_smile:

it works as run as cred with script

but if I try to use it in API with Invoke-Restmetod ********* -Credential $Secret:mysecret

It seems not working, is it by design or is it only works in scripts?