Use Azure Cloud Shell With VS Code

This Azure Cloud Shell post will show how to connect to Azure Cloud Shell directly from the VS code IDE.

Azure Cloud Shell offers a pre-configured and authenticated shell environment with many tools and services that work out of the box without needing to be maintained on a local machine.

We can deploy Azure PowerShell scripts and Terraform infrastructure from Cloud Shell and run Az CLI commands without using a local environment.

Azure Cloud Shell offers a highly accessible, browser-based command-line interface that simplifies Azure resource management. This integrated environment comes pre-configured with essential tools and languages, including Bash, PowerShell, Azure CLI, .NET, Node.js, and Python. This means users don’t need to install these tools locally, streamlining setup and maintenance. One standout feature is its persistent storage capability. By automatically attaching an Azure file share, Cloud Shell ensures that your scripts, configuration files, and work persist across sessions, safeguarding your data and custom settings.

Additionally, Cloud Shell is deeply integrated with Azure’s ecosystem, offering seamless interaction with Azure services.

This integration facilitates efficient deployment and management directly from the command line.

It also includes vital tools like built-in text editors, source control utilities, and container management tools, allowing developers to code, test, and deploy directly in the cloud. Accessible from the Azure Portal, mobile app, or any web browser, Azure Cloud Shell delivers a flexible and readily available solution for continuous cloud management, enhancing productivity without compromising on functionality.

Configuration

Before we can start using Cloud Shell from within the VS Code terminal, We need to install the following two tools.

  • Node.js for Windows (if using Windows)
  • Azure Account VS Code extension

Once you have the tools installed, Open the VS command palette

Type Azure: Sign In to Azure Cloud

After authenticating to Azure, go to the terminal section of VS Code and select the Azure Cloud Shell terminal.

Wait for the Cloud Shell to start.


Posted

in

,

by

Comments

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.