Hello,

Thank you for posting in Microsoft Community forum.

Based on the description, I understand your question is related to Server 2012 ESU.

It is for the Server 2012 R2 specifically, so it need to be installed on the VM, not on Server 2019 host.

If you have already purchased the ESU key, you must have the servicing stack update (SSU) (KB5029368) that is dated August 8, 2023 or a later SSU installed.

Then Download and install the Extended Security Updates (ESU) Licensing Preparation Package.

For Windows Server 2012 R2 , see the Extended Security Updates (ESU) Licensing Preparation Package that is dated August 10, 2022 (KB5017220). 

After the above prerequisites are met, we can follow the steps below to activate ESU:

  1. Open an elevated command prompt, type slmgr /ipk
  2. Determine the Activation ID by typing slmgr /dlv and hit Enter. Note the Activation ID as you will need it in the next step.
  3. Activate the ESU key by typing slmgr /ato and hit Enter.

Windows Server 2012/R2: Extended Security Updates | Windows IT Pro Blog (microsoft.com)

Have a nice day. 

Best Regards,

Molly

🌐
Microsoft Learn
learn.microsoft.com › en-us › windows-server › get-started › extended-security-updates-deploy
How to get Extended Security Updates (ESU) for Windows Server 2012, and 2012 R2 | Microsoft Learn
Delivery, download, and application of ESUs for Windows Server is no different than other Windows Updates. The updates provided through ESUs are only Security updates. Before you can download and install ESUs, you must have installed the latest Servicing Stack Update (SSU) and the Licensing Preparation Package.
🌐
Microsoft Learn
learn.microsoft.com › en-us › lifecycle › faq › extended-security-updates
Product Lifecycle FAQ - Extended Security Updates | Microsoft Learn
With ESU (SKUs) through Commercial Licensing, you can cover development and test instances licensed with Microsoft Developer edition licenses or Visual Studio subscriptions for no additional cost.
People also ask

How to obtain an ESU license outside of Azure?

Customers have two options for licensing ESU (ESU):

  1. Via Azure Arc-enabled servers: With Extended Security Updates enabled by Azure Arc.
  2. Commercial Licensing: Acquire Extended Security Updates licenses (SKUs) through a Microsoft Commercial Licensing program.

For maximum flexibility and convenience, we recommend using Azure Arc-enabled servers.

You can acquire ESU licenses either directly from Microsoft or from your partner such as an EA Reseller or CSP partner (eligible to sell ESUs as of Oct. 1, 2023 for both types of ESUs mentioned above).

Eligibility Criteria

To qualify for ESU on-premises or in hosted environments, your server or operating system must meet one of the following prerequisites:

  1. Be covered by an active Software Assurance (SA) plan acquired through any program, such as Enterprise Agreement (EA), Enterprise Agreement Subscription (EAS), Server & Cloud Enrollment (SCE), or Enrollment for Education Solutions (EES).
  2. Have active subscription licenses acquired through any program, including Cloud Solution Provider (CSP).
  3. Have been acquired as 'License-Included' services through a Service Provider License Agreement (SPLA) partner.

Note

"License-Included" means that you have obtained Windows Server or SQL Server licenses directly from a SPLA partner, rather than using your own licenses.

Deployment scenarios

You can apply ESU enabled by Azure Arc and ESU licenses (SKUs) to any properly licensed server or operating system, whether it's deployed on-premises or on non-Azure clouds (including hosters). If you're running your OS in another cloud, make sure to adhere to the respective outsourcing or License Mobility policies for the underlying software.

Examples:

  1. SPLA Scenario: If you've acquired your software from an SPLA partner, you can cover it with ESU licenses.
  2. BYOL Scenario: If you've brought your own licenses to a cloud hosting provider via your Outsourcing policy or License Mobility, you can cover your software with ESU licenses.
  3. On-premises: If you're running your software on-prem, you can cover it with ESU licenses.
🌐
learn.microsoft.com
learn.microsoft.com › en-us › lifecycle › faq › extended-security-updates
Product Lifecycle FAQ - Extended Security Updates | Microsoft Learn
Determining the Number of Required ESU Licenses

ESU licenses correspond to the number of underlying core licenses of your server or operating system. You can license Windows Server and SQL Server based on either physical cores (pCores) or virtual cores (vCores). With ESUs sold through Commercial Licensing, the licenses must align with how you've licensed the underlying Windows Server or SQL Server.

  • Physical Core Basis: If you choose this option for your underlying software, you'll need an ESU license for each physical core on the server. All validly licensed guest VMs running on the host are covered without the need for additional licenses. (Note that Windows Server and SQL Server software editions have different allowed virtualization entitlements for the number of guests allowed.) Windows Server has an 8-core minimum per processor and 16-core minimum per server for pCore licensing. SQL Server has a 4-core per processor minimum.
  • Virtual Core Basis: If you opt for this option for your underlying software, you'll require an ESU license for each virtual core assigned to the VM. Windows Server has an 8-core minimum per VM for vCore licensing. SQL Server has a 4-core per VM minimum.

