Enable Azure Hybrid Benefit for SQL Server in Azure VMware Solution

In this article, learn how to configure Azure Hybrid Benefit for SQL Server in an Azure VMware Solution private cloud by configuring a placement policy. The placement policy defines the hosts that are running SQL Server and the virtual machines on that host.

Important

It's important to note that SQL Server benefits are applied at the host level.

For example, if each host in Azure VMware Solution has 36 cores and you intend to have two hosts run SQL Server, the Azure Hybrid Benefit applies to 72 cores, regardless of the number of SQL Server instances or other virtual machines are on that host.

View a video tutorial for configuring Azure Hybrid Benefit for SQL Server in Azure VMware Solution

Configure VM-Host placement policy

Users can configure the VM-Host placement policy to enable Azure Hybrid Benefit for SQL Server through the Azure Portal or Azure CLI.

To enable through the Azure CLI, reference az vmware placement-policy vm-host.

For the Azure Portal step-by-step see below:

  1. From your Azure VMware Solution private cloud, select Azure Hybrid Benefit, then Create VM-Host placement policy. Diagram that shows how to create a host new virtual machine placement policy.

  2. Fill in the required fields for creating the placement policy.

    1. Name – Select the name that identifies this policy.
    2. Type – Select the type of policy. This type must be a VM-Host affinity rule only.
    3. Azure Hybrid Benefit – Select the checkbox to apply the Azure Hybrid Benefit for SQL Server.
    4. Cluster – Select the correct cluster. The policy is scoped to host in this cluster only.
    5. Enabled – Select enabled to apply the policy immediately once created. Diagram that shows how to create a host virtual machine placement policy using the host VM affinity.
  3. Select the hosts and VMs that to be applied to the VM-Host affinity policy.

    1. Add Hosts – Select the hosts to run the SQL Server. When hosts are replaced, policies are re-created on the new hosts automatically.
    2. Add VMs – Select the VMs that should run on the selected hosts.
    3. Review and Create the policy. Diagram that shows how to create a host virtual machine affinity.

Manage placement policies

After creating the placement policy, you can review, manage, or edit the policy by way of the Placement policies menu in the Azure VMware Solution private cloud.

By checking the Azure Hybrid Benefit checkbox in the configuration setting, you can enable existing VM-Host affinity policies with the Azure Hybrid Benefit for SQL Server.

Diagram that shows how to configure virtual machine placement policies.

More information

Azure Hybrid Benefit

az vmware placement-policy vm-host