Title: Azure SQL Server on an Azure VM: How to migrate from one subscription to another?

Harsh Gajjar 30 Reputation points
2026-10-23T07:30:34.17+00:00

Question:

Hello everyone,

I am looking for guidance on migrating SQL Server running on an Azure Virtual Machine from one Azure subscription to another.

I am familiar with the process of moving an Azure VM between subscriptions, but I am unable to find clear documentation explaining the migration process and considerations specific to SQL Server running on the VM.

Could someone please clarify the recommended approach and help with the following questions?

Are there any additional steps required for SQL Server beyond moving the Azure VM?

How should the SQL Server on Azure VM resource registration and associated configurations be handled during the migration?

Are there any licensing, connectivity, or other SQL Server-specific considerations?

Is there any official Microsoft documentation covering this scenario?

I would appreciate any guidance or relevant documentation.

Thank you!

SQL Server on Azure Virtual Machines
0 comments No comments

Answer accepted by question author
Alex Burlachenko 26,135 Reputation points MVP Volunteer Moderator
2026-10-23T12:58:27.5333333+00:00

Hi Harsh Gajjar & thx for join me at Q&A platform,

Yeaaaa SQL Server running on an Azure VM can be moved to another subscription, and u generally don't need to migrate the SQL databases separately if you're moving the existing VM with its disks.

The important difference is that a SQL Server VM can have two separate Azure resources: the regular Microsoft.Compute/virtualMachines resource and the Microsoft.SqlVirtualMachine/sqlVirtualMachines resource created through the SQL IaaS Agent extension.

Microsoft's resource move documentation specifically says that when moving a VM registered with the SQL IaaS Agent extension, u should include the associated SQL virtual machine resource in the same move request as the actual VM. So don't move only the compute resource and assume the SQL registration will automatically follow.

Before starting, register Microsoft.SqlVirtualMachine in the destination subscription and verify that both subscriptions belong to the same Microsoft Entra tenant. Also run Azure's move validation against the VM and its required dependencies, including disks and networking resources.

For SQL Server itself, the databases, instance configuration, SQL logins, and SQL Agent jobs normally remain on the VM because you're not reinstalling SQL Server. Still, take verified backups and plan a maintenance window. Check any external dependencies such as Azure Backup, Key Vault, monitoring, managed identities, and network access, especially where configurations reference the original subscription or resource IDs.

Licensing is another important check. Verify whether the SQL VM uses PAYG licensing or Azure Hybrid Benefit (AHUB) and confirm that the correct license type is reported after the move. If the VM was created from an Azure Marketplace image, check whether its Marketplace purchase plan introduces any additional move restrictions.

After migration, open SQL virtual machines in the destination subscription and confirm that the SQL IaaS Agent extension is healthy, the SQL VM resource points to the correct VM, and the license type and management features are correct. Microsoft also documents cases where the extension needs to be removed and registered again after a subscription migration. I'd only do that if required, rather than deleting a healthy registration beforehand. Be particularly careful with the deletion workflow, bc it can also offer to delete the underlying VM.

One additional consideration: if the SQL Server participates in an Always On availability group or uses a SQL virtual machine group resource, the migration needs more planning. The Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups resource doesn't support subscription moves.

One question: are both subscriptions in the same Microsoft Entra tenant, and is this a standalone SQL Server VM or part of an Always On availability group? That determines whether a standard Azure resource move is appropriate or whether a more involved migration is needed.

rgds,

Alex

p.s. if my answer is help - pls mark it as an answer

Was this answer helpful?

2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.