This post is picking up the same issue, but the tool is a bit different. All cloud admins may know that Visual Studio Code supports PowerShell scripts and in addition to that makes life easier by having a source control for those scripts via GitHub oder TFS. But still you may encounter the problem, that you have to login to every cloud service seperately in every VSCode session, which can be annoying. But as VSCode supports PowerShell you can apply the same set of functions mentioned in my previous post in VSCode as well.

All you have to do is open up VSCode create a new PSScript and run the following code:

Test-Path $Profile

If you receive a False, then you can set up your profile with the following commands:

New-Item –Path $Profile –Type File –Force
Notepad $Profile

Now this opens up a blank profile, which needs to adapted in order to implement functions, which allow you to login to all cloud services, like we did in the PS DIE. Therefore, you can paste the following code: