How to use Cloud Shell in Visual Studio Code

Today’s post will not show you any PowerShell script, but hope it will show you how to use cloud shell in Visual Studio Code šŸ˜‰

What is Cloud Shell?

If you follow our blog a little bit longer you can probably read articleĀ PowerShell in Azure Cloud Shell now available!.
To make long story short, for those who are not familiar with Cloud Shell – it’s an interactive shell available from browsers (even mobile browser) which allows in easy way managing Azure resources.

How to connect Cloud Shell in Visual Studio Code?

First of all you need to have Visual Studio Code installed – > linkĀ Visual Studio CodeĀ .

Once it is installed you should navigate to marketplace (menu on the left), type Azure Account and install this extension.

In second step you should go to View -> Command Palette (or simply use Ctrl + Shift + P shortcut). InĀ Command Palette type Azure: Open PowerShell in Cloud Shell.

In next step you will be asked to login via page You should provide code which is hidden on below picture šŸ™‚

If you successfully logged you should seeĀ Azure:Ā driveĀ mounted in Visual Studio Code and on the bottom Azure account on which you are operating.

I really recommend to use Cloud Shell for managing Azure resources, try it and you will see how it will make your work easier.

Hope it will be usefull for some of you šŸ˜‰

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.