Deploy containers to Azure App Service
In this tutorial, you use Visual Studio Code to create a containerized Node.js application using Docker, push the container image to a registry, and then deploy the image to Azure App Service.
Walkthrough video
Watch this video for a complete walkthrough of the content in this article.
Prerequisites
- An Azure subscription.
- Visual Studio Code.
- The Docker extension.
- The Azure App Service extension.
- Node.js and npm, the Node.js package manager.
- Docker.
Azure subscription
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
If you already use the Azure service extensions, you should already be logged in and can skip this step. If you don't use the Azure service extensions, continue in this section to sign in to Azure.
Once you've installed an Azure service extension in Visual Studio Code, you need to sign into your Azure account by navigating to the Azure explorer, select Sign in to Azure, and follow the prompts. (If you have multiple Azure extensions installed, select the one for the area in which you're working, such as App Service, Functions, etc.)

After signing in, verify that the email address of your Azure account (or "Signed In") appears in the Status Bar and your subscription(s) appears in the Azure explorer:


Note
If you see the error "Cannot find subscription with name [subscription ID]", this may be because you are behind a proxy and unable to reach the Azure API. Configure HTTP_PROXY and HTTPS_PROXY environment variables with your proxy information in your terminal:
export HTTPS_PROXY=https://username:password@proxy:8080
export HTTP_PROXY=http://username:password@proxy:8080
Verify Docker install
Verify that you have Docker installed properly by running the following command in a terminal or command prompt:
docker --version
The output should appear something like the following:
Docker Version 17.12.0-ce, build c97c6d6
