Order: 1
Area: functions
TOCTitle: Getting started
PageTitle: Azure Functions with Visual Studio Code
MetaDescription: Try Azure Functions for free with Visual Studio Code
DateApproved: 2/9/2018
Deploy to Azure using Azure Functions
This tutorial walks you through creating and deploying a JavaScript Azure Functions application using the Azure Functions extension. Create a new app, add functions and deploy in a matter of minutes from Visual Studio Code.
Prerequisites
You need Visual Studio Code installed along with Node.js and npm, the Node.js package manager.
To enable local debugging, you need to install the Azure Functions Core Tools.
On macOS, install using Homebrew.
$ brew tap azure/functions
$ brew install azure-functions-core-tools
On Windows, install using npm.
$ npm install -g azure-functions-core-tools@2
On Linux, follow the instructions in the Azure Functions Core Tools GitHub repository.
Install the extension
The Azure Functions extension is used to create, manage, and deploy Functions Apps on Azure.
Prerequisite check
Before we continue, ensure that you have all the prerequisites installed and configured.
In VS Code, you should see your Azure email address in the Status Bar and your subscription in the AZURE FUNCTIONS explorer.
Verify that you have the Azure Functions tools installed by opening a terminal (or PowerShell/Command Prompt) and running func.
$ func
%%%%%%
%%%%%%
@ %%%%%% @
@@ %%%%%% @@
@@@ %%%%%%%%%%% @@@
@@ %%%%%%%%%% @@
@@ %%%% @@
@@ %%% @@
@@ %% @@
%%
%
Azure Functions Core Tools (2.0.1-beta.22)
Function Runtime Version: 2.0.11415.0