How to update the SqlIaasExtension on Azure VM from lightweight mode to Full mode

VJ-8370 651 Reputation points
2025-05-09T09:32:13.81+00:00

Hi,

How to update the SqlIaasExtension on Azure VM from lightweight mode to Full mode.

Also, how and where can we see the mode of SqlIaasExtension on the Azure VM?

Regards,

VJ

SQL Server on Azure Virtual Machines
{count} votes

Accepted answer
  1. Anonymous
    2025-05-14T06:39:53.9866667+00:00

    Hi VJ-8370, If your SQL IaaS Agent extension is in LightWeight mode and you want to switch to Full mode, Azure does not support direct in-place upgrades. Instead, you need to follow below steps:

    1. Remove the Existing Lightweight Extension

    Use the following PowerShell command to unregister the SQL VM from the SqlVirtualMachine resource provider and remove the Lightweight extension. Before switching modes, you need to remove the current Lightweight extension.

    
    Remove-AzSqlVM -ResourceGroupName "<YourResourceGroup>" -Name "<YourSQLVMResourceName>" 
    
    
    1. Re-register the VM with SQL IaaS Extension in Full Mode

    Now that the Lightweight mode is removed, you can re-register the VM with the extension in Full mode:

    
    Set-AzSqlVM -ResourceGroupName "<YourResourceGroup>" -Name "<YourSQLVMResourceName>" -SqlManagementType Full
    
    
    1. Verify the Extension Mode

    You can verify the mode either from PowerShell or the Azure Portal

    
    Get-AzSqlVM -ResourceGroupName "<YourResourceGroup>" -Name "<YourSQLVMResourceName>" | Select-Object SqlManagementType 
    
    

    To check the current mode of the SqlIaasExtension, you can simply go to the Azure portal:

    Check the Mode in Azure Portal

    Navigate to your SQL Server VM.

    Under Settings, look for Extensions. You should see details about the currently installed SQL IaaS Agent extension including its mode.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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