Within a script, how do I reference a secret variable that I had defined in the Variables section of PS Universal? Sorry if this is a stupid question but I cannot find this in any documentation, or after much Googling.
I’m trying to securely look up passwords and API tokens within scripts for Invoke-RestMethod, if there’s a better way to do that than defining them as secret variables I’d love to hear it.
Variables are currently only available for automation scripts. We will eventually be making them global so you can access them in dashboards and APIs. For now, you can use the Get-Secret cmdlet you access your secret variables in your APIs.
What’s the name of it if I want to Import it in my envirument? I guess that I need to write the searchpath for it also?
Edit: I have not written any path on my other modules I did just fill it in the GUI for the Envirument I guess it’s because its located in the ordinary folder for moduls in Windows but how do I import this one?