The aim of this repo is to provide an automatic way of provisioning ESU licenses querying eligible VMs on Azure ARC.
- Onboard your VMs on Azure ARC. Follow the documentation for at-scale onboarding.
- Download Azure Powershell modules on your PC and use the Connect-AzAccount cmdlet or use Azure Cloud Shell to upload the following files.
- Review and run ESULicenseProvisioning.ps1 to provision 1 license for each eligible VM. Make sure to change $dryRun to $false and $targetLicenseState to "Activated" before running the script.
- Review and run ESULicenseLink.ps1 to associate each license to the corresponding VM. Make sure to change the $subscriptionId and $resourceGroupName before running the script.
Now you can enjoy Extended Security Updates on Windows Server 2012 VMs!