In summary, when licensing with Commercial Licensing ESUs (SKUs), the number of ESU core licenses must align with how you've licensed the underlying Windows Server or SQL Server. Also, with the Commercial Licensing ESUs, you must ensure that the ESU edition matches the edition of your underlying software. For instance, if you have Windows Server Datacenter on your VM, you should acquire ESU Datacenter edition if you want to license at the vCore level.

Note

The majority of WS 2012 licenses were sold on a per Processor or per Core basis (not on a per VM basis). For purposes of ESU core calculation, assume each 2 Processor license (the minimum per server) is equivalent to 16 pCores.

Examples:

  1. Physical Core Scenario: A customer with a 16-core server licensed with Windows Server Datacenter on a pCore basis will need to acquire 16 ESU Datacenter licenses. This covers the entire server regardless of the number of guest VMs running on it.
  2. Virtual Core Scenario: A customer with three 8-core VMs licensed with Windows Server Standard on a vCore basis will need 24 ESU licenses of the Standard edition to cover all VMs. When adding an additional VM, additional ESU licenses must be acquired accordingly. For VMs larger than eight vCores, i.e exceeding the minimum, add up all the vCores to get the correct price.Knowing your underlying license status for a given server enables you to accurately determine the number of Extended Security Update licenses you'll need.
🌐
learn.microsoft.com
learn.microsoft.com › en-us › lifecycle › faq › extended-security-updates
Product Lifecycle FAQ - Extended Security Updates | Microsoft Learn
How do I install ESU updates?

On Azure: Applicable virtual machines (VMs) hosted in Azure are automatically enabled for ESUs if the VM is configured to receive updates, and these updates are provided free of charge.

On-premises/hybrid: Customers can install ESUs by accessing their multiple activation keys through the M365 Admin Center portal or directly installing ESUs through Azure Arc-enabled servers. Learn more about the installation details here for Windows Server and here for SQL Server installation.

🌐
learn.microsoft.com
learn.microsoft.com › en-us › lifecycle › faq › extended-security-updates
Product Lifecycle FAQ - Extended Security Updates | Microsoft Learn
🌐
Azure Docs
docs.azure.cn › en-us › azure-arc › servers › license-extended-security-updates
License provisioning guidelines for Extended Security Updates for Windows Server 2012 - Azure Arc | Azure Docs
The only dev/test servers entitled to ESU licenses at no extra cost are those whose operating system licenses came from a Visual Studio subscription. As you migrate and modernize your Windows Server 2012 and Windows 2012 R2 infrastructure through ...
🌐
Reddit
reddit.com › r/sysadmin › steps i used to install ws2012 ws 2012 r2 esu on our servers
r/sysadmin on Reddit: Steps I used to install WS2012 WS 2012 R2 ESU on our servers
November 10, 2023 -

For anyone wanting to install the ESU on WS2012 or WS 2012R2 below are the steps I used. All our servers are activated by KMS.

The ESU MAK key only activates the ESU and co-exists with any KMS key

Both Microsoft and our EA partner were useless in providing any help.

Step1: Download and install the Extended Security Updates (ESU) Licensing Preparation Package.

For more information, see the following articles in the Microsoft Knowledge Base:

 For Windows Server 2012 R2, see the Extended Security Updates (ESU) Licensing Preparation Package that is dated August 10, 2022 (KB5017220).

 For Windows Server 2012, see the Extended Security Updates (ESU) Licensing Preparation Package that is dated August 10, 2022 (KB5017221).

Step 2: Install ESU on servers

Step 3: Download ESU MAK key

Download the ESU MAK add-on key from the VLSC portal.

 Sign in to the Microsoft 365 Admin Center.

 Select Your products > Volume licensing > View contracts

 Select your agreement number used to purchase ESUs, the three dots beside it (More Actions icon), then select View product keys. All the product keys available to the agreement shown on this page.

 Once you have your MAK, install the new key on your eligible servers.

Step 4: Add the ESU MAK to VAMT tool

Note: You need the latest VAMT tool and VAMT configuration files otherwise the VAMT tool will not accept the MAK key.

https://techcommunity.microsoft.com/t5/windows-it-pro-blog/windows-server-2012-r2-extended-security-updates/ba-p/3976610

Step 5: Activate ESU MAK on servers using VAMT

