TIP
💡 Learn more : Overview of Azure Cloud Shell (opens new window).
📺 Watch the video : How to Add the Azure Cloud Shell to Visual Studio Code (opens new window).
# Add Azure Cloud Shell to Visual Studio Code
I'm a big fan of Visual Studio Code (opens new window) and Azure Cloud Shell (opens new window) and recently saw this tweet (opens new window) by Matt Hernandez and had to add it to this Azure Tips and Trick list. If you've been following the series, then you'd know that I covered Azure Cloud Shell and MS Docs back in post 11 and how to use PowerShell in Azure Cloud Shell in post 17. Today, we'll cover how to add Azure Cloud Shell to Visual Studio Code.
It is fairly easy as all you need to do is open VS Code, click on Extensions and search for azure account
and install it as shown below.
Once installed, go to View -> Command Palette and type Open Bash in Cloud Shell
.
Note: You can also open PowerShell in Cloud Shell with this extension!
You'll need to sign in first and VS Code makes that simple by opening the browser and copying your device authentication code. Once that is complete, you'll see:
Go back to View -> Command Palette and select Open Bash in Cloud Shell
again and it should spin up as shown below.