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
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
$Secret: variables will not be shown in output, that would be a security issue
I see
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?