Chapter 4
Convert Your App to Serverless and Container Architecture
Section 4
Containerize Your Application and Deploy It to App Service
We will containerize the Shopping Cart Service (one of our own application’s microservices), and deploy it as container in Azure App Service. - "Add container support" in Visual Studio for Shopping Cart project. Inspect and explain the generated Docker file. Build & execute the project locally, with demo in the browser’s window. - Publish the project from Visual Studio. This will provision Web App for Containers (Linux) and an Azure Container Registry; will publish the container image to the registry; then will deploy the container image to the Web App. Test the web service in the browser after deployment. - Configure the main application to point to the new (containerized) deployment. Test the application as is. Redeploy the main application to Azure App Service. Retest the final deployment.