Containerize and migrate applications to AKS with the Azure Migrate’s new App Containerization tool
Published Mar 02 2021 08:12 AM 20K Views
Microsoft

This post is authored by Bharathram Sivaraman, Principal PM Manager (@bsiva).

 

Migrating applications to Azure helps retire existing investments in infrastructure and move from a CAPEX based operating model to an OPEX based model where you only pay for resources you use. But migration is also a great opportunity to modernize your application infrastructure.  As customers modernize and migrate applications to Azure they are using Azure offerings such as Azure App Service and Azure Kubernetes Service to effectively simplify management of the infrastructure hosting their applications.

 

For web-based applications that you are migrating to Azure, Azure App Service offers a modern managed platform with a comprehensive set of features and tooling to manage your web applications, and the App Service Migration Assistant tool in Azure Migrate helps you migrate ASP.NET and other web apps to Azure App Service.

 

Customers that need more control of their infrastructure are adopting containers and standardizing their application and infrastructure management practices on Kubernetes, and Azure Kubernetes Service (AKS) can be an outstanding choice to migrate existing applications for such customers.

 

While newer applications are being developed to be run as containers, moving existing applications to containers may require the applications to be refactored or rewritten. Rewriting or refactoring existing applications is an involved process requiring skilled developers and application knowledge, and the cost or rewriting the app may not be possible to justify for all applications in your portfolio.

 

But not all applications need to be rewritten or refactored. For lot of your existing applications, it may be possible to repackage and deploy the application as containers without rewriting the application and still get the benefits of improved infrastructure consolidation and consistent management across your entire portfolio of applications.

 

The new App Containerization tool from Azure Migrate

 

Today, we are excited to announce the preview of Azure Migrate: App Containerization, a new tool to help you containerize and migrate existing applications to Azure Kubernetes Service. The App Containerization tool offers a no-code, point-and-containerize approach to help you package applications running on servers into a container image and helps you deploy the containerized application to Azure Kubernetes Service. The app servers hosting the app could be virtual machines or physical servers running in your on-premises datacenter, virtual machines running in Azure or any other cloud. In the current preview the tool helps you:

  • Containerize ASP.NET applications running on Windows Servers to Windows containers
  • Containerize Java web applications running on Apache Tomcat on Linux machines to Linux containers

In the process of containerizing the application, the tool also lets you:

  • Discover and parameterize application configurations to facilitate consistent deployment and updates across environments.
  • Move application content stored on the application server’s filesystem or a network filesystem to persistent volumes outside the container image.
  • Customize, download, and reuse tool generated artifacts such as Dockerfiles, container images, and Kubernetes resource definition files for day-2 operations. The downloaded artifacts can also be used as part of CI/CD pipeline for managing application updates and deployments.

 

How to Use the App Containerization Tool

The App Containerization tool is available as a standalone tool that you can run on any Windows machine. To get started with app containerization, install the tool on a Windows machine with network access to the app servers hosting the web applications.

 

Discover applications: The tool uses the specified app server details to connect to the server over the network and discovers web applications running on the server. You then review the discovered apps and app configurations and select the apps to be containerized. You can parameterize app configurations such as database connection strings and make them deployment time settings. You can also specify additional content folders to be included in the container image, and specify content folders or directories that should be moved to persistent volumes. The option to move content folders to persistent volumes outside the container image is useful for applications that use the local filesystem to store content files that may need to be updated, or store application state on the local filesystem. Based on the selections the tool will create and initialize the contents for the persistent volumes specified for the apps.

 

JasmineH_0-1614792398083.png

 

 

Build container image: Using the discovered information and inputs from the previous step, the tool generates a suggested Dockerfile that can be used to build the container image for the application. You can review the Dockerfile and make changes as needed before building a container image for the application. The app container image is built based on the updated Dockerfile and is pushed to an Azure Container Registry in your Azure subscription.

 

JasmineH_1-1614792398142.png

 

Deploy apps to Azure Kubernetes Service: With the container image built, you are now ready to deploy the containerized application to Azure Kubernetes Service.  The tool generates the Kubernetes resource definitions specification file to deploy the apps to your Azure Kubernetes Service cluster. You can specify values to use for the parameterized application configurations, and review and customize the generated YAML file before deploying the containerized application to Azure Kubernetes Service.

JasmineH_2-1614792398210.png

 

 

JasmineH_3-1614792398248.png

 

 

Learn more about Azure Migrate and App Containerization:

Using a templatized process to containerize apps running on servers, the App Containerization tool makes it easy to containerize, test and migrate your existing applications to Azure Kubernetes Service. Review the following tutorials to learn how to use the App Containerization tool to containerize and migrate your existing applications to Azure Kubernetes Service.

Containerize and migrate ASP.NET applications to Azure Kubernetes Service

Containerize and migrate Java web applications to Azure Kubernetes Service

 

Get started with Azure Migrate today.

1 Comment
Co-Authors
Version history
Last update:
‎Mar 15 2021 08:38 AM
Updated by: