> ## Documentation Index
> Fetch the complete documentation index at: https://help.nops.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Apply Azure Hybrid Benefit for Azure SQL

> Use SQL Server licenses you already own for Azure SQL Database instead of paying for them in the price.

Azure SQL Database in the vCore model includes the SQL Server license in its price, billed as a separate license charge. With Azure Hybrid Benefit, you bring SQL Server core licenses you already own with Software Assurance and that charge goes away. nOps finds databases billed for a SQL license and shows that charge as the saving.

| | |
| - | - |
| **Cloud** | Microsoft Azure |
| **Category** | Database |
| **Service** | Azure SQL Database |
| **Action** | Modify |
| **Effort** | Low |
| **Restart needed** | No |
| **Can be rolled back** | Yes |
| **Analysis window** | Last 7 days |
| **Source** | nOps |

## Why it matters

If your organization already owns SQL Server licenses with Software Assurance, paying for the license again in Azure is a double cost. The switch is a setting change with no downtime.

## How nOps finds it

nOps reads the last 7 days of Azure SQL Database billing and looks for SQL license lines on each database. The saving is the license cost from your bill (net of discounts), scaled to a month. A database is left out when its license was not billed in the last 3 days of the window, when the service is mostly paid with credits (90% or more), or when the saving is under \$5 a month.

## Before you start

Enough SQL Server core licenses with active Software Assurance to cover the database's vCores, and permission to update the database.

## How to implement

1. Confirm with your licensing team that you have eligible SQL Server licenses for the vCores.
2. In the Azure portal, open the database, go to **Compute + storage**, and choose to use Azure Hybrid Benefit (an existing SQL Server license). Save.
3. Or use the Azure CLI: `az sql db update --resource-group RESOURCE_GROUP --server SERVER --name DATABASE --license-type BasePrice`. For an elastic pool, use `az sql elastic-pool update ... --license-type BasePrice`.
4. Set `license_type = "BasePrice"` in Terraform (or `licenseType` in Bicep or ARM templates) so a later deployment does not change it back.

## Risks and considerations

* You are responsible for having the licenses. Using Hybrid Benefit without enough eligible licenses is a licensing compliance risk.
* Hybrid Benefit applies to the vCore model only, not to DTU-based or serverless databases.
* To roll back, set the license type back to `LicenseIncluded`.

## FAQs

> [accordion] Is there downtime?
>
> No. It only changes how the database is billed.

## Related

* [Apply Azure Hybrid Benefit for Windows Server](https://help.nops.io/inform/supported-recommendations/apply-azure-hybrid-benefit-for-windows-server)
* [Use Zone-Redundant Backup Storage for Azure SQL](https://help.nops.io/inform/supported-recommendations/use-zone-redundant-backup-storage-for-azure-sql)
* [Supported recommendations](https://help.nops.io/inform/supported-recommendations.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.