Skip to content

Commit f6e6d63

Browse files
Merge pull request #104040 from MashaMSFT/20200211_sqlvmdr
added dr as license type
2 parents 410e659 + c36e313 commit f6e6d63

File tree

4 files changed

+34
-13
lines changed

4 files changed

+34
-13
lines changed
-28.6 KB
Loading

articles/virtual-machines/windows/sql/virtual-machines-windows-sql-ahb.md

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ ms.reviewer: jroth
1919
# Change the license model for a SQL Server virtual machine in Azure
2020
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**.
2121

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.
2323

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.
2627

2728
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).
2829

@@ -45,7 +46,7 @@ Changing the licensing model of your SQL Server VM has the following requirement
4546
- [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/).
4647

4748

48-
## Change the license for VMs already registered with the resource provider
49+
## VMs already registered with the resource provider
4950

5051
# [Portal](#tab/azure-portal)
5152

@@ -65,7 +66,8 @@ You can modify the license model directly from the portal:
6566

6667
You can use the Azure CLI to change your license model.
6768

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**
6971

7072
```azurecli-interactive
7173
# 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
7476
az sql vm update -n <VMName> -g <ResourceGroupName> --license-type AHUB
7577
```
7678

77-
The following code snippet switches your bring-your-own-license model to pay-as-you-go:
79+
**Pay as you go**:
7880

7981
```azurecli-interactive
8082
# 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-
8385
az sql vm update -n <VMName> -g <ResourceGroupName> --license-type PAYG
8486
```
8587

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+
8697
# [PowerShell](#tab/azure-powershell)
98+
8799
You can use PowerShell to change your license model.
88100

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**
90102

91103
```powershell-interactive
92104
# Switch your SQL Server VM license from pay-as-you-go to bring-your-own
93105
Update-AzSqlVM -ResourceGroupName <resource_group_name> -Name <VM_name> -LicenseType AHUB
94106
```
95107

96-
The following code snippet switches your bring-your-own-license model to pay-as-you-go:
108+
**Pay as you go**
97109

98110
```powershell-interactive
99111
# Switch your SQL Server VM license from bring-your-own to pay-as-you-go
100112
Update-AzSqlVM -ResourceGroupName <resource_group_name> -Name <VM_name> -LicenseType PAYG
101113
```
102114

115+
**Disaster Recovery**
116+
117+
```powershell-interactive
118+
# 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+
103122
---
104123

105-
## Change the license for VMs not registered with the resource provider
124+
## VMs not registered with the resource provider
106125

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).
108127

109128
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.
110129

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ Register-AzResourceProvider -ProviderNamespace Microsoft.SqlVirtualMachine
121121

122122
### Lightweight management mode
123123

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. 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).
125127

126128
Failover Cluster Instances and multi-instance deployments can only be registered with the SQL VM resource provider in lightweight mode.
127129

@@ -171,7 +173,7 @@ To register your SQL Server VM directly in full mode (and possibly restart your
171173

172174
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.
173175

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**.
175177

176178
To register your SQL Server 2008 or 2008 R2 instance on Windows Server 2008 instance, use the following Az CLI or PowerShell code snippet:
177179

articles/virtual-machines/windows/sql/virtual-machines-windows-sql-server-iaas-release-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Azure allows you to deploy a virtual machine (VM) with an image of SQL Server bu
4545
| **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. |
4646
| **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. |
4747
| **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).|
4949
| **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). |
5050
| &nbsp; | &nbsp; |
5151

0 commit comments

Comments
 (0)