
Moving SQL Server to Azure is mostly a matter of picking the right target and finding the blockers early. The copying is the easy part. This is the order I work in.
1. Pick the target first
Everything else depends on this choice, so make it before anything else.
- SQL Server on an Azure VM: your server, just in someone else’s data centre. Everything works as it does now: Agent jobs, linked servers, SSIS, cross-database queries. You still patch it, back it up and look after HA yourself. It’s the quickest and safest move, and the one to use when you don’t have time to test application changes.
- Azure SQL Managed Instance: close to a full instance, with SQL Agent, cross-database queries, CLR and linked servers, but Microsoft handles patching, backups and HA. The best fit for most lift-and-shift moves where you want to stop managing the OS. It costs more than a single database and needs a VNet planned in advance.
- Azure SQL Database: one database at a time, fully managed. No SQL Agent, no cross-database queries, no instance-level settings. Good for new or simple applications. For an old application with lots of jobs and server-level dependencies, expect to rewrite parts of it.
- Elastic pools: several Azure SQL Databases sharing one pool of resources. Cheaper when you have lots of small databases that are busy at different times, such as one database per customer. Keep an eye on the pool, because one noisy database can slow the rest.
2. Take an inventory and find the blockers
- List every instance, database, size, version, edition and compatibility level.
- List what lives outside the databases: logins, Agent jobs, linked servers, SSIS packages, SSRS, Database Mail, credentials, certificates (TDE and backup encryption) and anything that reads or writes files on the server.
- Run an assessment with Azure Migrate. It reports the features the target doesn’t support and suggests a size from your actual usage.
- Collect a performance baseline before you move: CPU, memory, IOPS, log write latency and the top queries. Without one, you can’t prove whether Azure is slower or faster afterwards.
- Find out who owns each application, and agree the downtime they can accept. That decides the migration method.
3. Work out what it will cost
- Size from the baseline, not from the old server’s hardware. Old servers are usually oversized.
- Reserved capacity and Azure Hybrid Benefit (reusing existing SQL Server licences with Software Assurance) make a big difference to the bill. Check both with whoever manages the licences.
- Remember storage, backup retention, and the second replica if you need one for DR.
4. Choose how to move the data
- Backup and restore: simplest and most predictable. Back up to an Azure storage account (BACKUP TO URL), then restore to a VM or Managed Instance. Downtime is the time for the final log backup and restore.
- Azure Database Migration Service (online): keeps the target in sync until you cut over, so downtime is minutes. Worth it for large databases or tight windows.
- Managed Instance link or an availability group: for a VM or Managed Instance target, replicate continuously and fail over at cut-over.
- Azure SQL Database: there’s no native restore of an on-premises backup, so use DMS or a BACPAC export for small databases.
5. Rehearse, then cut over
- Do at least one full rehearsal with a copy of production, and time it.
- Move logins with their SIDs so database users stay mapped, then move jobs, linked servers and credentials.
- Check row counts and run DBCC CHECKDB on the migrated databases.
- Have the application team test against the new server before the real cut-over, not after.
- Write down the rollback plan, and the point after which you can no longer roll back.
6. After the move
- Compare performance against the baseline. Raise the compatibility level only after it’s stable, with Query Store on, so you can force back a plan that regresses.
- Set up monitoring and alerts (Azure Monitor, or whatever you already use) before the old server is switched off.
- Confirm backups and point-in-time restore actually work by restoring one.
- Check the bill after the first month and resize if needed. Over-provisioning is the most common waste.
- Keep the old server, switched off, until everyone has signed off.
From my SQL Server DBA handbook.