Page 1 of 1

Persistent session variables?

Posted: Tue Dec 22, 2015 2:05 pm
by lucidqdreams
I am trying to build a form related to Azure code. I don't want to have to run the login sequence each time, but this is valid for "release". If I run the login-azurermaccount manually how can I keep the login session information persistent so I can comment it out and next time I run it for debugging or testing the Azure session still exists?

Thanks

Re: Persistent session variables?

Posted: Tue Dec 22, 2015 2:38 pm
by davidc
You can use the "Run in Console" command run the script in the console, which will maintains the runspace / session.

When you run a script directly in PowerShell Studio (Ctrl + F5) it will always run the script in a new runspace to ensure that script does not have any dependence on modified variables.

David