You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
99
100
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:
0 commit comments