Search
StarWind is a hyperconverged (HCI) vendor with focus on Enterprise ROBO, SMB & Edge

Migrate your applications to AKS with Azure Migrate

  • April 8, 2021
  • 6 min read
Cloud and Virtualization Architect. Florent is specializing in public, hybrid, and private cloud technologies. He is a Microsoft MVP in Cloud and Datacenter Management and an MCSE in Private Cloud.
Cloud and Virtualization Architect. Florent is specializing in public, hybrid, and private cloud technologies. He is a Microsoft MVP in Cloud and Datacenter Management and an MCSE in Private Cloud.


Microsoft announced during Ignite the Public Preview of Azure Migrate : App Containerization helper. This new feature of Azure Migrate will help you to migrate your ASP.NET apps and Java apps to a container, in AKS, instead of Tomcat/IIS.

Today we will see how to migrate an ASP.NET website, from an IIS server, to an AKS cluster:

How to migrate an ASP.NET website, from an IIS server, to an AKS cluster

The first step is to download the PowerShell Script, that will deploy requirements to do the migration: https://go.microsoft.com/fwlink/?linkid=2134571

Launch it through PowerShell, on a server:

Launch it through PowerShell

At the end of the deployment, an IE interface will be opened:

IE interface

Choose which type of application you want to migrate: ASP.NET or Java on Tomcat:

ASP.NET or Java on Tomcat

Do the prerequisites part:

The prerequisites part

For my demo, the tool is installed on the Web Server that I want to migrate. The next step is to login to Azure:

Login to Azure

We will now do the application discovery, by providing information to connect to my web server. If you have errors, be sure that the computer is allowed in the TrustedHosts for WinRM:

App Containerization Helper

After few minutes, the application that I want to migrate has been discovered:

Discovered application

Give a name for your container, if you have parameter like username, password, dbhost, etc. You can edit them here and click on Continue to move forward:

Give a name for your container

I’ll create a new ACR to store my image. You can do this directly from the web interface.

You can review the Dockerfile that will be built:

Dockerfile

Select it and click on build after selecting the ACR:

Select the ACR

If you click on the Build in progress hyperlink, you will be able to see logs of your container:

Logs of your container

After few minutes, the image is built:

The image is built

And I can see it in my ACR:

See it in your ACR

We will now attach the ACR to our AKS cluster, with the following command:

If you want to run a Java application, you need to have at least a Linux node pool. For ASP.NET applications, you must have a Windows node pool:

Windows node pool

I will now choose my AKS cluster where to deploy it:

AKS cluster / deployment

In the deployment configuration you can choose a new prefix, an SSL certificate, a network port, the number of replica and if you want to publish it internally or externally:

SSL certificate

Deployment specification

You can now start the deployment. If you click on Edit, you will see the YAML file that will be deployed:

YAML file

Start the deployment by clicking on Deploy:

Start the deployment

On the Azure Portal, I can see the deployment status:

 The deployment status

If you click on ContainerCreating, you can see the status:

ContainerCreating

A new Public IP has been added to my LB:

Public IP

After few seconds, the container is deployed:

Deployed container

If I browse the IP, I can see the following:

Browse the IP

As you can see, now, you don’t have apologies to do not migrate to AKS 😊

Hey! Found Florent’s article helpful? Looking to deploy a new, easy-to-manage, and cost-effective hyperconverged infrastructure?
Alex Bykovskyi
Alex Bykovskyi StarWind Virtual HCI Appliance Product Manager
Well, we can help you with this one! Building a new hyperconverged environment is a breeze with StarWind Virtual HCI Appliance (VHCA). It’s a complete hyperconverged infrastructure solution that combines hypervisor (vSphere, Hyper-V, Proxmox, or our custom version of KVM), software-defined storage (StarWind VSAN), and streamlined management tools. Interested in diving deeper into VHCA’s capabilities and features? Book your StarWind Virtual HCI Appliance demo today!