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

VSAN from StarWind is software-defined storage (SDS) solution created with restricted budgets and maximum output in mind. It pulls close to 100% of IOPS from existing hardware, ensures high uptime and fault tolerance starting with just two nodes. StarWind VSAN is hypervisor and hardware agnostic, allowing you to forget about hardware restrictions and crazy expensive physical shared storage.

Build your infrastructure with off-the-shelf hardware, scale however you like, increase return on investment (ROI) and enjoy Enterprise-grade virtualization features and benefits at SMB price today!


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 😊

Views All Time
1
Views Today
5
Back to blog
The following two tabs change content below.
Florent Appointaire
Florent Appointaire is Microsoft Engineer with 5 years of experience, specialized in Cloud Technologies (Public/Hybrid/Private). He is a freelance consultant in Belgium from the beginning of 2017. He is MVP Cloud and Datacentre Management. He is MCSE Private Cloud and Hyper-V certified. His favorite products are SCVMM, SCOM, Windows Azure pack/Azure Stack and Microsoft Azure.