Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.67 KB

tutorial-deploy-containers-03.md

File metadata and controls

30 lines (19 loc) · 1.67 KB
title description ms.topic ms.date ms.custom
Tutorial: Redeploy a container to Azure App Service after making changes in Visual Studio Code
Tutorial step 3, the simple steps to rebuild and redeploy a container image.
conceptual
09/12/2019
seo-python-october2019

Tutorial: Redeploy a container to Azure App Service after making changes

Previous step: deploy the image to Azure

This article explains how to redeploy a container to Azure App Service after making changes in Visual Studio Code.

Because you inevitably make changes to your app, you end up rebuilding and redeploying your container many times. Fortunately, the process is simple:

  1. Make changes to your app and test locally. (This step and the two that follow are explained in the tutorial, Create a Python container in VS Code.)

  2. Rebuild the Docker image. If you change only app code, the build should take only a few seconds.

  3. Push your image to the registry. If again you change nothing but app code, only that small layer needs to be pushed and the process typically completes in a few seconds.

  4. In the Azure: App Service explorer, right-click the appropriate App Service and select Restart. Restarting an app service automatically pulls the latest container image from the registry.

  5. After about 15-20 seconds, visit the App Service URL again to check the updates.

[!div class="nextstepaction"] I made changes and redeployed

I ran into an issue