title | description | ms.topic | ms.date |
---|---|---|---|
Deploy a container image for a Node.js app from Visual Studio Code |
Tutorial part 4, deploy the image to Azure App Service |
conceptual |
09/20/2019 |
Previous step: Create the app image
In this step, you deploy the image that you pushed to a registry to Azure App Service directly from Visual Studio Code.
-
In the DOCKER explorer, expand the nodes for your image under Registries, right-click
:latest
, and select Deploy Image to Azure App Service. -
When prompted, provide values for the App Service:
- The name must be unique across Azure.
- Select an existing resource group or create a new one. (A Resource Group is essentially a named collection of an application's resources in Azure.)
- Select an existing App Service Plan or create a new one. (An App Service Plan defines the physical resources that host the website. You can use a basic or free plan tier for this tutorial.)
-
When deployment is complete, Visual Studio Code shows a notification with the website URL:
-
You can also see the results in the Output panel of Visual Studio Code, in the Docker section:
-
To browse the deployed website, you can Ctrl+Click the URL in the Output panel. The new App Service also appears in the AZURE explorer in Visual Studio Code under the APP SERVICE section, where you can right-click the website and select Browse Website.
[!div class="nextstepaction"] My site is on Azure I ran into an issue