Deploy to Azure App Service using the Azure CLI
In this tutorial, you deploy a Node.js application to Azure App Service using the Azure Command Line Interface (CLI), which runs on all operating systems. With the CLI you can create Azure resources, set up a deployment pipeline between a Git repository and Azure, and view the app's
- An Azure subscription.
- Node.js and npm 6.x or higher, the Node.js package manager.
- Git, after which the command
git --versionshould show a version number.
- Install the Azure CLI or use Azure Cloud Shell
If you don't have an Azure subscription, sign up now for a free account with $200 in Azure credits to try out any combination of services.
Sign in to Azure with Azure CLI
If the CLI can open your default browser, it will do so and load an Azure sign-in page.
Otherwise, open a browser page at https://aka.ms/devicelogin and enter the authorization code displayed in your terminal.
Sign in with your account credentials in the browser.
Check npm version
If you already had Node.js installed, run the
node -v command and verify that the version is 10.x or higher. If you have an older version, upgrade to the most current LTS ("Long Term Support") release.