Open In App

Microsoft Azure – Add Azure Cloud Shell to VS Code

Last Updated : 30 Mar, 2023
Like Article

In this article, we will look into how to add the Azure Cloud Shell to Visual Studio Code. This can significantly make the developer’s life simpler and reduce the time switching between windows.

Follow the below steps to add Azure cloud Shell to VS Code:

Step 1: To add the Azure Cloud Shell to Visual Studio Code, first, we’ll need to make sure that we have an extension installed. Inside the extension section, we will type in “Azure account“.

Step 2: Now, we have to make sure that this Azure account extension is installed. Notice we already have it installed, but if you don’t, go ahead and hit that “Install” button.

Step 3: Now that your extension is installed, we should be able to open the command palette and we should be able to type “Open in Cloud Shell“.

Notice that this gives us two options. We can open in Bash or we can even open in PowerShell.

Step 4: We are going to select the “Open in Bash” option. Notice it pops up the terminal window at the bottom, and now it’s going to say, “Not signed in. Sign in first“.

Step 5: Now we are going to click the “Sign-in” button, and now it’s going to ask us to copy the authentication code, and it’s going to pop up open a browser for us to use to authenticate our device. We are going to hit “Continue“,

Step 6: Now we need to select our account. It says, “You have signed in to Visual Studio Code application on your device. You may now close this window.” So, we are going to close it. 

Now, we need to give our terminal a second to finish authenticating and connect to the Cloud Shell, and that’s it. We are now connected to an Azure Cloud Shell instance inside of Visual Studio Code. 

Previous Article
Next Article

Similar Reads

Microsoft Azure - Storage in Azure Cloud Shell
In this article, we will look into what really goes on underneath the covers as we demystify storage in the Azure Cloud Shell. The first time that you interact with the Azure Cloud Shell, it'll ask you to create an Azure storage account. It's going to use the storage account to persist any keys or any scripts that you might need whenever you're int
2 min read
Microsoft Azure - Accessing Cloud Shell from Microsoft Docs
In this article, we will look into the process of accessing the Cloud Shell from within the Microsoft documentation. The Azure Cloud Shell allows us to easily run commands against our resources inside of the Azure portal. We can also run the Cloud Shell inside of the documentation. To do so follow the below steps: Step 1: Here, we are taking a look
2 min read
Microsoft Azure - Viewing Underlying Softwares using Cloud Shell
In this article, we will learn about the underlying software in the Azure Cloud Shell. Whenever we fire up the Azure Cloud Shell, what's actually happens, is that a Linux container gets spun up in the background for us. So, now, we have a sandbox environment for us to execute our commands. On top of that, the very first time that we are on the Clou
2 min read
Microsoft Azure - Check Available Azure Modules in Shell
Pre-requisite: Azure Azure Modules are preconfigured templates that allow you to quickly deploy applications on Microsoft Azure. In this article, we'll show you how to check available modules for your region in the Azure portal using Cloud Shell. To see what Azure modules are available for your region, follow the below steps. Steps to Find Azure Mo
1 min read
Microsoft Azure - Opportunities in the Cloud with Azure SQL
Once you get to Azure SQL, there are a lot of other opportunities in the Cloud. There are a lot of other services once you're in Azure that you can start to leverage and integrate to build really interesting, powerful, intelligent solutions and applications for things like IoT, or streaming, or automation, or all sorts of things. Building Modern Ap
2 min read
Microsoft Azure - Protecting Hybrid Cloud Workloads using Azure Defender
In this article, we will learn how to use Azure Defender to protect hybrid cloud workloads. Azure Defender is a feature of the Security Center and provides advanced threat analysis capabilities. It can also protect hybrid workloads. Let's try to have it monitor your local computer. There are several ways to onboard your computer, including onboardi
2 min read
Microsoft Azure - Using Azure Spring Cloud
Pre-requisite:- Azure VM In this article, we will learn how to get started with Microsoft Azure - Using Azure Spring Cloud. Azure Spring Cloud is a fully managed service that allows developers to build, deploy, and run Spring Boot applications on the Azure platform. It is designed to simplify the process of developing and deploying microservices-ba
3 min read
Microsoft Azure - Azure Application Service Environments v2 Private PaaS Environments in the Cloud
Pre-requisite: Azure Microsoft Azure is a Cloud Computing Platform and Infrastructure created by Microsoft for building, deploying, and managing applications and services through a global network of Microsoft-managed data centers. Azure Application Service Environments (ASE) v2 is a private Platform as a Service (PaaS) environment in the cloud that
5 min read
Microsoft Azure - Get Azure VM Properties using Azure PowerShell
The purpose of using the Azure PowerShell Commands is to quickly analyze the overall properties of VM/VMs at once the filtering the with select and where conditions. To find the properties of an Azure VM, you can perform the following commands in Azure Cloud Shell to get the details. Command: Get-AzVM Output: 1. Get all properties of an Azure Virtu
2 min read
Microsoft Azure - RDP to Azure Virtual Machines using Azure Bastion
In this article, we will learn how to do RDP(Remote Desktop Protocol) / SSH(Secure Shell) Connection to an Azure VM using Azure Bastion. First, let's discuss Azure Bastion. The Azure Bastion service is a fully platform-managed PaaS service that you provision inside your virtual network. It provides secure and seamless RDP/SSH connectivity to your v
3 min read