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
Copy file name to clipboardExpand all lines: articles/virtual-machines/windows/sql/virtual-machines-windows-sql-ahb.md
+29-10Lines changed: 29 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,10 +19,11 @@ ms.reviewer: jroth
19
19
# Change the license model for a SQL Server virtual machine in Azure
20
20
This article describes how to change the license model for a SQL Server virtual machine (VM) in Azure by using the new SQL VM resource provider, **Microsoft.SqlVirtualMachine**.
21
21
22
-
There are two license models for a VM that's hosting SQL Server: pay-as-you-go and Azure Hybrid Benefit. You can modify the license model of your SQL Server VM by using the Azure portal, the Azure CLI, or PowerShell.
22
+
There are three license models for a VM that's hosting SQL Server: pay-as-you-go, Azure Hybrid Benefit, and disaster recovery (DR). You can modify the license model of your SQL Server VM by using the Azure portal, the Azure CLI, or PowerShell.
23
23
24
-
The pay-as-you-go model means that the per-second cost of running the Azure VM includes the cost of the SQL Server license.
25
-
[Azure Hybrid Benefit](https://azure.microsoft.com/pricing/hybrid-benefit/) allows you to use your own SQL Server license with a VM that's running SQL Server.
24
+
- The **pay-as-you-go** model means that the per-second cost of running the Azure VM includes the cost of the SQL Server license.
25
+
-[Azure Hybrid Benefit](https://azure.microsoft.com/pricing/hybrid-benefit/) allows you to use your own SQL Server license with a VM that's running SQL Server.
26
+
- The **disaster recovery** license type is used for the [free DR replica](virtual-machines-windows-sql-high-availability-dr.md#free-dr-replica-in-azure) in Azure.
26
27
27
28
Azure Hybrid Benefit allows the use of SQL Server licenses with Software Assurance ("Qualified License") on Azure virtual machines. With Azure Hybrid Benefit, customers aren't charged for the use of a SQL Server license on a VM. But they must still pay for the cost of the underlying cloud compute (that is, the base rate), storage, and backups. They must also pay for I/O associated with their use of the services (as applicable).
28
29
@@ -45,7 +46,7 @@ Changing the licensing model of your SQL Server VM has the following requirement
45
46
-[Software Assurance](https://www.microsoft.com/licensing/licensing-programs/software-assurance-default) is a requirement to utilize the [Azure Hybrid Benefit](https://azure.microsoft.com/pricing/hybrid-benefit/).
46
47
47
48
48
-
## Change the license for VMs already registered with the resource provider
49
+
## VMs already registered with the resource provider
49
50
50
51
# [Portal](#tab/azure-portal)
51
52
@@ -65,7 +66,8 @@ You can modify the license model directly from the portal:
65
66
66
67
You can use the Azure CLI to change your license model.
67
68
68
-
The following code snippet switches your pay-as-you-go license model to bring-your-own-license (or using Azure Hybrid Benefit):
69
+
70
+
**Azure hybrid benefit**
69
71
70
72
```azurecli-interactive
71
73
# Switch your SQL Server VM license from pay-as-you-go to bring-your-own
@@ -74,7 +76,7 @@ The following code snippet switches your pay-as-you-go license model to bring-yo
74
76
az sql vm update -n <VMName> -g <ResourceGroupName> --license-type AHUB
75
77
```
76
78
77
-
The following code snippet switches your bring-your-own-license model to pay-as-you-go:
79
+
**Pay as you go**:
78
80
79
81
```azurecli-interactive
80
82
# Switch your SQL Server VM license from bring-your-own to pay-as-you-go
@@ -83,28 +85,45 @@ The following code snippet switches your bring-your-own-license model to pay-as-
83
85
az sql vm update -n <VMName> -g <ResourceGroupName> --license-type PAYG
84
86
```
85
87
88
+
**Disaster recovery (DR)**
89
+
90
+
```azurecli-interactive
91
+
# Switch your SQL Server VM license from bring-your-own to pay-as-you-go
92
+
# example: az sql vm update -n AHBTest -g AHBTest --license-type DR
93
+
94
+
az sql vm update -n <VMName> -g <ResourceGroupName> --license-type DR
95
+
```
96
+
86
97
# [PowerShell](#tab/azure-powershell)
98
+
87
99
You can use PowerShell to change your license model.
88
100
89
-
The following code snippet switches your pay-as-you-go license model to bring-your-own-license (or using Azure Hybrid Benefit):
101
+
**Azure Hybrid Benefit**
90
102
91
103
```powershell-interactive
92
104
# Switch your SQL Server VM license from pay-as-you-go to bring-your-own
# Switch your SQL Server VM license from bring-your-own to pay-as-you-go
119
+
Update-AzSqlVM -ResourceGroupName <resource_group_name> -Name <VM_name> -LicenseType DR
120
+
```
121
+
103
122
---
104
123
105
-
## Change the license for VMs not registered with the resource provider
124
+
## VMs not registered with the resource provider
106
125
107
-
If you provisioned a SQL Server VM from pay-as-you-go Azure Marketplace images, then the SQL Server license type will be pay-as-you-go. If you provisioned a SQL Server VM by using a bring-your-own-license image from Azure Marketplace, then the license type will be AHUB. All SQL Server VMs provisioned from default (pay-as-you-go) or bring-your-own-license Azure Marketplace images will automatically be registered with the SQL VM resource provider, so they can change the [license type](#change-the-license-for-vms-already-registered-with-the-resource-provider).
126
+
If you provisioned a SQL Server VM from pay-as-you-go Azure Marketplace images, then the SQL Server license type will be pay-as-you-go. If you provisioned a SQL Server VM by using a bring-your-own-license image from Azure Marketplace, then the license type will be AHUB. All SQL Server VMs provisioned from default (pay-as-you-go) or bring-your-own-license Azure Marketplace images will automatically be registered with the SQL VM resource provider, so they can change the [license type](#vms-already-registered-with-the-resource-provider).
108
127
109
128
You are only eligible to self-install SQL Server on an Azure VM via Azure Hybrid Benefit. You should [register these VMs with the SQL VM resource provider](virtual-machines-windows-sql-register-with-resource-provider.md) by setting the SQL Server license as Azure Hybrid Benefit, to indicate the Azure Hybrid Benefit usage according to Microsoft Product Terms.
If the [SQL Server IaaS Agent Extension](virtual-machines-windows-sql-server-agent-extension.md) has not been installed on the VM, then the recommendation is to register with the SQL VM resource provider in lightweight mode. This will install the SQL IaaS extension in [lightweight mode](#management-modes) and prevent the SQL Server service from restarting. You can then upgrade to full mode at any time, but doing so will restart the SQL Server service so it is recommended to wait until a scheduled maintenance window. You need to provide the type of SQL Server license as either pay-as-you-go (`PAYG`) to pay per usage, or Azure Hybrid Benefit (`AHUB`) to use your own license.
124
+
If the [SQL Server IaaS Agent Extension](virtual-machines-windows-sql-server-agent-extension.md) has not been installed on the VM, then the recommendation is to register with the SQL VM resource provider in lightweight mode. This will install the SQL IaaS extension in [lightweight mode](#management-modes) and prevent the SQL Server service from restarting. You can then upgrade to full mode at any time, but doing so will restart the SQL Server service so it is recommended to wait until a scheduled maintenance window.
125
+
126
+
Provide 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](virtual-machines-windows-sql-high-availability-dr.md#free-dr-replica-in-azure).
125
127
126
128
Failover Cluster Instances and multi-instance deployments can only be registered with the SQL VM resource provider in lightweight mode.
127
129
@@ -171,7 +173,7 @@ To register your SQL Server VM directly in full mode (and possibly restart your
171
173
172
174
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.
173
175
174
-
Specify either `AHUB`or `PAYG` as the **sqlLicenseType**, and either `SQL2008-WS2008` or `SQL2008R2-WS2008` as the **sqlImageOffer**.
176
+
Specify either `AHUB`, `PAYG`, or `DR` as the **sqlLicenseType**, and either `SQL2008-WS2008` or `SQL2008R2-WS2008` as the **sqlImageOffer**.
175
177
176
178
To register your SQL Server 2008 or 2008 R2 instance on Windows Server 2008 instance, use the following Az CLI or PowerShell code snippet:
Copy file name to clipboardExpand all lines: articles/virtual-machines/windows/sql/virtual-machines-windows-sql-server-iaas-release-notes.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ Azure allows you to deploy a virtual machine (VM) with an image of SQL Server bu
45
45
|**Custom image supportability**| You can now install the [SQL Server IaaS extension](virtual-machines-windows-sql-server-agent-extension.md#installation) to custom OS and SQL images, which offers the limited functionality of [flexible licensing](virtual-machines-windows-sql-ahb.md). When you're registering your custom image with the SQL resource provider, specify the license type as "AHUB." Otherwise, the registration will fail. |
46
46
|**Named instance supportability**| You can now use the [SQL Server IaaS extension](virtual-machines-windows-sql-server-agent-extension.md#installation) with a named instance, if the default instance has been uninstalled properly. |
47
47
|**Portal enhancement**| The Azure portal experience for deploying a SQL Server VM has been revamped to improve usability. For more information, see the brief [quickstart](quickstart-sql-vm-create-portal.md) and more thorough [how-to guide](virtual-machines-windows-portal-sql-server-provision.md) to deploy a SQL Server VM.|
48
-
|**Portal improvement**| It's now possible to change the licensing model for a SQL Server VM from pay-as-you-go to bring-your-own-license by using the [Azure portal](virtual-machines-windows-sql-ahb.md#change-the-license-for-vms-already-registered-with-the-resource-provider).|
48
+
|**Portal improvement**| It's now possible to change the licensing model for a SQL Server VM from pay-as-you-go to bring-your-own-license by using the [Azure portal](virtual-machines-windows-sql-ahb.md#vms-already-registered-with-the-resource-provider).|
49
49
|**Simplification of availability group deployment with Azure SQL Server VM CLI**| It's now easier than ever to deploy an availability group to a SQL Server VM in Azure. You can use the [Azure CLI](/cli/azure/sql/vm?view=azure-cli-2018-03-01-hybrid) to create the Windows failover cluster, internal load balancer, and availability group listeners all from the command line. For more information, see [Use the Azure SQL Server VM CLI to configure an Always On availability group for SQL Server on an Azure VM](virtual-machines-windows-sql-availability-group-cli.md). |
0 commit comments