🦄 Checkout my Twitch Azure Developer Streaming (opens new window)!
💡 Learn more : Azure Migrate (opens new window).
📺 Watch the video : How to assess and migrate web apps to Azure with Azure Migrate (opens new window).
# Assess and migrate web apps to Azure with Azure Migrate
You might have one or more applications that run in a server in your own datacenter, or on your own computer. And you might want to move those applications to Azure in the easiest way possible.
You can move your existing applications to Azure with Azure Migrate (opens new window). This is a set of services and tools, designed to help you assess and move your applications to Azure.
In this article, we are going to move an existing web application to Azure using Azure Migrate.
If you want to follow along, you'll need the following:
- An Azure subscription (If you don't have an Azure subscription, create a free account (opens new window) before you begin)
- An ASP.NET Forms application targeting .NET Framework 4 or later, that runs on your local machine
# Getting ready to assess and migrate
I have an older ASP.NET Forms application that was built with ASP.NET 4. It is running fine on my local computer in iiS (Internet Information Services) (opens new window) and I want to move it to Azure.
(ASP.NET Forms website running on my local machine)
To start the assessment and migration process, we'll begin in the Azure portal.
- Go to the Azure portal (opens new window)
- Click the Create a resource button (the plus-sign in the top left corner)
- Search for Azure Migrate and click on the result to start creating one a. This brings you to the overview page of Azure Migrate
(Azure Migrate in the Azure portal)
- On the Azure Migrate overview page, click on the Assess and migrate web apps button. This takes you to the Migrate to Azure App Service page
(Migrate to Azure App Services page)
On this page, you can choose to assess and migrate your web app by entering a public URL to the app, or by downloading and installing the Migration Assistant tool (opens new window) on your computer. I'm going to choose to download and install the Migration Assistant tool, because my application isn't accessible through the internet. The Migration Assistant can assess and migrate websites that are running on iiS version 7.0 or higher. At the moment, the tool is only available for Windows.
- Click Download to download the Migration Assistant tool
- Once the download is complete, install and run the tool
# Assess and migrate the app to Azure
We now have the Migration Assistant tool on our local computer and we can start to assess and migrate the application. The Migration Assistant will migrate our application to an Azure App Service Web App (opens new window), which is a webserver-as-a-service that runs in Azure.
- Open the Migration Assistant application
- The tool will show you the websites that are running in iiS. Select the ASP.NET Forms website and click Next. a. The tool will now assess the application to see if it can run in Azure and if anything needs to be changed. This will result in an Assessment Report like in the image below:
(Assessment Report in the Migration Assistant)
- In this case, the Assessment Report shows no errors that prevent the application from being migrated to Azure. There is one warning about application settings that might not be migrated over. However, I don't need to migrate any settings over, so I'll ignore that warning and click Migrate
- Next, I need to log into Azure. I can do that by going to this login page (opens new window) and entering the code that is shown in the Migration Assistant. I also need to authenticate with my Azure account
(Device Code in the Migration Assistant)
- Once logged in, we need to enter the details of the App Service that we are migrating the application to a. Create or select a Resource Group b. Fill in a Name for the App Service c. Pick a Region d. Leave the Database option to Skip database setup as our application doesn't use a database e. Click Migrate
(Azure Options in the Migration Assistant)
- The migration will start. Once it is done, you'll see the Migration Results, like in the image below:
(Migration Results in the Migration Assistant)
- In the Migration Results, click the Go to your website button. This opens a browser and loads our application:
(Migration Results in the Migration Assistant)
Azure Migrate (opens new window) offers a suite of tools to migrate your application to Azure. And for an internal web application, the Migration Assistant tool (opens new window) can help you migrate to an Azure App Service Web App (opens new window) in minutes. Go and check it out!