As I promised in my last post today we are going to migrate a simple IIS hosted web site to Azure websites. Note that this tool only supports IIS 6.0 and higher versions.
For this demonstration I have used a standalone Azure VM with a static webpage. I admit that below website is ugly but it serves the purpose.
Setting up Azure Websites Migration Assistant
- Navigate to https://www.movemetothecloud.net from your client PC or the IIS server itself.
- Click Dedicated IIS Server and then and then Install Tool. This will launch a Click-once Installation. based on my past experience with Click-once I strongly recommend you to use Internet Explorer. Also you can Download for offline use to install in another Server/PC. Note that there is an additional option to Upload an existing migration report which is described later.
- Click yes to Install Web Deploy.
- In the next screen it will check for all the dependencies required for the migration. If required it will install the missing components.
- Choose Migrate sites and databases on the local server to azure option and click Continue, if your are running the tool inside your IIS server. If not select the second option and provide the administrative credentials.
- It will check for the websites and their relevant dependencies and will allow you to choose which websites you want to migrate. In my scenario I have a simple web page in Default web site so I selected same.
- It will generate a migration readiness report containing all the configuration information of your IIS instance and dependencies. You can click Upload to continue or Save it locally and upload at a later time. (Refer step 2)
- Azure will perform a readiness analysis based on the report you uploaded and reports if any errors are found. Click Begin Migration to continue.
- You will be prompted to provide your Azure credentials here.
- Select your Tenant, Subscription and the respective region that you want to deploy this website/s and click Start Migration.
- In the Migration screen it will allow you to customize site level and global settings for the migration such as website names, databases, database sizes etc… Since my IIS server is also an Azure VM I have provided it a name and changed the Site Mode to Free to avoid unwanted credit consumption. Click Create to begin the migration.
- Migration Assistant will perform the actual migration and once migrated click Publish to publish your site to Azure. Also at the end of the migration if there is any error occurred it will immediately revert the migration and let you to report the error directly to Azure Team via e-mail.
- There were no errors in my migration so the new site looks like below.
- Additionally if you look at your Azure Portal you can see the new website is running and you and further customize the site as you would do for a regular Azure website. (i.e scale up)