Persistent session variables?

Use this forum to ask questions after your subscription maintenance expires or before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
This topic is 8 years and 3 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
lucidqdreams
Posts: 3
Last visit: Tue Feb 21, 2017 8:13 am

Persistent session variables?

Post 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
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Persistent session variables?

Post 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
David
SAPIEN Technologies, Inc.
This topic is 8 years and 3 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.