# SQL Server License Charges on Passive Secondary Replicas

Canonical: https://www.pointfive.co/efficiency-hub/inefficiencies/sql-server-license-charges-on-passive-secondary-replicas

Highly available SQL Server deployments on Azure VMs, such as Always On availability groups or failover cluster instances, run one or more secondary...

By: PointFive

Updated: 2026-09-28

[Cloud Efficiency Hub](https://www.pointfive.co/efficiency-hub) 

The short version

Highly available SQL Server deployments on Azure VMs, such as Always On availability groups or failover cluster instances, run one or more secondary replicas alongside the primary.

PointFive Research

Cloud cost research at PointFive

Azure service

[Azure Virtual Machines](https://www.pointfive.co/efficiency-hub/cloud-services/azure-virtual-machines)

Category

[Databases](https://www.pointfive.co/efficiency-hub/service-category/databases)

Reference

CER-0437

Type

Suboptimal Pricing Model

## Explanation

Why the waste happens and who it affects.

Microsoft grants free licensing for one passive secondary replica for high availability and one passive secondary for disaster recovery per SQL Server. Since November 2022 this applies to pay-as-you-go licensing as well as Azure Hybrid Benefit when the replicas are hosted in Azure, and Microsoft notes that it cuts the licensing cost of a highly available deployment by more than half.

The benefit is not applied automatically. Each SQL Server VM carries a license type on its SQL virtual machine resource (pay-as-you-go, Azure Hybrid Benefit, or HA/DR), and secondaries built from the same pay-as-you-go image or template as the primary keep the paid license type. The result is a full SQL license charge, scaled by vCPU count, on replicas that only receive replication and wait for failover. A related trap: adding a SQL Server VM to an availability set requires recreating the VM, which resets it to the default pay-as-you-go license type.

## Billing model

The pricing dimensions that drive this cost.

SQL Server on Azure VMs uses one of three license types per VM.

Pay-as-you-go (PAYG)

The per-second VM price includes the SQL Server license, which scales with vCPU count

Azure Hybrid Benefit (AHUB)

Owned SQL Server licenses with Software Assurance are applied, removing the license charge but consuming license entitlements

HA/DR license type

Used for the free passive replica; the VM pays only for compute, storage and networking, with no SQL Server license charge

Free replica allowance

One passive secondary for high availability and one passive secondary for disaster recovery per SQL Server

## How to detect

4 checks to find it in your estate.

- Query Azure Resource Graph for microsoft.sqlvirtualmachine/sqlvirtualmachines and project properties.sqlServerLicenseType, grouping VMs that belong to the same availability group or failover cluster

- Flag secondary replicas whose license type is PAYG or AHUB rather than DR, and confirm from the availability group configuration that they are passive (not readable secondaries or otherwise serving workloads)

- Review SQL Server license meter charges in Cost Management for VMs that host only secondary replicas

- After any rebuild, availability set move or redeployment, re-check the license type of the affected replicas, since recreated VMs return to pay-as-you-go

## How to fix

5 ways to remove the waste.

- Set the license type of qualifying passive replicas to HA/DR in the SQL virtual machine resource (Settings, Configure, SQL Server License), or with az sql vm update --license-type DR or Update-AzSqlVM -LicenseType DR; the change needs no restart and takes effect immediately

- Apply HA/DR to at most one passive HA secondary and one passive DR secondary per SQL Server, and keep any readable or active secondary on a paid license type

- Confirm the replicas meet the passive-replica conditions in the Microsoft product licensing terms before changing, since using a replica for active workloads makes it licensable

- Register self-installed SQL Server VMs with the SQL IaaS Agent extension so their license type can be set, and add the license type to deployment templates or an Azure Policy so new replicas start as HA/DR

- If centrally managed Azure Hybrid Benefit is enabled, identify passive and DR environments there, because per-VM license changes are disabled

## Documentation

Vendor references for pricing and configuration.

- [Price Guidance & Managing Costs - SQL Server on Azure VMs  learn.microsoft.com](https://learn.microsoft.com/en-us/azure/azure-sql/virtual-machines/windows/pricing-guidance)

- [Change the License Model for a SQL VM in Azure - SQL Server on Azure VMs  learn.microsoft.com](https://learn.microsoft.com/en-us/azure/azure-sql/virtual-machines/windows/licensing-model-azure-hybrid-benefit-ahb-change)

- [High Availability, Disaster Recovery, Business Continuity - SQL Server on Azure VMs  learn.microsoft.com](https://learn.microsoft.com/en-us/azure/azure-sql/virtual-machines/windows/business-continuity-high-availability-disaster-recovery-hadr-overview)

- [FinOps best practices for compute  learn.microsoft.com](https://learn.microsoft.com/en-us/cloud-computing/finops/best-practices/compute)

## Related inefficiencies

[Browse the library](https://www.pointfive.co/efficiency-hub)

- Azure Virtual Machines  CER-0436

### [Paid SQL Server Edition on Non-Production Azure VMs](https://www.pointfive.co/efficiency-hub/inefficiencies/paid-sql-server-edition-on-non-production-azure-vms)

SQL Server on Azure VMs built from pay-as-you-go Web, Standard or Enterprise images include the SQL Server license in the per-second VM price, and that license cost scales with the number of vCPUs. For development, test and...

Databases

- Azure Virtual Machines  CER-0240

### [Azure Hybrid Benefit Not Enabled on Virtual Machines](https://www.pointfive.co/efficiency-hub/inefficiencies/azure-hybrid-benefit-not-enabled-on-virtual-machines-a8f4b)

Many organizations purchase Software Assurance or subscription-based Windows and SQL Server licenses that entitle them to use Azure Hybrid Benefit. However, if the setting is not applied on eligible resources, Azure continues charging...

Compute

- Azure Virtual Machines  CER-0104

### [Suboptimal Architecture Selection for Azure Virtual Machines](https://www.pointfive.co/efficiency-hub/inefficiencies/suboptimal-architecture-selection-for-azure-virtual-machines)

Azure offers x86-64 VMs (Intel and AMD) and Arm64 VMs (Ampere Altra and Azure Cobalt 100), but default provisioning often leans toward Intel-based SKUs due to inertia or pre-configured templates. AMD and ARM alternatives offer lower list...

Compute

---
Source: the public page above. Product screenshots and illustrative interfaces are examples, not live customer data.

