Azure Websites and Virtual Machines image

Moving from Azure WordPress Website to Azure VM

After moving my SharePoint blog site to an Azure WordPress website, I realized that the MySQL database was also in the cloud with ClearDB and was limited to 20MB which doesn’t really give me much space to grow. I thought a good idea would be to just create my Azure VM with a WordPress install and MySQL instance on it and then migrate the site again.

Since my site was now in WordPress, I figured the migration would be easier.  I was able to find a nifty plug-in called “UpdraftPlus Backup/Restore“.  This enables you to just install the plug-in on both the source and target WordPress installs and then just restore everything (Including plug-ins and themes). With a plan in mind I decided to go for broke.

So the journey began and I did the following:

  1. Created an Azure VM (using the Server 2012 R2 template).
    • Added Application Server Role with IIS
    • Installed Web Platform Installer then added MySQL and WordPress
    • Put www.xenox.net and xenox.net entries to 127.0.0.1 in the hosts file
    • Launched WordPress with the default install using my same URL as a host header
    • Installed UpdraftPlus Backup/Restore plug-in
  2. Backed up my original WordPress site running on Azure
    • Installed UpdraftPlus Backup/Restore plug-in
    • Ran a backup and downloaded all files (Database, Plugins, Themes, Uploads, Others)
    • Copied .zip and .gz backup files to the new Azure VM
  3. Restored back-up files on new Azure VM instance
    • Uploaded backup files within the UpdraftPlus plug-in by dragging and dropping them in.
    • Performed a ‘Restore’
    • Logged back-in with user credentials from the original WordPress site.
  4. Verified site functions locally
  5. Updated DNS with my ISP to point to the public IP address for my Azure VM

I realized that the cost of running the Azure Website was $.01/hr more than the cost of running the Azure VM (for a comparable size).  I know this new setup is going to be more of a maintenance overhead for me, but it will give me an excuse to keep up to date with everything and also be able to RDP into the server.

Leave a Reply