sql server on azure vm licensing

eg1995 1,136 Reputation points
2021-09-26T08:43:16.937+00:00

dears,

this is for the licensing experts.

i have an existing sql server on premises and i want to migrate it to azure using the lift and shift method. Azure migrate for server too

after migrating, i have to choose the vm size and all of that, but the option to choose sql on azure vm is not available in order to choose which license to apply whether it is byol or pay as you go?

so how can i license my sql after being migrated to an azure vm for both options: if I have SA for AHB and i i dont have SA for AHB

thank you in advance

SQL Server on Azure Virtual Machines
Azure Migrate
Azure Migrate
A central hub of Azure cloud migration services and tools to discover, assess, and migrate workloads to the cloud.
758 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Alan Kinane 16,811 Reputation points MVP
    2021-09-26T14:47:40.423+00:00

    If you register the migrated SQL VM with the SQL IaaS agent extension for the resource provider then you will have access to these features. Please follow the steps here: https://learn.microsoft.com/en-us/azure/azure-sql/virtual-machines/windows/sql-agent-extension-manually-register-single-vm

    Note, you can only apply AHB if you have existing licensing with active software assurance. If you don't have SA then you will need to go for the PAYG option for your licensing.

    0 comments No comments

  2. Limitless Technology 39,511 Reputation points
    2021-09-27T13:16:43.803+00:00

    Hello Eg1995,

    There are three license models for an Azure VM that's hosting SQL Server: pay-as-you-go, Azure Hybrid Benefit (AHB), and High Availability/Disaster Recovery(HA/DR). You can modify the license model of your SQL Server VM by using the Azure portal, the Azure CLI, or PowerShell.

    Only SQL Server core-based licensing with Software Assurance or subscription licenses are eligible for Azure Hybrid Benefit.

    If you are using Server + CAL licensing for SQL Server and you have Software Assurance, you can use bring-your-own-license to an Azure SQL Server virtual machine image to leverage license mobility for these servers, but you cannot leverage the other features of Azure Hybrid Benefit.

    Do follow the below link to proceed further,

    https://learn.microsoft.com/en-us/azure/azure-sql/virtual-machines/windows/licensing-model-azure-hybrid-benefit-ahb-change?tabs=azure-portal

    ---------------------------------------------------------------------------------------------------------------

    Hope this answers all your queries, if not please do repost back.
    If an Answer is helpful, please click "Accept Answer" and upvote it : )