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:
- 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>"
- 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
- 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.