Skip to content

Commit 9882598

Browse files
committed
Merge branch 'patch-2' of https://github.com/psfaro/azure-docs into sqlvmlinux-extension
2 parents 2de4b35 + 67be8cb commit 9882598

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

articles/azure-sql/virtual-machines/windows/sql-agent-extension-manually-register-single-vm.md

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,40 @@ Register-AzResourceProvider -ProviderNamespace Microsoft.SqlVirtualMachine
9696

9797
## Full mode
9898

99+
It's possible to either register your SQL Server VM directly in full mode by using the Azure CLI and Azure PowerShell or upgrade to full mode from lightweight mode by using the Azure portal, the Azure CLI, or Azure PowerShell. Upgrading VMs in _NoAgent_ mode is not supported until the OS is upgraded to Windows 2008 R2 and above.
99100

100-
To register your SQL Server VM directly in full mode, use the following Azure PowerShell command:
101+
Starting with September 2021, registering your SQL Server VM in full mode no longer requires restarting the SQL Server service.
102+
103+
To learn more about full mode, see [management modes](sql-server-iaas-agent-extension-automate-management.md#management-modes).
104+
105+
### Register in full mode
106+
107+
Provide the SQL Server license type as either pay-as-you-go (`PAYG`) to pay per usage, Azure Hybrid Benefit (`AHUB`) to use your own license, or disaster recovery (`DR`) to activate the [free DR replica license](business-continuity-high-availability-disaster-recovery-hadr-overview.md#free-dr-replica-in-azure).
108+
109+
110+
# [Azure CLI](#tab/bash)
111+
112+
Register a SQL Server VM in full mode with the Azure CLI:
113+
114+
```azurecli-interactive
115+
# Register Enterprise or Standard self-installed VM in Lightweight mode
116+
az sql vm create --name <vm_name> --resource-group <resource_group_name> --location <vm_location> --license-type <license_type> --sql-mgmt-type Full
117+
```
118+
119+
# [Azure PowerShell](#tab/powershell)
120+
121+
Register a SQL Server VM in FULL mode with Azure PowerShell:
101122

102123
```powershell-interactive
103-
# Get the existing Compute VM
124+
# Get the existing Compute VM
104125
$vm = Get-AzVM -Name <vm_name> -ResourceGroupName <resource_group_name>
105-
# Register with SQL IaaS Agent extension in full mode
106-
New-AzSqlVM -Name $vm.Name -ResourceGroupName $vm.ResourceGroupName -SqlManagementType Full
126+
127+
New-AzSqlVM -Name $vm.Name -ResourceGroupName $vm.ResourceGroupName -Location $vm.Location `
128+
-LicenseType <license_type> -SqlManagementType Full
107129
```
108130

109-
To learn more about full mode, see [management modes](sql-server-iaas-agent-extension-automate-management.md#management-modes).
131+
---
132+
110133

111134
### Upgrade to full
112135

@@ -177,6 +200,7 @@ Register a SQL Server VM in lightweight mode with Azure PowerShell:
177200
```powershell-interactive
178201
# Get the existing compute VM
179202
$vm = Get-AzVM -Name <vm_name> -ResourceGroupName <resource_group_name>
203+
180204
# Register SQL VM with 'Lightweight' SQL IaaS agent
181205
New-AzSqlVM -Name $vm.Name -ResourceGroupName $vm.ResourceGroupName -Location $vm.Location `
182206
-LicenseType <license_type> -SqlManagementType LightWeight

0 commit comments

Comments
 (0)