Secret variables are empty

Product: PowerShell Universal
Version: 3.0.5


Ive deployed 2 docker containers running 3.0.X last week, that uses the new SQL Server database for communication.
I had some issues with calling the secret variables in my test scripts afterwards (they are called successfully, but the string is empty).

I thought it was an docker issue, so i installed 3.0.5 on an clean WS2022 with an clean SQL database, and was able to reproduce the issue.

I can easily create the variables, and the strings are returned in the scripts, but the secrets are not.

Shouldnt this be stored in the SQL Server DB? (The dbo.Variable is empty).

1 Like

In 3.x, you need to use the secret scope.


That “fixed” the issue :slight_smile:
Thanks for the help!