|
| 1 | +--- |
| 2 | +title: Azure Hybrid Benefit |
| 3 | +titleSuffix: Azure SQL Database & SQL Managed Instance |
| 4 | +description: Use existing SQL Server licenses for Azure SQL Database and SQL Managed Instance discounts. |
| 5 | +services: sql-database |
| 6 | +ms.service: sql-database |
| 7 | +ms.custom: sqldbrb=4 |
| 8 | +ms.subservice: service |
| 9 | +ms.topic: conceptual |
| 10 | +author: stevestein |
| 11 | +ms.author: sstein |
| 12 | +ms.reviewer: sashan, moslake, carlrab |
| 13 | +ms.date: 11/13/2019 |
| 14 | +--- |
| 15 | +# Azure Hybrid Benefit - Azure SQL Database & SQL Managed Instance |
| 16 | + |
| 17 | +In the provisioned compute tier of the vCore-based purchasing model, you can exchange your existing licenses for discounted rates on Azure SQL Database and Azure SQL Managed Instance by using [Azure Hybrid Benefit](https://azure.microsoft.com/pricing/hybrid-benefit/). This Azure benefit allows you to save up to 30 percent or even higher on SQL Database & SQL Managed Instance by using your on-premises SQL Server licenses with Software Assurance. The [Azure Hybrid Benefit](https://azure.microsoft.com/pricing/hybrid-benefit/) page has a calculator to help determine savings. |
| 18 | + |
| 19 | +> [!NOTE] |
| 20 | +> Changing to Azure Hybrid Benefit does not require any downtime. |
| 21 | +
|
| 22 | + |
| 23 | + |
| 24 | +## Choose a license model |
| 25 | + |
| 26 | +With Azure Hybrid Benefit, you can choose to pay only for the underlying Azure infrastructure by using your existing SQL Server license for the SQL database engine itself (Base Compute pricing), or you can pay for both the underlying infrastructure and the SQL Server license (License-Included pricing). |
| 27 | + |
| 28 | +You can choose or change your licensing model by using the Azure portal or by using one of the following APIs: |
| 29 | + |
| 30 | +# [PowerShell](#tab/azure-powershell) |
| 31 | + |
| 32 | +To set or update the license type by using PowerShell: |
| 33 | + |
| 34 | +- [New-AzSqlDatabase](/powershell/module/az.sql/new-azsqldatabase) |
| 35 | +- [Set-AzSqlDatabase](/powershell/module/az.sql/set-azsqldatabase) |
| 36 | +- [New-AzSqlInstance](/powershell/module/az.sql/new-azsqlinstance) |
| 37 | +- [Set-AzSqlInstance](/powershell/module/az.sql/set-azsqlinstance) |
| 38 | + |
| 39 | +# [Azure CLI](#tab/azure-cli) |
| 40 | + |
| 41 | +To set or update the license type by using the Azure CLI: |
| 42 | + |
| 43 | +- [az sql db create](/cli/azure/sql/db#az-sql-db-create) |
| 44 | +- [az sql db update](/cli/azure/sql/db#az-sql-db-update) |
| 45 | +- [az sql mi create](/cli/azure/sql/mi#az-sql-mi-create) |
| 46 | +- [az sql mi update](/cli/azure/sql/mi#az-sql-mi-update) |
| 47 | + |
| 48 | +# [REST API](#tab/rest) |
| 49 | + |
| 50 | +To set or update the license type by using the REST API: |
| 51 | + |
| 52 | +- [Databases - Create Or Update](/rest/api/sql/databases/createorupdate) |
| 53 | +- [Databases - Update](/rest/api/sql/databases/update) |
| 54 | +- [Managed Instances - Create Or Update](/rest/api/sql/managedinstances/createorupdate) |
| 55 | +- [Managed Instances - Update](/rest/api/sql/managedinstances/update) |
| 56 | + |
| 57 | +* * * |
| 58 | + |
| 59 | +## Next steps |
| 60 | + |
| 61 | +- For for help with choosing an Azure SQL deployment option, see [Choose the right deployment option in Azure SQL](../azure-sql-iaas-vs-paas-what-is-overview.md). |
| 62 | +- For a comparison of SQL Database and SQL Managed Instance features, see [SQL Database & SQL Managed Instance features](features-comparison.md). |
0 commit comments