In this session, we will present a scenario where Visual Studio Team Services (VSTS) can enable Node.js developers with continuous integration and deployment features. The scenario demonstrates how a Node.js developer using Visual Studio Code and various Azure-related VS Code extensions to create a new Azure App Service and use Git-based deployment. You’ll learn how a Node.js developer using the popular server-side MVC framework known as Express can use VSTS to ensure that their code is deployed automatically to an Azure App Service when code is committed to a VSTS Git repository.

Demo Setup

  1. If you don’t already have a Visual Studio Dev Essentials and Visual Studio Team Services account, create one at my.visualstudio.com.

  2. If you don’t already have an Azure subscription, create one here.

  3. Install Git if you don’t already have it installed.

  4. Install Node.js either by using the downloadable installers from Node.js or using various command-line tools. Mac users can install Node.js using Homebrew using the command brew install node.

  5. Install Visual Studio Code.

  6. Install the Azure Tools for VS Code using either the VS Code Extensions Palette (search for azure tools) or by running the command ext install azuretoolsforvscode at the VS Code command palette.

  7. Once you have installed Visual Studio Code, open an instance of the editor. In Code, use Ctrl-Shift-P (or Cmd-Shift-P on a Mac) to open up the command palette. Type the word path to filter the command menu, and then select the command Install ‘code’ command in PATH to make it easy to open Visual Studio Code from your command line.

Demo Steps

Setting up the Environment

Click on Deploy to Azure to create Visual Studio 2017 Enterprise Virtual Machine.