An Azure relational database service.
Hi NAVEEN Mittal,
To upgrade the SQL Server version or edition on an Azure Virtual Machine, you need SQL Server installation media and must run an in-place upgrade using SQL Server setup.
First, obtain the SQL Server setup files for the target version or edition, such as SQL Server 2022. You can do this by deploying a new SQL Server VM from the Azure Marketplace with the required version or edition and then copying the folder C:\SQLServerFull, including the product key, to your existing SQL Server VM. If you have Software Assurance, you can download the setup files directly from the Microsoft Volume Licensing Center.
Before starting the upgrade, confirm that your current SQL Server version supports upgrading to the target version. SQL Server upgrades are supported only on specific upgrade paths, and this validation helps prevent compatibility issues.
On the SQL Server VM that you want to upgrade, copy the SQL Server setup files to the folder C:\SQLServerFull. Open this folder and run setup.exe to launch the SQL Server installer.
When the SQL Server Setup window opens, select Maintenance. If you are upgrading the SQL Server edition, choose Edition Upgrade. If you are upgrading the SQL Server version, such as from SQL Server 2019 to SQL Server 2022, choose Upgrade from an earlier version of SQL Server.
Continue through the setup screens, provide the product key if prompted, and review the summary page that shows Ready to Upgrade. Start the upgrade process and allow it to complete. The process may pause temporarily while changes are applied, and the setup window should not be closed during this time.
After the upgrade completes, restart the virtual machine if prompted.
Once the VM restarts, connect to SQL Server using SQL Server Management Studio and run the command SELECT @@VERSION to confirm that the SQL Server version has been upgraded successfully.
Finally, go to the Azure portal, open the SQL Server VM, and update the SQL IaaS Agent Extension to ensure that the licensing information is correctly reflected after the upgrade.
Reference Links:
In‑place upgrade of SQL Server version on Azure VM (official guidance): https://learn.microsoft.com/azure/azure-sql/virtual-machines/windows/change-sql-server-version [learn.microsoft.com]
Supported SQL Server version and edition upgrade paths: https://learn.microsoft.com/sql/database-engine/install-windows/supported-version-and-edition-upgra… [learn.microsoft.com]
Upgrade SQL Server edition using Setup (Maintenance → Edition Upgrade): https://learn.microsoft.com/sql/database-engine/install-windows/upgrade-downgrade-sql-server-editio… [learn.microsoft.com]
SQL Server IaaS Agent Extension overview and licensing management: https://learn.microsoft.com/azure/azure-sql/virtual-machines/windows/sql-server-iaas-agent-extensio… [learn.microsoft.com]
Change or confirm SQL Server licensing model after upgrade (Azure Hybrid Benefit): https://learn.microsoft.com/azure/azure-sql/virtual-machines/windows/licensing-model-azure-hybrid-b…
Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.
Please do not forget to "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.
