Migrate Large Azure MySQL Between Subscriptions

This post has been republished via RSS; it originally appeared at: New blog articles in Microsoft Tech Community.

Because of the time involved and that it was a live production system finding a quicker way was needed instead of making an extended downtime for a customer facing solution.  We worked out a solution that would minimize downtime and allow a seamless migration.

 

  1. First we had to check that the regions we were working with was supported for MySQL cross region replication.
  2. Because you can't do cross region replication between subscriptions though, you will need to first create a read replica in the current subscription in the new region.
  3. After the replica is created move the replica server to the new subscription (this can be done in the Resource Group screen, select the replica server and in the Move dropdown choose Move to another subscription
  4. After the move, check that the replication lag is zero, take the original app down for a short maintenance window, and stop replication to make the replica a standalone server.
  5. Redirect traffic to the new region with the now standalone MySQL server in the new region and subscription in a fraction of the time it was taking with a backup and restore.

This allowed the customer to migrate his application and database in much less time to the new subscription and region.

 

REMEMBER: these articles are REPUBLISHED. Your best bet to get a reply is to follow the link at the top of the post to the ORIGINAL post! BUT you're more than welcome to start discussions here:

This site uses Akismet to reduce spam. Learn how your comment data is processed.