1. Introduction and prerequisites

In this tutorial, you use Visual Studio Code to:

  • Create a containerized Node.js application using Docker.
  • Push the container image to an Azure Container registry.
  • Deploy the image to Azure App Service.

Prerequisites

Sign in to Azure

  1. To sign into your Azure account, navigate to the Azure explorer.

  2. Select Sign in to Azure, and follow the prompts.

    Sign in to Azure through VS Code

    If this is not available, you are currently signed 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:

    VS Code status bar showing Azure account

    VS Code Azure explorer showing subscriptions

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 include the version number for docker.

Next steps