🌐
Directions on Microsoft
directionsonmicrosoft.com › home › answer this: how to control costs when licensing windows server 2012 esus for vms
Answer This: How to control costs when licensing Windows Server 2012 ESUs for VMs - Directions on Microsoft
August 14, 2025 - Each physical core in the cluster is licensed with Windows Server Datacenter. Having to purchase an ESU Datacenter license for each physical core in the cluster can be 50 or more times as expensive as licensing the small set of Windows Server ...
🌐
Born City
borncity.com › win › 2023 › 10 › 16 › windows-server-2012-r2-is-eol-esu-license-not-for-on-premises-systems
Windows Server 2012 R2 is EOL; ESU license not for on-premises systems? | Born's Tech and Windows World
Now an info from a reader reaches me that these ESU licenses are not provided for on-premises systems. But there is an alternative in the form of 0patch micro patches. Windows Server 2012 and Windows Server 2012 R2 are (largely) history, because both operating systems received security updates for the last time on October 2023 patchday (October 10, 2023).
Find elsewhere
🌐
Azure Docs
docs.azure.cn › en-us › azure-arc › servers › deliver-extended-security-updates
Deliver Extended Security Updates for Windows Server 2012 - Azure Arc | Azure Docs
You can select one or more Arc-enabled servers to link to an Extended Security Update license. Once you link a server to an activated ESU license, the server is eligible to receive Windows Server 2012 and 2012 R2 ESUs.
🌐
Licensingschool
licensingschool.co.uk › wp-content › uploads › 2024 › 01 › Extended-Security-Updates-Windows-Server-2012-v24.30.pdf pdf
Extended Security Updates: Windows Server 2012
Connector licenses providing access to servers covered with ESUs must have active SA or be subscription ... October 10, 2023. This means that no more security patches are · released to protect workloads running these versions of · Windows Server.
🌐
Microsoft Community Hub
techcommunity.microsoft.com › microsoft community hub › communities › products › azure › azure arc blog
Windows Server 2012/R2 Extended Security Updates Licensing and Billing | Microsoft Community Hub
January 19, 2024 - Windows Server 2012/2012 R2 machines are licensed with a Server Subscription where Software Assurance is not required. ESU Licensing with Azure Arc enabled Windows Server 2012/2012 R2
🌐
Redmondmag.com
redmondmag.com › articles › 2023 › 09 › 19 › windows-server-2012--azure-arc-esus.aspx
Windows Server 2012 ESUs via Azure Arc Now Commercially Available -- Redmondmag.com
If organizations can accept using ... three years. ESUs only consist of "Critical" updates. Microsoft licenses ESUs on an annual basis, for a maximum of three years total....
🌐
Born City
borncity.com › win › 2023 › 11 › 11 › windows-server-2012-r2-gets-extended-security-updates-esu-until-october-2026
Windows Server 2012/R2 gets Extended Security Updates (ESU) until October 2026Born's Tech and Windows World
November 11, 2023 - Extended Security Updates (ESUs) are available through certain Microsoft volume licensing programs. As of October 10, 2023, you can purchase ESUs for up to three consecutive 12-month increments.
🌐
Microsoft Community Hub
techcommunity.microsoft.com › microsoft community hub › communities › products › windows › windows it pro blog
Windows Server 2012/R2: Extended Security Updates | Windows IT Pro Blog
December 1, 2023 - For Windows Server 2012, install the servicing stack update (SSU) (KB5029369) that is dated August 8, 2023 or a later SSU. Download and install the Extended Security Updates (ESU) Licensing Preparation Package.
🌐
Elee
elee.com › en › blog › microsoft-esu-whats-deal
Microsoft ESU Explained: Your Guide to Extended Support Updates | Elée
Microsoft strongly encourages organizations to ensure they are running at least Windows Server 2012, which is supported until 2022. Moving to Windows Server 2016 (supported until 2026) and Windows Server 2019 (supported until 2029) will give ...
🌐
Onevinn
onevinn.com › blog › how-to-handle-security-updates
How to handle future Security Updates?
Azure Arc onboarded, a later version than version 1.34. Windows Server 2012/2012 R2. The VM itself cannot run in Azure Stack HCI, Azure VMware Solution, or as an Azure VM - then ESU is free.
🌐
Microsoft Support
support.microsoft.com › en-us › topic › kb5017220-update-for-the-extended-security-updates-licensing-preparation-package-for-windows-server-2012-r2-f07633ae-5383-44f8-a444-38448a66a958
KB5017220: Update for the Extended Security Updates Licensing Preparation Package for Windows Server 2012 R2 - Microsoft Support
This update provides an additional set of licensing changes to enable installation of the ESU add-on key. This is one of the steps to prepare for installation of Extended Security Updates. For more information about the ESU program, see the following resource: ... We are currently not aware ...