An Azure service that is used to provision Windows and Linux virtual machines.
Microsoft supports an in-place upgrade of SQL Server (for example, 2019 → 2022) on an Azure Virtual Machine deployed using the Pay-As-You-Go (PAYG) model. You do not need to create a new VM and migrate databases unless you prefer a side-by-side approach.
The upgrade is performed using the standard SQL Server upgrade process on the existing VM. The main consideration for PAYG VMs is how to obtain the SQL Server installation media.
For Marketplace-based SQL Server VMs, the supported approach is to provision a temporary Azure VM that already has the target SQL Server version (for example, SQL Server 2022), copy the installation media from that VM (commonly located under C:\SQLServerFull), and transfer it to your existing VM. After copying, the temporary VM can be removed.
Once the media is available on the existing SQL Server 2019 VM, you can run SQL Server Setup and choose the option to upgrade from a previous version. This performs an in-place upgrade, preserving existing databases, logins, SQL Agent jobs, and configuration. As with any SQL Server upgrade, there will be downtime during the process, and full backups should be taken beforehand.
After the upgrade completes, it is recommended to ensure the VM is properly registered with the SQL IaaS Agent extension so that the Azure portal reflects the updated SQL Server version and continues to manage the VM correctly. If the SQL edition was changed as part of the upgrade, the edition property should also be updated accordingly.
in-place upgrade is fully supported for PAYG SQL Server VMs. Creating a new VM and migrating databases is optional, not required.
Helpful References:
https://learn.microsoft.com/en-us/sql/database-engine/install-windows/supported-version-and-edition-upgrades?view=sql-server-ver17
https://learn.microsoft.com/en-us/azure/azure-sql/virtual-machines/windows/sql-agent-extension-manually-register-single-vm?view=azuresql&tabs=azure-portal
https://learn.microsoft.com/en-us/azure/azure-sql/virtual-machines/windows/change-sql-server-version?view=azuresql#get-a-sql-server-media-or-key-for-upgrading-the-version-of-sql-server
https://learn.microsoft.com/en-us/azure/azure-sql/virtual-machines/windows/change-sql-server-version?view=azuresql
Hope this helps, Please let us know if you have any question and concerns.