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 |
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:
-
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.)
-
Rebuild the Docker image. If you change only app code, the build should take only a few seconds.
-
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.
-
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.
-
After about 15-20 seconds, visit the App Service URL again to check the updates.
[!div class="nextstepaction"] I made changes and redeployed