Skip to content

Commit fa57d89

Browse files
authored
added full mode upgrade powershell
1 parent c1cc169 commit fa57d89

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

articles/virtual-machines/windows/sql/virtual-machines-windows-sql-register-with-resource-provider.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Register SQL Server VM in lightweight mode with PowerShell:
156156

157157
If the SQL IaaS Extension has already been installed to the VM manually, then you can register the SQL Server VM in full mode without restarting the SQL Server service. **However, if the SQL IaaS extension has not been installed, registering in full mode will install the SQL IaaS extension in full mode and restart the SQL Server service. Please proceed with caution.**
158158

159-
Below is the code snippet to register with SQL VM resource provider in full mode. To register in full management mode, use the following PowerShell command:
159+
To upgrade your SQL Server VM registration from lightweight mode to full mode, use the following PowerShell command:
160160

161161
```powershell-interactive
162162
# Get the existing Compute VM
@@ -166,6 +166,15 @@ Below is the code snippet to register with SQL VM resource provider in full mode
166166
Update-AzSqlVM -Name $vm.Name -ResourceGroupName $vm.ResourceGroupName -SqlManagementType Full
167167
```
168168

169+
To register your SQL Server VM directly in full mode (and possibly restart your SQL Server service), use the following PowerShell command:
170+
171+
```powershell-interactive
172+
# Get the existing Compute VM
173+
$vm = Get-AzVM -Name <vm_name> -ResourceGroupName <resource_group_name>
174+
175+
# Register with SQL VM resource provider in full mode
176+
New-AzSqlVM -Name $vm.Name -ResourceGroupName $vm.ResourceGroupName -SqlManagementType Full
177+
```
169178

170179
### NoAgent management mode
171180

0 commit comments

Comments
 (0)