Microsoft has announced the transitioning from Azure Mobile Services to Azure App Service.  While no action is required on your part, I prefer to be proactive.  So in case you choose to migrate your Azure Mobile Service before Microsoft does it for you, here are the instructions step by step on how to do it.

Backup your data

First, it is recommended to backup your Windows Azure data. Use my Backup Guide to do so.

Migrate your Azure Mobile Service

After you finish exporting your database, it’s time to migrate your service:

Azure Mobile Services to App Services

IMPORTANT NOTICE: You actually migrate all the Azure Mobile Services in the same region and not just the one you selected.

  • Click on the “Migrate to App Service” button. Then, type your mobile service name and click the Checkmark button.
  • A dialog will ask you to confirm your action. Confirm and continue.
  • Your migration will be completed with the following notification:

Azure Mobile Services to App Services

According to Microsoft, the migration process takes between 3 and 15 minutes. During all that time, your Service will remain available and the only downtime is at the end of the migration process, when the service restarts. I would recommend to migrate when no one is using your Service, but, if that’s not possible, try when you have the least traffic.

When the migration process is completed, you can no longer see your mobile service from the Azure Classic Portal “MOBILE SERVICES” tab. At the moment you can find it at the “WEB APPS” tab, but because Web apps will soon be available only in the new Azure Portal , the following tutorial is focused on the new portal.

Setting up the new Azure App Service Mobile

After your Azure Mobile Service is migrated, it’s time to set your new Azure App Service Mobile:

Login to the Azure Portal, go to the “App Services” tab and select your migrated service.

azure-migrate-app-services-1

Select the “Application Settings” blade and make sure that all your settings are migrated.

Azure Mobile Services to App Services

Select the “Scale up” blade and select the pricing tier that best suits your needs and then click the “Select” button.

Azure Mobile Services to App Services

If you want to continue having logs after the migration, select the “Diagnostics logs” blade. Set “Application Logging”, “Detailed error messages” and “Failed request tracing” to “On” and “Web server logging” to “File System”. Then click the “Save” button.

Azure Mobile Services to App Services

Last but not least, don’t forget to download the new publish profile for your service, in order to be able to publish changes and new features. Go to the “Overview” blade, select the “More” button and “Get publish profile”. After that you have to import the new publish profile from Visual Studio.

Azure Mobile Services to App Services

Now you are ready to use your new migrated App Service Mobile.

In case you have any problems with your data, you can import your database backup as shown here (link to other post).

Summary

In this guide, I show you how to migrate your current Windows Azure Mobile Service infrastructure to the App Service infrastructure. To migrate your Mobile Service to an App Service, you have to follow the steps below:

  1. Backup your data
  2. Migrate your mobile service
  3. Set up your new app service

Enjoy your cloud adventures!

Author Georgia Makoudi

Georgia is a Cloud Specialist at LightBuzz. During the past ten years, she's been developing secure server-side infrastructures for financial institutions and the healthcare industry. She's blogging about Windows Azure. Did we mention that she loves Escape Rooms?

More posts by Georgia Makoudi

Join the discussion 2 Comments

Leave a Reply