Import-PSUSecret?

There is a bug right now in v5 for variables not actually writing to the database (or secret store I assume). If you create the variable, then immediately edit it with the secret value again, it will stick.

Fix should be coming soon.

1 Like