---
Order: 1
Area: nodejsdeployment
TOCTitle: Getting started
PageTitle: Node.js deployment with Visual Studio Code
MetaDescription: Node.js Deployment to Azure App Services with Visual Studio Code
DateApproved: 10/5/2017
---
# Deploy to Azure using the Azure CLI
In this walkthrough, you will deploy a Node.js application to the Azure cloud using the [Azure Command Line Interface (CLI)](https://docs.microsoft.com/en-us/cli/azure/overview?view=azure-cli-latest).
## Prerequisites
If you don't have an Azure account, [sign up today](https://azure.microsoft.com/en-us/free/?utm_source=campaign&utm_campaign=vscode-tutorial-node-git&mktingSource=vscode-tutorial-node-git) for a free 30 day account with $200 in Azure credits to try out any combination of services.
You'll need [Node.js and npm](https://nodejs.org/en/download/) and [Git](https://git-scm.com/downloads) installed locally.
Install the Azure Command Line Interface (CLI) which you will use the CLI to do the following:
* Create an Azure Website.
* Set up a deployment pipeline between a local/remote Git repository and the Website.
* View your application's logs (`console.log` output).
> **Tip:** If you prefer, you can use Azure [Cloud Shell](https://docs.microsoft.com/en-us/azure/cloud-shell/overview) from within VS Code for this tutorial. Install the [Azure Account](https://marketplace.visualstudio.com/items?itemName=ms-vscode.azure-account) extension which adds Cloud Shell support in the Integrated Terminal.
## Install the Azure CLI
The Azure CLI is cross platform and runs on Windows, macOS, as well as many different Linux distributions.
> [Install the Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)
### Log In
Once installed, you can use the `az` command from your favorite terminal.
Following the instructions, browse to [https://aka.ms/devicelogin](https://aka.ms/devicelogin) and paste in the 9 character code. When prompted, use the email address and password you used when creating your Azure account.
```bash
$ az login
To sign in, go to https://aka.ms/devicelogin and enter the code BF9BUDLGR to authenticate.
```
## Prerequisite Check
Before we continue, ensure that you have all of the prerequisites properly installed. Type each command and ensure it displays the version you have installed. If your Node.js version is less than 6, please [upgrade](https://nodejs.org/en/download/) to the most current LTS ("Long Term Support") release.
```bash
$ node -v
6.10.2
```
Now check that you have `git` installed. If not, [install](https://git-scm.com/downloads) it and test again.
```bash
$ git --version
git version 2.6.4
```
----
I've installed the Azure CLI I ran into an issue