Skip to content

Commit 20b796f

Browse files
authored
added 2008r2 image, fixed upgrade command
1 parent fa57d89 commit 20b796f

File tree

1 file changed

+26
-16
lines changed

1 file changed

+26
-16
lines changed

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

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,6 @@ 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-
To upgrade your SQL Server VM registration from lightweight mode to full mode, use the following PowerShell command:
160-
161-
```powershell-interactive
162-
# Get the existing Compute VM
163-
$vm = Get-AzVM -Name <vm_name> -ResourceGroupName <resource_group_name>
164-
165-
# Register with SQL VM resource provider in full mode
166-
Update-AzSqlVM -Name $vm.Name -ResourceGroupName $vm.ResourceGroupName -SqlManagementType Full
167-
```
168159

169160
To register your SQL Server VM directly in full mode (and possibly restart your SQL Server service), use the following PowerShell command:
170161

@@ -178,7 +169,7 @@ To register your SQL Server VM directly in full mode (and possibly restart your
178169

179170
### NoAgent management mode
180171

181-
SQL Server 2008 and 2008 R2 installed on Windows Server 2008 can be registered with the SQL VM resource provider in the [NoAgent mode](#management-modes). This option assures compliance and allows the SQL Server VM to be monitored in the Azure portal with limited functionality.
172+
SQL Server 2008 and 2008 R2 installed on Windows Server 2008 (_not R2_) can be registered with the SQL VM resource provider in the [NoAgent mode](#management-modes). This option assures compliance and allows the SQL Server VM to be monitored in the Azure portal with limited functionality.
182173

183174
Specify either `AHUB` or `PAYG` as the **sqlLicenseType**, and either `SQL2008-WS2008` or `SQL2008R2-WS2008` as the **sqlImageOffer**.
184175

@@ -187,17 +178,37 @@ To register your SQL Server 2008 or 2008 R2 instance on Windows Server 2008 inst
187178

188179
# [AZ CLI](#tab/bash)
189180

190-
Register SQL Server VM in NoAgent mode with the Az CLI:
181+
Register your SQL Server 2008 VM in NoAgent mode with the Az CLI:
191182

192183
```azurecli-interactive
193184
az sql vm create -n sqlvm -g myresourcegroup -l eastus |
194185
--license-type PAYG --sql-mgmt-type NoAgent
195186
--image-sku Enterprise --image-offer SQL2008-WS2008R2
196187
```
188+
189+
190+
Register your SQL Server 2008 R2 VM in NoAgent mode with the Az CLI:
191+
192+
```azurecli-interactive
193+
az sql vm create -n sqlvm -g myresourcegroup -l eastus |
194+
--license-type PAYG --sql-mgmt-type NoAgent
195+
--image-sku Enterprise --image-offer SQL2008R2-WS2008R2
196+
```
197197

198198
# [PowerShell](#tab/powershell)
199199

200-
Register SQL Server VM in NoAgent mode with PowerShell:
200+
Register SQL Server 2008 VM in NoAgent mode with PowerShell:
201+
202+
203+
```powershell-interactive
204+
# Get the existing compute VM
205+
$vm = Get-AzVM -Name <vm_name> -ResourceGroupName <resource_group_name>
206+
207+
New-AzSqlVM -Name $vm.Name -ResourceGroupName $vm.ResourceGroupName -Location $vm.Location `
208+
-LicenseType PAYG -SqlManagementType NoAgent -Sku Standard -Offer SQL2008-WS2008
209+
```
210+
211+
Register SQL Server 2008 R2 VM in NoAgent mode with PowerShell:
201212

202213

203214
```powershell-interactive
@@ -256,10 +267,9 @@ Run the following PowerShell code snippet:
256267
```powershell-interactive
257268
# Get the existing Compute VM
258269
$vm = Get-AzVM -Name <vm_name> -ResourceGroupName <resource_group_name>
259-
260-
# Update to full mode
261-
New-AzSqlVM -Name $vm.Name -ResourceGroupName $vm.ResourceGroupName -Location $vm.Location `
262-
-LicenseType PAYG -SqlManagementType Full
270+
271+
# Register with SQL VM resource provider in full mode
272+
Update-AzSqlVM -Name $vm.Name -ResourceGroupName $vm.ResourceGroupName -SqlManagementType Full
263273
```
264274

265275
---

0 commit comments

Comments
 (0)